lkml.org 
[lkml]   [2000]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: test9 not using buffers


On Thu, 12 Oct 2000, Tom Holroyd wrote:

> Alpha DP264 (UP), SCSI, floppy
>
> If I do a dd if=/dev/zero of=/tmp/moo count=100000, I don't see any
> increase in buffers, as reported by vmstat. Furthermore, if I read from
> /dev/fd0, it used to buffer the whole thing, so a second read would be
> fast -- now it hits the floppy again.
>

a) /dev/zero: character device, no buffers used at all. /tmp/moo: regular
file, data goes into pagecache, so all buffers you will get out of it
will be for indirect blocks. Assuming 4Kb filesystem that would be about
13Kb worth. Userland buffer is in pagecache too, indeed.

b) invalidate on last close.

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

\
 
 \ /
  Last update: 2005-03-22 12:39    [W:0.062 / U:5.712 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site