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

From: Joseph Koshy <joseph.koshy_at_gmail.com>
Date: Thu, 17 Feb 2005 16:15:44 +0000
> 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) ?

-- 
FreeBSD Volunteer, http://people.freebsd.org/~jkoshy
Received on Thu Feb 17 2005 - 15:15:47 UTC

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