Re: question about splice performance

From: Jan Engelhardt
Date: Sun May 25 2008 - 11:40:52 EST



On Sunday 2008-05-25 17:12, 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 ?

Slow disk outweighs memory copying overhead. And 300 MB is quickly
transferred in idle systems.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/