Re: where did all my memory go? (file system cache)

From: Julian Elischer <julian_at_elischer.org>
Date: Thu, 17 Feb 2005 14:14:59 -0800
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.

>
>  
>
Received on Thu Feb 17 2005 - 21:14:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:28 UTC