Execution cap with DOS guest

This is for discussing general topics about how to use VirtualBox.
Post Reply
edelacy
Posts: 2
Joined: 16. Aug 2011, 02:32
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: DOS, UBUNTU

Execution cap with DOS guest

Post by edelacy »

Has execution cap been confirmed to work with DOS guests? I installed DOS 5.0 and 6.20 guests on Windows XP and Ubuntu hosts, and I'm still seeing 100% CPU utilization regardless of where I set the cap.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Execution cap with DOS guest

Post by vbox4me2 »

I don't think this will work for OS's that ain't aware, they constantly pull the keyboard to see if anything needs to be done and hereby jogg the cpu, you're going to need dosidle or some sort of tool.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Execution cap with DOS guest

Post by Perryg »

DOS 6.2 comes with power.exe which idles the CPU when not in use. Just add it to the config.sys and you're good to go.
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Execution cap with DOS guest

Post by Technologov »

Execution cap should work with all guest OSes. It is done at the host-platform level.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Execution cap with DOS guest

Post by Perryg »

Yes it does and I can confirm that it does in fact work with DOS 6.2, but power.exe frees the cpu ticks when idle (no program executing).
By the way anything below 41% causes the DOS guest to stutter. I have had it as low as 20% and even with the stuttering the guest preforms as it should.
edelacy
Posts: 2
Joined: 16. Aug 2011, 02:32
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: DOS, UBUNTU

Re: Execution cap with DOS guest

Post by edelacy »

Thanks to all who responded.

Perryg,
I tried both power.exe and dosidle.exe, and they both idle the cpu when DOS is at the command prompt. However, I have to run a legacy application which does not respect the DOS I/O conventions, and they have no effect when it is running. That's why I was interested in host-platform based throttling.

May I ask what host hardware/OS you are using?
Perryg wrote:Yes it does and I can confirm that it does in fact work with DOS 6.2, but power.exe frees the cpu ticks when idle (no program executing).
By the way anything below 41% causes the DOS guest to stutter. I have had it as low as 20% and even with the stuttering the guest preforms as it should.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Execution cap with DOS guest

Post by Perryg »

Hardware and OS should not matter. I am using Linux as host though.
When your application is up neither power.exe or dosidle.exe will do any good I am afraid. You see back in the day they were not concerned about the processor being run at full throttle. So when you are running the app it will be what ever you set the throttle at. Just use the CPU execution cap and find the setting that works but consumes the least amount of CPU ticks.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Execution cap with DOS guest

Post by vbox4me2 »

edelacy wrote:However, I have to run a legacy application which does not respect the DOS I/O conventions, and they have no effect when it is running.
Then you need tame(-res), which does the same but while a program is running.
Post Reply