Skip to content

Commit 75212b1

Browse files
committed
Document OSMIUM_CLEAN_PAGE_CACHE_AFTER_READ in manual
1 parent 58b9374 commit 75212b1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

_libosmium_manual/17_config.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,16 @@ means that the work can't be parallelized as effectively.
4343
The minimum value for all queue sizes is 2. When set to 0, the default is
4444
used.
4545

46+
## `OSMIUM_CLEAN_PAGE_CACHE_AFTER_READ`
47+
48+
Since 2.17.0 Osmium will, when reading files, tell the kernel using `fadvise`
49+
that it can remove pages from the buffer cache that are not needed any more.
50+
This is usually beneficial, because the memory can be used for something else.
51+
But if you are reading the same OSM file multiple times at the same time or in
52+
short succession, it might be better to keep those buffer pages.
53+
54+
Since 2.17.1 you can set the environment variable
55+
`OSMIUM_CLEAN_PAGE_CACHE_AFTER_READ` to `no` and Osmium will not call
56+
`fadvise`. Set it to `yes` or anything else (or not set it at all) to get the
57+
default behaviour.
58+

0 commit comments

Comments
 (0)