OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Jul 21, 2017 10:59 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Bochs Problems
PostPosted: Thu Sep 15, 2016 8:17 pm 
Offline
Member
Member
User avatar

Joined: Sun May 29, 2011 5:16 pm
Posts: 25
Location: Inside A Computer
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


Top
 Profile  
 
 Post subject: Re: Bochs Problems
PostPosted: Thu Sep 15, 2016 9:56 pm 
Offline
Member
Member
User avatar

Joined: Sat Dec 27, 2014 9:11 am
Posts: 829
Location: Maadi, Cairo, Egypt
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?

_________________
Byte me; OS site, source code.
You know your OS is advanced when you stop using the Intel programming guide as a reference.


Top
 Profile  
 
 Post subject: Re: Bochs Problems
PostPosted: Sat Sep 17, 2016 6:54 pm 
Offline
Member
Member
User avatar

Joined: Sun May 29, 2011 5:16 pm
Posts: 25
Location: Inside A Computer
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.


Top
 Profile  
 
 Post subject: Re: Bochs Problems
PostPosted: Sat Sep 17, 2016 7:00 pm 
Offline
Member
Member
User avatar

Joined: Sat Dec 27, 2014 9:11 am
Posts: 829
Location: Maadi, Cairo, Egypt
What is the clock synchronization method in your bochsrc?

_________________
Byte me; OS site, source code.
You know your OS is advanced when you stop using the Intel programming guide as a reference.


Top
 Profile  
 
 Post subject: Re: Bochs Problems
PostPosted: Sat Sep 17, 2016 7:05 pm 
Offline
Member
Member
User avatar

Joined: Sun May 29, 2011 5:16 pm
Posts: 25
Location: Inside A Computer
Currently it's at realtime, though other settings don't seem to fix it either.


Top
 Profile  
 
 Post subject: Re: Bochs Problems
PostPosted: Sat Sep 17, 2016 8:03 pm 
Offline
Member
Member
User avatar

Joined: Sat Dec 27, 2014 9:11 am
Posts: 829
Location: Maadi, Cairo, Egypt
ChosenOreo wrote:
Currently it's at realtime, though other settings don't seem to fix it either.

Try using none.

_________________
Byte me; OS site, source code.
You know your OS is advanced when you stop using the Intel programming guide as a reference.


Top
 Profile  
 
 Post subject: Re: Bochs Problems
PostPosted: Sat Sep 17, 2016 8:38 pm 
Offline
Member
Member
User avatar

Joined: Sun May 29, 2011 5:16 pm
Posts: 25
Location: Inside A Computer
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.


Top
 Profile  
 
 Post subject: Re: Bochs Problems
PostPosted: Sun Sep 18, 2016 6:22 am 
Offline
Member
Member
User avatar

Joined: Thu Aug 11, 2005 11:00 pm
Posts: 1031
Location: Tartu, Estonia
Have you compared the Bochs log files in Windows and Linux? Are there any differences?

_________________
Programmers' Hardware Database // SF user: xenos1984; OS project: XeNOS


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group