04/08/08

Permalink 03:38:49 pm, by Donald Shimoda [TeamRO] Email , 132 words, Categories: Linux, Ubuntu, Virtualization, VirtualBox, Delphi, Codegear

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:

Comment from: C Johnson [Visitor] Email
Or, since Linux is open source, someone could just publish the appropriate fix for the timer.
PermalinkPermalink 04/08/08 @ 16:03
Comment from: DelphiUser [Visitor] Email
I use Delphi 7 inside VirtualBox 1.5.6 on PCLinuxOS (Gnome) and I am happy with this solution.

PermalinkPermalink 04/08/08 @ 16:15
Comment from: Donald Shimoda [TeamRO] [Member] Email
C Johnson: According to developers of VBox is very difficult to fix that.

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.
PermalinkPermalink 04/08/08 @ 16:25
Comment from: Stuart Clennett [Visitor] Email · http://www.clearnetdesigns.co.uk
I use BDS2006 in Virtual PC 2007 (XP Pro both host and guest) successfully.
PermalinkPermalink 04/08/08 @ 21:39
Comment from: Rick [Visitor] Email
How is it that VMWare doesn't suffer from this issue?

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.
PermalinkPermalink 04/08/08 @ 22:18
Comment from: Donald Shimoda [TeamRO] [Member] Email
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.
PermalinkPermalink 04/09/08 @ 15:17
Comment from: david [Visitor] Email
Try turning Error Insight off. I host VirtualBox D2007 guest environments on Debian and XP. When working in my guest environments, they are still far faster than running a tricked out workstation. In my experience if the guest is running on Linux the CPU in a single core machine is about 20% utilized by the Virtual Box Server. The same guest running on Windows host used about half that.
PermalinkPermalink 04/15/08 @ 07:15
Comment from: Donald Shimoda [TeamRO] [Member] Email
David, thanks for your tip.

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.
PermalinkPermalink 04/15/08 @ 17:06
Comment from: Paul Siu [Visitor] Email
Hi,

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.
PermalinkPermalink 08/18/08 @ 16:27

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

Delphi 2007 IDE incompatible with Virtualbox