]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: halog: improve cold-cache behaviour when loading a file
authorWilly Tarreau <w@1wt.eu>
Tue, 12 Jun 2012 07:16:56 +0000 (09:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 Jun 2012 07:16:56 +0000 (09:16 +0200)
commitf8c95d2a25b5b0ff4c8d50c57e4ac6195dcd82f6
tree3ec9bc016d835f5fd3d16660a44ee96e24614947
parent419a598eae03f9e074e3ba61c5e6579d73f92c34
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.
contrib/halog/halog.c