Date: Wed, 21 Apr 2004 14:53:26 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: Stephan Uphoff <ups@tree.com> Cc: hackers@freebsd.org Subject: Re: how to flush out cache.? Message-ID: <Pine.BSF.4.21.0404211451540.31770-100000@InterJet.elischer.org> In-Reply-To: <200404212121.RAA14907@stups.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 21 Apr 2004, Stephan Uphoff wrote: > > mmap() and msync(..MS_INVALIDATE..) should work. hmmm that is rather interesting.. I wonder if it would work.... Maybe a vm guru could confirm this.. (under 4.x) > > Stephan > > > > > Ok so I have an application where I need to > > reread a file I have just written to ensure that it went to disk > > correctly.. > > > > Other than reading a few GB of data, is there a way to flush > > out the cache copy of a file I've written? > > > > possibilities include: > > > > a file flag saying "don't keep a copy after it's written to disk"? > > a syscall discard_cached_blocks(fd); > > > > > > ? > > any other suggestions? > > > > julian > > (BTW this would be for 4.x initially) > > > > > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0404211451540.31770-100000>