lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 25 May 2008 16:47:24 -0400
From:	Jeff Garzik <jeff@...zik.org>
To:	Francis Moreau <francis.moro@...il.com>
CC:	linux-kernel@...r.kernel.org, jens.axboe@...cle.com
Subject: Re: question about splice performance

Francis Moreau wrote:
> Hi,
> 
> I did a really basic benchmark and was suprise about the results.
> 
> $ echo 3 > /proc/sys/vm/drop_caches
> $ time  splice-cp  vmlinux /tmp/vmlinux
> 
> real    0m10.158s
> user    0m0.002s
> sys     0m0.401s
> 
> $ echo 3 > /proc/sys/vm/drop_caches
> $ time  cp  vmlinux /tmp/vmlinux
> 
> real    0m10.590s
> user    0m0.017s
> sys     0m0.459s
> 
> 
> I was expecting splice-cp case to be faster.
> 
> Could someone enlight me ?

If you drop caches you are not measuring splice speed.

Use ramfs for your tests (guarantees data is in cache) instead.

	Jeff



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ