summaryrefslogtreecommitdiff
path: root/scripts/gen_run_tests.py
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-05-22 13:09:17 -0700
committerQi Wang <interwq@gmail.com>2017-05-23 13:48:30 -0700
commiteeefdf3ce89e09ce7cc5c58d2a3730b83045eec1 (patch)
tree0ccfe2af0f5213284681818e39af4e3b8cd178de /scripts/gen_run_tests.py
parent0eae838b0d4343b09d80dee00f20a39ce709ca8f (diff)
Fix # of unpurged pages in decay algorithm.
When # of dirty pages move below npages_limit (e.g. they are reused), we should not lower number of unpurged pages because that would cause the reused pages to be double counted in the backlog (as a result, decay happen slower than it should). Instead, set number of unpurged to the greater of current npages and npages_limit. Added an assertion: the ceiling # of pages should be greater than npages_limit.
Diffstat (limited to 'scripts/gen_run_tests.py')
0 files changed, 0 insertions, 0 deletions