TritonDataCenter / pg_prefaulter

Faults pages into PostgreSQL shared_buffers or filesystem caches in advance of WAL apply
Apache License 2.0
56 stars 13 forks source link

Use posix_fadvise(2) instead of pread(2) for faulting pages #46

Open sean- opened 6 years ago

sean- commented 6 years ago

Suggestion from the audience:

Flag: POSIX_FADV_WILLNEED

While the memory bandwidth consumed from copying data from the OS into userland is not much, there is room for improvement through the use of posix_fadvise(2) instead of pread(2).