posix_fadviseThis is a featured page

POSIX allows us to pass hints to the kernel about proceeding activity on a file. Specifically, it allows us to recommend aggressive readahead or none at all. The Linux kernel developers (notably Andrew Morton) have suggested that Postgres ought to be using posix_fadvise if it expects to get good readahead behavior from the kernel, so it seems at least worth considering (and benchmarking).

Here's a brief patch which adds these hints to the system. It probably needs to be brought up to HEAD.

http://www.alcove.com.au/~swm/fadvise.diff



No user avatar
neilc
Latest page update: made by neilc , Jun 23 2006, 2:32 AM EDT (about this update About This Update neilc Edited by neilc

37 words added

view changes

- complete history)
Keyword tags: None (edit keyword tags)
More Info: links to this page

Anonymous  (Get credit for your thread)


There are no threads for this page.  Be the first to start a new thread.