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

Joseph Koshy joseph.koshy at gmail.com
Thu Feb 17 16:15:47 GMT 2005


> 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


More information about the freebsd-current mailing list