gabriel rosenkoetter on Thu, 19 Jul 2001 16:40:08 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] purposly emptying the file cache?


On Thu, Jul 19, 2001 at 04:34:24PM -0400, gabriel rosenkoetter wrote:
> How 'bout just reading sizeof(<buffer cache>) of garbage? (/dev/zero
> might be useful to you... or /dev/urandom for that matter.)

Ahem. But not directly, since reading from them doesn't actually
involve any file system data structures. (Which is why, btw, you can
write to a device even if the file system is mounted ro.)

Dump the right number of bytes out of either into a file and read
that, though, and you're good. (You've of course got a lot of spare
disk on your benchmarking machine, right? ;^>)

-- 
       ~ g r @ eclipsed.net


______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug