Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
global_page_state() was renamed to global_zone_page_state() by commit c41f012ade0b ("mm: rename global_page_state to global_zone_page_state"). However, some more changes are needed (and were in fact needed even with kernels older than 4.14. Since commit 385386cff4c6 ("mm: vmstat: move slab statistics from zone to node counters") in v4.13-rc1, NR_SLAB_UNRECLAIMABLE needs to be used with global_node_page_state(), in-tree callers were fixed by commit d507e2ebd2c7 ("mm: fix global NR_SLAB_.*CLAIMABLE counter reads"). Since commit 599d0c954f91 ("mm, vmscan: move LRU lists to node") in v4.8-rc1, NR_UNEVICTABLE needs global_node_page_state() rather than global_page_state(). Since commit 50658e2e04c1 ("mm: move page mapped accounting to the node") in v4.8-rc1, NR_ANON_PAGES needs global_node_page_state() as well. This was shortly before it was renamed to NR_ANON_MAPPED but as both got into mainline in v4.8-rc1, we can do with one #ifdef. To keep HostIF_EstimateLockedPageLimit() readable, extract the version dependent calls into inline helpers.
- Loading branch information
770c7ff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This works for me solving "Not enough physical memory is available to power on this virtual machine with its configured settings." problem.
Using Ubuntu 17.10 kernel 4.13.0-16-generic x64
VMware Workstation 14.0.0
770c7ff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff applied, hope it helps :)
770c7ff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much! Works for me.
Using Linux pop-os 4.13.0-17-generic x86_64
VMware Workstation 14.0.0
770c7ff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this worked a treat! The problem started only after I imported an ova. Before that VMware Workstation 14 was working well.
On Ubuntu 17.10, gnome; and before on Fedora 26; Ubuntu 16.04; Arch
770c7ff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the patch - it works great 👍 :)
770c7ff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mkubecek
please help it's not working with me
with VM 14(The latest)
and kernel 4.14
OS kali linux
770c7ff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello guys, I have same problem that @mkubecek in kali with latest kernel update 14.4.0 and VM Workstation 14, I was downloaded latest vmmon and I have this issue building the module.
Thank you, Cheers.
770c7ff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thanks a lot - worked on my machine: LinuxMint 18.3 kernel 4.13.0-26-generic with VMware Workstation 12.5.9
770c7ff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, I would really appreciate it if someone can guide me on how to apply this patch! Thank you
770c7ff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chandulaushan please refer to this https://superuser.com/questions/1255099/vmware-workstation-not-enough-physical-memory-since-last-update/1255963
770c7ff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one. Work like a charm.