-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2013-06-13 08:02, Roger Oberholtzer wrote:
On Thu, 2013-06-13 at 06:24 +0200, Carlos E. R. wrote:
Linda idea of using "posix_fadvise" and opening the file for write only seems to me a very good one. But she also said "the calls are advisory".
posix_fadvise(POSIX_FADV_DONTNEED) seems not to be advisory. It clears info for the specified file from the cache when it is called. So it needs to do this regularly. Which is no problem. I just need to figure out the 'start' and 'stop' parameters.
That it works does not deny being advisory :-) Maybe it means that it has been implemented and works.
This call is finding it's way into apps like tar and rsync that. like my app, may deal with big files/data and need not pollute the read cache since once written they are no longer needed by the app.
Right. By the way, try not to use "fsync". It forces the kernel to write to disk even if not convenient. - -- Cheers / Saludos, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlG5d5YACgkQtTMYHG2NR9V2BACgjr3TVSeE/jz0LSMQdHagMsoQ ybEAniSxIPcJ1MKCZW0jTQOIe2ansx6r =IgGq -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org