On 03/18/2010 07:33 PM, Mark Cranness wrote: > On 19 March 2010 10:05, JD wrote: > >> ... >> > I just now had a host CPU issue that I fixed. > With guest CPU near 0%, the host was showing CPU ~25% > > It turned out to be that SqlServer 2005 calling a Windows function to > increase the 'PM' timer resolution to 1ms, which causes VirtualBox to > eat host CPU cycles. > > This was visible in the VBox.log as: > 00:16:07.848 PIT: mode=2 count=0x4ad (1197) - 996.81 Hz (ch=0) > > For SqlServer there are a couple of fixes: > 1) Set a SqlServer Startup Options Trace Flag that stops SqlServer > using 1ms timer resolution: > http://social.technet.microsoft.com/Forums/en/windowsserver2008r2virtualization/thread/ec6b08d0-abfd-4e43-8c53-e1cd262fd416 > > 2) Install Cumulative Hotfix 5 or greater, which also stops SqlServer > using 1ms timer resolution: > http://support.microsoft.com/kb/972767/ > > Similar problems and fixes apply to SqlServer 2008 also. > > If other programs are using a 1ms timer, the fix will be different and > program specific. > > Mark >
I also wanted to provide some more info on cpu load, when no vm machine is running, just the VBox gui is up: top - 22:24:52 up 12:53, 2 users, load average: 2.47, 2.39, 2.83 Tasks: 165 total, 3 running, 162 sleeping, 0 stopped, 0 zombie Cpu(s): 54.3%us, 44.4%sy, 1.3%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2062360k total, 798764k used, 1263596k free, 10468k buffers Swap: 8385924k total, 127624k used, 8258300k free, 319852k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5745 jd 20 0 69788 10m 7244 R 76.5 0.5 179:34.44 VirtualBox 2456 jd 20 0 703m 136m 14m S 10.2 6.8 102:49.87 firefox 1864 jd 9 -11 159m 4116 2984 S 9.8 0.2 131:50.12 pulseaudio 1615 root 20 0 392m 40m 7096 S 1.0 2.0 37:04.41 Xorg 7943 root 39 19 110m 96m 6500 R 1.0 4.8 0:51.40 yum-updatesd-he So, what's VBox doing, chewing up 76% of CPU without running an VM??? ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Vbox-users-community mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vbox-users-community
