Login  •  Register


The time is now: Wed Nov 20, 2019 6:11 am

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 11 posts ]
Print view Previous topic  |  Next topic
Author Message
 Post subject: Why PearPC is SO slow?!
PostPosted: Sun Jan 08, 2017 6:28 pm 
Offline
Inquisitive Elf

Joined: Sun Jan 08, 2017 4:31 pm
Posts: 30
Location: Russia
Hello!

I'd like to ask this simple question (maybe, it's been already asked here) - why the hell is PearPC so extremely slow on my very fast machine?! My host hardware CPU is Intel Core i7-2600 @ 3.40 GHZ (4 logical + 4 real cores). The PC has 8 Gb of memory, NVidia GeForce GTX 570 video adapter and new SSD with W10 64-bit on it. Initially I tried PearPC 0.5.0 from the distant 2011. The OS installation process was very slow even on generous settings of the emulator (G3 CPU, max amount of DRAM, 50 ms for redraw interval). Then I switched to newer 0.6pre and increased redraw interval to 100 ms. Nothing has changed practically. Well, it became slightly faster but still works 10-15 times slower than the host system.

Now some fun part - I've been installing Mac OS X Tiger 10.4.6 for ~13-14 hours! :evil: (took one night + one morning). Ok, when it got installed it's still slow: all file read/write operations are performed at 300-400 kB/sec, the internet speed is limited to this value also. Although video renders without any noticeable delays (and the mouse moves almost without delays), I have to wait for several seconds to several minutes to, say, open Finder, mount .dmg image, copy some file from one folder to another etc. In comparison to PearPC another emulators such as SheepShaver and Basilisk II work much faster - not so fast as the host but I'm almost satisfied with them.

Well, I'm gonna give it up, erase PearPC from my HDD and forget it as a bad dream. But finally I'd like to know if there's something to do with PearPC to speed it up or not.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Jan 12, 2017 1:11 pm 
Offline
Tinkerer

Joined: Sun Sep 28, 2014 11:53 am
Posts: 82
Location: China
Well, it works pretty fast(at least faster than Qemu). It took me one hour or so to install the same os, further more, the disk image was NTFS compressed. My laptop uses an Ivy Bridge i3 processor.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Jan 12, 2017 5:52 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2722
Location: Emaculation.com
I've actually found that PearPC is faster than qemu in some areas, and significantly slower in a few. Using Redscorp and/or 0.5 vs qemu 2.8pre, I found that PearPC flew through the boot process, but bogged right down on anything requiring mathematical computations (floating point, etc.) or graphics. Networking is also tricky to set up, and there's no audio; I can get both in qemu.

So PearPC seems to use better disk access routines but worse floating point. Floating point has also been found to be a bottleneck on qemu, so there's probably more going on as well, but I don't know what it is.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Jan 12, 2017 7:56 pm 
Offline
Inquisitive Elf

Joined: Sun Jan 08, 2017 4:31 pm
Posts: 30
Location: Russia
I hoped that it is somehow related to SSD issues but no - I have just copied all PearPC files to common SATA HDD and launched the OS there. It's still sluggish as a turtle. :mrgreen:

To demonstrate my problem w/ PearPC, I recorded a simple video: http://www95.zippyshare.com/v/dM1oe9iD/file.html There you can see that PearPC may be very irresponsive to the user's interaction.
adespoton wrote:
So PearPC seems to use better disk access routines but worse floating point.
I haven't tested floating point operations yet, but as to me the disk management in QEMU is processed faster than in PearPC. I don't know why my situation differs so much though.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Jan 12, 2017 10:17 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2722
Location: Emaculation.com
How much memory are you allocating to PearPC? 10.4.6 works best at 512MB IIRC.

Also, what screen resolution are you using? I found on SheepShaver and BII that non-standard resolutions brought things to a crawl -- could be that something similar is happening for you. 1024x768 should be optimal.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Jan 13, 2017 5:38 am 
Offline
Inquisitive Elf

Joined: Sun Jan 08, 2017 4:31 pm
Posts: 30
Location: Russia
adespoton wrote:
How much memory are you allocating to PearPC? 10.4.6 works best at 512MB IIRC.

Also, what screen resolution are you using? I found on SheepShaver and BII that non-standard resolutions brought things to a crawl -- could be that something similar is happening for you. 1024x768 should be optimal.
As you might notice on the record, I'm using 1280MB of DRAM and resolution of 1024x768x32. I'll check it with 512MB and other resolutions but I doubt it will change something.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Jan 14, 2017 11:22 am 
Offline
Inquisitive Elf

Joined: Sun Jan 08, 2017 4:31 pm
Posts: 30
Location: Russia
Today I've been playing with graphical and memory settings. So, I can conclude that it's not the resolution issue but likely a memory related one. When I set the DRAM to 512 MB, the system becomes more responsive - now the opening of System Preferences takes 3-4 sec instead of 10-15. :smile: I found out empirically that 128 to 512 MB is the most comfortable range for the system.

Suddenly it turned out that I cannot increase the memory again to my older values - when I set it to 1280, I'm getting this:

Image

Very interesting! :shock: Now I'm unable to set the memory to 512 MB and above, but it's running well on 504 MB and below.

It all doesn't make much sense to me because I switched to SheepShaver and QEMU due to the need of Classic environment. But it may be useful for someone else.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Jan 15, 2017 5:07 am 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2722
Location: Emaculation.com
Hmm... could be to do with where in memory PearPC is allocating memory for the guest OS -- I know SheepShaver has issues with this (but for other reasons than PearPC would). At this point, I'd recommend a reboot of your Windows system, and setting memory to 256MB; that should be enough for 10.4, and is less likely to run into memory addressing issues.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun May 07, 2017 3:50 pm 
Offline
Inquisitive Elf

Joined: Fri Feb 15, 2013 3:27 pm
Posts: 25
You need to install 10.4 without any updates, any Tiger updates from 10.4.1 to 10.4.11 Significantly slows down emulation. This is PearPC only issue.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Mar 14, 2018 6:33 pm 
Offline
Space Cadet

Joined: Tue Feb 27, 2018 1:19 pm
Posts: 2
The emulation is quite a bit slower in Windows when compared to Linux/OSX.
Not much you can do. Perhaps try emulating a G3 cpu with -cpu G3
But PearPC is even slower ;-)
Cheers, BitGid


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Mar 14, 2018 9:52 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2722
Location: Emaculation.com
Hmm? I used to run PearPC 0.5 for Windows in WineSkin on OS X because it was significantly faster than running it natively in OS X. This is due to the JIT emulation not working on OS X.

So maybe the issue here is that JIT is disabled?


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 11 posts ]


Who is online

Users browsing this forum: No registered users and 5 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
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group