On Thu, 2013-06-13 at 10:04 -0400, Greg Freemyer wrote:
On Thu, Jun 13, 2013 at 3:41 AM, Carlos E. R. <robin.listas@telefonica.net> wrote:
By the way, try not to use "fsync". It forces the kernel to write to disk even if not convenient.
The fadvise call only trashes cache that has already been written to disk. So you can call it as often as you want prior to the close, but the last thing that is done needs to be:
fsync() fadvise(0,len,DONTNEED)
Can the start,stop parameters be 0,0? Meaning all pages for this file?
close()
Greg
Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org