Mailinglist Archive: opensuse (1239 mails)

< Previous Next >
Re: [opensuse] Re: XFS and openSUSE 12.1
On Thu, Jun 13, 2013 at 3:41 AM, Carlos E. R.
<robin.listas@xxxxxxxxxxxxxx> 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)
close()

Greg
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
This Thread