[PATCH/RFC] readahead applet

Rob Landley rob at landley.net
Mon Aug 21 18:17:09 UTC 2006


On Monday 21 August 2006 1:00 pm, Paul Fox wrote:
>  > 
>  > With our new "readahead" command, everything is done in one system call. 
>  > So, almost everything is done in kernel mode, possibly in an optimized 
>  > way between the filesystem and page cache. And of course, no buffer copy 
>  > from kernel-space to user-space is done!
>  > 
>  > To prove this I ran "time readahead" and "time cat" on 2 identical files.
> 
> what's the result if you compare with "time dd bs=<some large number>" ?

In a low-memory environment do you really want dd to malloc <some large 
number> and touch every page in it?

Rob
-- 
Never bet against the cheap plastic solution.



More information about the busybox mailing list