Bochs Problems

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
ChosenOreo
Member
Member
Posts: 25
Joined: Sun May 29, 2011 5:16 pm
Location: Inside A Computer
Contact:

Bochs Problems

Post by ChosenOreo »

Hi,
For some reason, running bochs on linux on my desktop results in the simulation running absurdly slow. I mean, really absurdly. It takes several seconds for the "Booting from floppy" message to appear, and text is printed slow enough that there is a noticeable delay from one letter to the next.
On windows on the same machine, the same operation takes a fraction of a second.
I've never run into this problem on any machine I've had before.

Anyone else run into any problems like that?

- Adrian
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: Bochs Problems

Post by BrightLight »

ChosenOreo wrote:Hi,
For some reason, running bochs on linux on my desktop results in the simulation running absurdly slow. I mean, really absurdly. It takes several seconds for the "Booting from floppy" message to appear, and text is printed slow enough that there is a noticeable delay from one letter to the next.
On windows on the same machine, the same operation takes a fraction of a second.
I've never run into this problem on any machine I've had before.

Anyone else run into any problems like that?

- Adrian
That's very odd. Can you attach your bochsrc configuration? (Most likely bochsrc.txt on your Linux machine, bochsrc.bxrc on your Windows machine.) You might want to check the executed instructions per second as well as the clock sychronization method. BTW, what is the physical CPU? How fast is the core and how many cores do you have?
You know your OS is advanced when you stop using the Intel programming guide as a reference.
User avatar
ChosenOreo
Member
Member
Posts: 25
Joined: Sun May 29, 2011 5:16 pm
Location: Inside A Computer
Contact:

Re: Bochs Problems

Post by ChosenOreo »

My CPU is an i7-5820K @ 3.30GHz, with 6 physical cores and 12 logical cores.

My bochsrc is the same for both Linux and Windows, the only things I have in it are the boot device, its source, and enabling of boch's magic breakpoint.
Regardless of the IPS value, Windows still runs bochs much faster than Linux.
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: Bochs Problems

Post by BrightLight »

What is the clock synchronization method in your bochsrc?
You know your OS is advanced when you stop using the Intel programming guide as a reference.
User avatar
ChosenOreo
Member
Member
Posts: 25
Joined: Sun May 29, 2011 5:16 pm
Location: Inside A Computer
Contact:

Re: Bochs Problems

Post by ChosenOreo »

Currently it's at realtime, though other settings don't seem to fix it either.
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: Bochs Problems

Post by BrightLight »

ChosenOreo wrote:Currently it's at realtime, though other settings don't seem to fix it either.
Try using none.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
User avatar
ChosenOreo
Member
Member
Posts: 25
Joined: Sun May 29, 2011 5:16 pm
Location: Inside A Computer
Contact:

Re: Bochs Problems

Post by ChosenOreo »

omarrx024 wrote:
ChosenOreo wrote:Currently it's at realtime, though other settings don't seem to fix it either.
Try using none.
I have tried none, as well as slowdown. Other settings for that do not fix the problem. I have tried several different cpu commands, none have made it any faster. I have recompiled bochs from source with various different configure options, and none seem to fix it. I have done all of the things I have previously said on different distributions on this computer as well. It just refuses to run at any normal speed with any configuration options on any linux distribution that I install on my computer.
User avatar
xenos
Member
Member
Posts: 1118
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: Bochs Problems

Post by xenos »

Have you compared the Bochs log files in Windows and Linux? Are there any differences?
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
Post Reply