commit | f8c95d2a25b5b0ff4c8d50c57e4ac6195dcd82f6 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Jun 12 09:16:56 2012 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jun 12 09:16:56 2012 +0200 |
tree | 3ec9bc016d835f5fd3d16660a44ee96e24614947 | |
parent | 419a598eae03f9e074e3ba61c5e6579d73f92c34 [diff] |
OPTIM: halog: improve cold-cache behaviour when loading a file Using posix_fadvise() it is possible to tell the system that we're going to read a whole file at once. The kernel then doubles the read-ahead size for this file. On Linux with an SSD, this has improved cold-cache performance by around 20%. Hot-cache is not affected at all.