04/08/08
Delphi 2007 IDE incompatible with Virtualbox
Bad news. VirtualBox version 1.5.6 eats 30-45% of cpu time when you start Delphi 2007 IDE.
The problem is related to a need for the IDE of higher timer resolution than provided by the OS (Ubuntu in my case).
According to a developer of Virtualbox:
'Your guest uses a 1kHz timer, whereas your host probably just provides 250Hz resolution. so 1.5.6 uses a rather expensive way (busy waiting) to emulate proper timing. there isn't much that can be done. 1.6 (whenever it'll be out) will be slightly better, but probably not all that much. try to find out what windows app requires that 1kHz timer resolution. by default windows xp...
...just uses a 100Hz timer. '
Just to warn to Virtualbox + Delphi users. There's no workaround rigth now. ![]()
BTW, VMWare don't suffer of that 'problem'.
Comments, Pingbacks:
DelphiUser: Delphi 7 IDE work ok in UBUNTU + Vbox also. I even test it in wine, withou VM, and works fine, except debugger off course.
Thanks for your comments.
I'm using Vista host with XP guest and using RAD Studio 2007 without any issues... or would I need to have Linux host to observe this issue?
Rick.
I guess VMWare use another method for resole timer resolution diffs. I test both and VMWare just take 5% of cpu time while D2007 IDE is idle.
OTOH, i dont know if the issue happens only using Linux hosts + Virtualbox. Except for that situation im very happy using Ubuntu like my main OS and running Delphi 2007 inside a VM.
Thanks for your comments.
I try disabling all the stuff around error insight, code insight, etc, nothing helps.
Can you please confirm if in your system don't changes the PIT value after loading D2007?
That happens in my system:
Windows XP after BOOT:
00:21:53.843 PIT: mode=2 count=0x2ead (11949) - 99.85 Hz (ch=0)
Open D2007
00:22:06.272 PIT: mode=2 count=0x4ad (1197) - 996.81 Hz (ch=0)
Exit D2007.
00:24:29.817 PIT: mode=2 count=0x2ead (11949) - 99.85 Hz (ch=0)
Thanks for your comments.
P.S.: With the Delphi4PHP 2.0 ide PIT remains ok.
I recently ran Picasa 2007 and notice an incredible slow down. I think the problems are related to Picasa 2007 using Wine. This may be related to what you are experiencing in Delphi.
Leave a comment:


