VMware 11 workstation on Ubuntu with windows guests freezes from time to time with very high cpu utilization. The process vmware-vmx and khugepaged get 100% cpu time for a couple of seconds. The khugepaged is the process that configures the transparent hugepages. When i disable the transparent hugepages windows guest run without freezes again. To disable it on every operating system start up i put in /etc/rc.local
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then echo never > /sys/kernel/mm/transparent_hugepage/enabled fi if test -f /sys/kernel/mm/transparent_hugepage/defrag; then echo never > /sys/kernel/mm/transparent_hugepage/defrag fi
Thanks sooooo much - I couldn't believe I was the only one having this trouble..
ReplyDeletei am glad it helped!
ReplyDeletefi at the end is missing?
ReplyDeleteYes, thanks, i fix it
DeleteThanks guy!! Solved my problem after two weeks of attemps|
ReplyDeleteHey all, thank you so much for the solution. This has been driving me crazy since March last year. I tried everything from cleaning out my fans (thinking it was a heating problem) to upgrading my Kernel, to even purchasing VMware Workstation 12. Non of which solved the issue.
ReplyDeleteIs there anyone who can offer a clear description of how this solves the problem, what it actually does. Also, is there not a command that is consistent across reboots as opposed to running this in a startup script....
The long explaination is here: https://www.kernel.org/doc/Documentation/vm/transhuge.txt
DeleteBasically the kernel tries to defrag the huge RAM memory page that the VM requested.