OSDev.org
https://forum.osdev.org/

Bochs Problems
https://forum.osdev.org/viewtopic.php?f=11&t=30815
Page 1 of 1

Author:  ChosenOreo [ Thu Sep 15, 2016 8:17 pm ]
Post subject:  Bochs Problems

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

Author:  BrightLight [ Thu Sep 15, 2016 9:56 pm ]
Post subject:  Re: Bochs Problems

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?

Author:  ChosenOreo [ Sat Sep 17, 2016 6:54 pm ]
Post subject:  Re: Bochs Problems

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.

Author:  BrightLight [ Sat Sep 17, 2016 7:00 pm ]
Post subject:  Re: Bochs Problems

What is the clock synchronization method in your bochsrc?

Author:  ChosenOreo [ Sat Sep 17, 2016 7:05 pm ]
Post subject:  Re: Bochs Problems

Currently it's at realtime, though other settings don't seem to fix it either.

Author:  BrightLight [ Sat Sep 17, 2016 8:03 pm ]
Post subject:  Re: Bochs Problems

ChosenOreo wrote:
Currently it's at realtime, though other settings don't seem to fix it either.

Try using none.

Author:  ChosenOreo [ Sat Sep 17, 2016 8:38 pm ]
Post subject:  Re: Bochs Problems

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.

Author:  xenos [ Sun Sep 18, 2016 6:22 am ]
Post subject:  Re: Bochs Problems

Have you compared the Bochs log files in Windows and Linux? Are there any differences?

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/