]> git.baikalelectronics.ru Git - kernel.git/commit
vmw_balloon: remove inflation rate limiting
authorNadav Amit <namit@vmware.com>
Tue, 19 Jun 2018 23:00:28 +0000 (16:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 10:56:30 +0000 (12:56 +0200)
commitc1d7c4a0476de6f19679ba39d40a344b3e0f0bc7
tree84266e39602c4910d04d66b9a025929b75f37959
parent439e626f160321eabd65a5a4a740191d789c2f8c
vmw_balloon: remove inflation rate limiting

Since commit d9d9e9c88a44 ("VMware balloon: Do not limit the amount of
frees and allocations in non-sleep mode."), the allocations are not
increased, and therefore balloon inflation rate limiting is in practice
broken.

While we can restore rate limiting, in practice we see that it can
result in adverse effect, as the hypervisor throttles down the VM if it
does not respond well enough, or alternatively causes it to perform very
poorly as the host swaps out the VM memory. Throttling the VM down can
even have a cascading effect, in which the VM reclaims memory even
slower and consequentially throttled down even further.

We therefore remove all the rate limiting mechanisms, including the slow
allocation cycles, as they are likely to do more harm than good.

Fixes: d9d9e9c88a44 ("VMware balloon: Do not limit the amount of frees and allocations in non-sleep mode.")
Reviewed-by: Xavier Deguillard <xdeguillard@vmware.com>
Signed-off-by: Nadav Amit <namit@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_balloon.c