Date: Thu, 17 Feb 2005 14:14:59 -0800 From: Julian Elischer <julian@elischer.org> To: Joseph Koshy <joseph.koshy@gmail.com> Cc: current@freebsd.org Subject: Re: where did all my memory go? (file system cache) Message-ID: <42151763.6050607@elischer.org> In-Reply-To: <84dead72050217081540fd7640@mail.gmail.com> References: <1108584730.95661.12.camel@server.mcneil.com> <20050216201716.GA28436@odin.ac.hmc.edu> <4213B3C8.3090508@centtech.com> <1108588393.12275.9.camel@server.mcneil.com> <20050216214031.GA2787@odin.ac.hmc.edu> <4213D3AA.70809@elischer.org> <84dead72050217081540fd7640@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Joseph Koshy wrote:
>>what I want is:
>>
>>int fd = open("myfile",...);
>>write1GBfiletodisk(fd, data);
>>ioctl(fd, PURGEFROMCACHE);
>>perform_md5(fd);
>>
>>and be sure that teh MD5 is that of what is on the disk.
>>not what is in RAM.
>>
>>
>
>unmount(file-system-of("myfile")) (even if it fails) ?
>
>
I actually heard this trick before.. I can't say I'm enthusiastic about it..
it also forces the flushing of a lot of stuff I may not want to flush, (yet)
I don't want to force my other apps to have to reload their cached data.
Neat trick though.
>
>
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42151763.6050607>
