* posix_fadvise(2): mention sync_file_range(2)
@ 2010-03-03 14:16 Manfred Schwarb
[not found] ` <4B8E6F28.2020109-OI3hZJvNYWs@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Manfred Schwarb @ 2010-03-03 14:16 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Hi,
for POSIX_FADV_DONTNEED, syncing with fsync(2) or fdatasync(2) is recommended in
the man page of posix_fadvise(2).
However, for this task sync_file_range(2) is probably best suited, as it
is fast and has the same granularity as posix_fadvise(2).
akpm also used sync_file_range(2) for his user space helpers:
http://userweb.kernel.org/~akpm/pagecache-management/pagecache-management/pagecache-management.c
So I suggest to add sync_file_range(2) to the list of mentioned sync functions.
Cheers,
Manfred
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: posix_fadvise(2): mention sync_file_range(2)
[not found] ` <4B8E6F28.2020109-OI3hZJvNYWs@public.gmane.org>
@ 2010-06-14 5:47 ` Michael Kerrisk
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk @ 2010-06-14 5:47 UTC (permalink / raw)
To: Manfred Schwarb; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Hello Manfred,
On Wed, Mar 3, 2010 at 4:16 PM, Manfred Schwarb <manfred99-OI3hZJvNYWs@public.gmane.org> wrote:
> Hi,
>
> for POSIX_FADV_DONTNEED, syncing with fsync(2) or fdatasync(2) is recommended in
> the man page of posix_fadvise(2).
> However, for this task sync_file_range(2) is probably best suited, as it
> is fast and has the same granularity as posix_fadvise(2).
> akpm also used sync_file_range(2) for his user space helpers:
> http://userweb.kernel.org/~akpm/pagecache-management/pagecache-management/pagecache-management.c
>
> So I suggest to add sync_file_range(2) to the list of mentioned sync functions.
Thanks. Done, for man-pages-3.25.
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-14 5:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-03 14:16 posix_fadvise(2): mention sync_file_range(2) Manfred Schwarb
[not found] ` <4B8E6F28.2020109-OI3hZJvNYWs@public.gmane.org>
2010-06-14 5:47 ` Michael Kerrisk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).