aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNadav Amit <[email protected]>2018-09-20 10:30:13 -0700
committerGreg Kroah-Hartman <[email protected]>2018-09-25 20:11:42 +0200
commit8fa3c61a79868ad3529f1dc61709a4c46adab467 (patch)
treed9efc09fcf206e22284dc44ceb8173bda0886fe7 /tools/perf/scripts/python
parentdf8d0d42afe853bb1e15e7543ee710b241bb3b35 (diff)
vmw_balloon: treat all refused pages equally
Currently, when the hypervisor rejects a page during lock operation, the VM treats pages differently according to the error-code: in certain cases the page is immediately freed, and in others it is put on a rejection list and only freed later. The behavior does not make too much sense. If the page is freed immediately it is very likely to be used again in the next batch of allocations, and be rejected again. In addition, for support of compaction and OOM notifiers, we wish to separate the logic that communicates with the hypervisor (as well as analyzes the status of each page) from the logic that allocates or free pages. Treat all errors the same way, queuing the pages on the refuse list. Move to the next allocation size (4k) when too many pages are refused. Free the refused pages when moving to the next size to avoid situations in which too much memory is waiting to be freed on the refused list. Reviewed-by: Xavier Deguillard <[email protected]> Signed-off-by: Nadav Amit <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions