Help - Search - Members - Calendar
Full Version: OS X for SSE (qemu)
InsanelyMac Forum > InsanelyMac Lounge > The X Labs
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9
Embio
PearPC will mean we can run Jaguar or Panther, obviously. With the lack of Spotlight they may be faster.
Dragon
I'll include both like a said before. It doesn't matter which turns out to be faster.

Oh, just realized that was one I took from knoppix, not qemu. So that means it's not running in ram and it is using kde, which makes things slower.

I am making a SLAX video now. Sorry for wasting your bandwidth lol. Will post in a few mins.
joe75
Dragon, how much ram are you using and what is it?
Dragon
Dell Dimension 2300
768mb ram
1.8ghz

Xp PRO Sp2 > Vmware Workstation > SLAX > Qemu(noaccel + 480mb ram) > OS X
mac-mini
hysterical.gif time to try it on my slow 700mhz P3
Dragon
I will try with kqemu this weekend (on my p3).
Embio
Dragon, is possible for you to record videos in another format? what your using at the minute hates quicktime, VLC and any codec I throw at it 0 if not it doesnt matter - keep up the good work.

and as soon as I get some more RAM for my Power Mac G3 I can put it back in my 733 coppermine and bash it till it runs biggrin.gif
Dragon
I'm just using Vmware video capture... I converted the latest video to divX, does that one work?
Embio
a few minutes of blank white screen :S:S
Dragon
you must need a vmware codec or something.
try these
http://www.vmware.com/download/eula/moviedecoder_v55.html
http://linux.softpedia.com/progDownload/FF...nload-3054.html
krikey
This sounds too good to be true. Admittedly the video you offered for download was a bit on the slow side. But could be useful if like me you want to test sites on the Safari 2 browser as I have OSX 10.2.8 in pearPC.

I understand that the reason you're using SLAX is for QEMU, however are there no SSE2-like emulators for windows that work? I stumbled upon this link http://www.h7.dion.ne.jp/~qemu-win/ which says its QEMU for windows. Still in alpha however. Would this Windows version of QEMU negate the need for SLAX or any interim OS?
Dragon
If you'd have looked on the qemu homepage you would see that there was a windows version available aswell. Of course you can use it to run OS X inside windows for testing purposes, but the aim here is to get it running fast enough to be a usable OS for people who lack SSE2.
And BTW, the reason i'm using SLAX is because it can be loaded into ram which windows can't.

Also, that video was mainly slow because of a combination of things.
1. Laggy video capture
2. All of that was running inside a Vmware session
3. There was no qemu accelerator being used

When running natively, hopefully with all of these obstacles out of the way, we should be able to run at decent speeds.
MacRetail
@Dragon
I got way better speeds with PearPC in the past, but I wasn't running it in emulation. PearPC has an accelerator for Intel-processors built in. And I wasn't running it in a Linux LiveCD in VMWare either.

Sadly I can't find a PearPC binary for Linux (only source code) I"ll try to run PearPC for Windows in Wine (lol).
Dragon
Why don't you apt-get it? That's what I was doing.
I haven't tested PearPC yet and I only have the 10.4.1 ppc install. Unless any of the other hackintosh dvd's are ppc aswell.

sudo apt-get install gcc
sudo apt-get install pearpc
mac-mini
well im just going to test using windows and benchmark it

EDIT: going to try to make 10.4.8 work
MacRetail
Well, I haven't got an internet connection on my PC. (writing this on a Mac mini G4)
mac-mini
i already have it booting from the CD image
munky
so... does kqemu require SSE2 in order to emulate SSE3 ?

sorry if this is a dumb question, i couldnt find any mention of it after a bit of googling...
Dragon
The guys before said that you had to start qemu without it for it to work on p3, so I didn't give it much thought until now. But I just ran it (not with OS X) on my p3 with kqemu and it worked. Gained quite a bit of speed.

Mac-mini - Are you using Jagermeisters modified qemu?
munky
wow... gonna give OS X a try? wink.gif

qemu is a processor emulator, so presumably it will emulate SSE2 as well as SSE3.....?

will be very interesting to see what kind of speed we can get out of this... I have an old P3 733Mhz machine which i'd like to bring up to OS X smile.gif
Dragon
it emulates SSE2 and SSE3.
and i will give OS X a try this weekend when i get time to move the p3 out of my sisters room tongue.gif
munky
Rock on wink.gif
Baltazar
Yeah, go crazy! tongue.gif
Cruxado
I've been out for awhile... TESTs are flying everywhere here at the Univ.

I'll be testing using the SLAX version and OS X 10.4.6 x86
mac-mini
no im not using the modded QEMU
Dragon
i've made my own slax cd with qemu and pearpc modules and am just about to burn so i can test it on the p3.

This is the pearpc module required for SLAX.
Dragon
Setting up pearpc on the p3 tomorrow morning, also try qemu with kqemu/qvm86.
munky
good luck dude - cant wait wink.gif
Dragon
Kqemu module.
Dragon
This is qmv86... i'm just converting all these from rpms and storing them here.
Sorry for the "spam".
Pu7o
The thing is, kqemu and qvm86 change qemu from an emulator into a virtualizer. So, if you run qemu on a P3 with Kqemu/qvm86, you don't get SSE2/3, and therefore you don't run Mac OS X.
Dragon
You are right... we have to use both pearpc and qemu (with no accelerator).
mac-mini
so thats my problem in windows im using kqemu
munky
so there's no way to virtualise non-SSE instructions and emulate the rest?

maxxuss used to trap the exception raised by the lack of an SSE3 instruction and trapped it to call emulation code, i think. is there any way we could do something similar?
Dragon
qvm86 says :
Virtualisation allows "emulated" code to be run natively on the host cpu, using the CPU protection mechanisms to intercept and emulate priveleged events.

i'm wondering if it's possible to set which events are "priveleged".
maybe we could set all SSE2 calls to be emulated and the rest virtualized then.
Embio
surely emulating instructions on something that runs them natively would be fast anyway, because it isnt going to take much effort to do? thats the nature of computers - it has to be faster than x86 on PPC or the other way round - no?
munky
Embio - dont bet on it. Emulating a full x86 processor doesnt get any faster just because your executing your emulation code on an x86 processor. You have to specifically code to take advantage of x86 features if you want to optimise. Thats why QEMU on x86 is slow without the accelerator module, which does offload the work to the real processor.

What we want is a hybrid approach where instructions supported by the processor are run 'natively' or at least executed in a virtualisation-style way, and instructions which are not supported (eg SSE, SSE2, SSE3) are emulated in software.
JaS
I wonder if the same sse2 emulation that is used in Qemu can be ported to the kernel and be done with it. Is the Qemu sse2 emulation avalable in source code somewhere ...
Embio
Qemu is open source, thats going back to my original suggestion of integration. Obviously its the easiest way of doing things, and the fastest but we need someone with a lot of experience in this area smile.gif
munky
that would be a great solution, and would negate the need for qemu and linux. any volunteers? wink.gif

EDIT: I think ops_sse.h in target_i386 of the qemu source will provide interesting reading... wink.gif

EDIT2: If this is possible, it would be HUGE! Imagine all the 'disenfranchised' machines which could be supported... wink.gif
Embio
like I said, we need an expert. It would be very good for those of us with 3Ghz Athlons hanging around.
Dragon
It's possible, but it would require quite an experience developer to implement it.

EDIT: As a backup plan, we could modify kqemu to only virtualize non-SSE2 instructions now that it's open source if that's easier.
Embio
to me that sounds harder
Dragon
that's why I called it a "backup plan". biggrin.gif
it may still be easier though, OS X might give us other problems that don't rely on the kernel.
i still have a feeling a slight amount of emulation will be required.
Dragon
I'm uploading my "PearOS"/"QemuOS" on megaupload for anyone that wants it. You have to start OS X manually and get access to the osx86 img/isos yourself.

I'll post the link when it finishes uploading.
Embio
awesome - just let us know when its up. Can we use OSx86 DVDs with it?
Dragon
yeah.

uploading at really slow speeds (12kb/s),
Time remaining : 01:57:22 (55.57 MB of 138.17 MB)

update - 00:56:04 (101.99 MB of 138.17 MB)
Dragon
http://www.megaupload.com/?d=4VWZ4WUZ
Baltazar
Cool! Will check it out later.

Edit:
Have you tried it out on your P3 yet, and how did it perform compared to the video you posted earlier running trough vmware?
Dragon
Probably triple that speed. Maybe more.

Also, remember my p3 is only 450mhz.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.