lkml.org 
[lkml]   [2004]   [Jan]   [2]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Strange IDE performance change in 2.6.1-rc1 (again)
From Valdis.Kletnieks@vt ...
DateFri, 02 Jan 2004 23:15:18 -0500
On Sat, 03 Jan 2004 04:33:28 +0100, Tobias Diedrich <ranma@gmx.at>  said:

> Very interesting tidbit:
> 
> with 2.6.1-rc1 and "dd if=/dev/hda of=/dev/null" I get stable 28 MB/s,
> but with "cat < /dev/hda > /dev/null" I get 48 MB/s according to "vmstat
> 5".

'cat' is probably doing a stat() on stdout and seeing it's connected to /dev/null
and not even bothering to do the write() call.  I've seen similar behavior in other
GNU utilities.  
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 12:59    [from the cache]
©2003-2008