Mailinglist Archive: opensuse (1239 mails)

< Previous Next >
Re: [opensuse] Re: XFS and openSUSE 12.1
  • From: Roger Oberholtzer <roger@xxxxxx>
  • Date: Thu, 13 Jun 2013 16:12:39 +0200
  • Message-id: <1371132759.24121.20.camel@acme.pacific>
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@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)

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@xxxxxxxxxx
________________________________________

Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden
www.rambollrst.se


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

< Previous Next >
This Thread
Follow Ups