Project

General

Profile

Actions

Feature #4038

closed

IO#advise

Added by runpaint (Run Paint Run Run) about 14 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:33110]

Description

=begin
As discussed in #4015, I suggest a wrapper around posix_fadvise(2) named IO#advise. On platforms that don't support this system call, IO#advise is a no-op. Otherwise, it provides a hint to the kernel as to how the given file descriptor will be accessed in the future. This allows the kernel to optimise its page cache accordingly.


Files

io-advise.patch (5.23 KB) io-advise.patch runpaint (Run Paint Run Run), 11/09/2010 10:27 AM
io-advise-2.patch (5.22 KB) io-advise-2.patch Updated to use rb_syserr_fail() runpaint (Run Paint Run Run), 11/09/2010 10:57 AM
io-advise-3.patch (5.47 KB) io-advise-3.patch Clarified documentation runpaint (Run Paint Run Run), 11/10/2010 01:54 AM
io-advise-4.patch (6.87 KB) io-advise-4.patch runpaint (Run Paint Run Run), 11/11/2010 06:24 AM
io-advise-5.patch (7.21 KB) io-advise-5.patch runpaint (Run Paint Run Run), 11/13/2010 09:07 AM
IO-advise-6-kosaki.patch (7.66 KB) IO-advise-6-kosaki.patch kosaki (Motohiro KOSAKI), 12/16/2010 03:44 AM
IO-advise-7-kosaki.patch (7.87 KB) IO-advise-7-kosaki.patch kosaki (Motohiro KOSAKI), 12/16/2010 04:55 AM

Related issues 2 (0 open2 closed)

Related to Ruby master - Feature #4015: File::DIRECT Constant for O_DIRECTClosed11/03/2010Actions
Related to Ruby master - Feature #4204: IO#advise should raise error for unknown symbolClosedkosaki (Motohiro KOSAKI)12/25/2010Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0