diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2022-03-07 23:30:03 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2022-03-23 16:51:46 +0100 |
commit | bb7f5d96aaa87d5aee2f5eb98ae0b84f08988489 (patch) | |
tree | f97d5b95ac13a330a9a4d6001a8601d336c50492 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b2963932346f0631c5145f656a22d4237f0956fa (diff) |
gfs2: Fix should_fault_in_pages() logic
Fix the fault-in window size logic:
* Use a maximum window size of 1 MiB instead of BIO_MAX_VECS * PAGE_SIZE.
The previous window size was always one page because the pages variable
was accidentally being defined and then redefined in
should_fault_in_pages().
* The nr_dirtied heuristic for guessing when there might be memory
pressure often results in very small window sizes. Don't let
nr_dirtied drop below 8 pages (as btrfs does).
* Compute the window size in units of bytes, not pages.
* Account for page overlap (unaligned iterators).
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions