|
|
Replacing Darwin with -O2 recompiled version
|
|
|
|
Junior Member
Join Date: Mar 2003
Location: Walnut Creek, CA
Status:
Offline
|
|
The default installation of Darwin in Tiger and the binary versions availible at www.opensource.apple.com/darwin are compiled with -Os to keep the memory footprint down, especially of the xnu kernel. I have a lot of memory though (PowerBook with 1 GB), so I decided I'd like to have an -O2 compiled version, to see what kind of a speedup I can get. What I've done:
Downloaded darwinbuild from opendarwin.org, fetched all the sources.
Changed one of the Makefiles in CoreOSMakefiles30 to have the optimization be -O2 rather than -Os.
Ran darwinbuild on xnu, and it compiled pretty much everything.
The build products look like a CLI-only Darwin installation. They're currently all on a disk image. So the question is: did I miss anything important, and now that I've got this, how do I make Tiger use this recompiled version?
Sorry if this is in the wrong forum.
|
I bring order to chaos. You are in chaos windows, you are the contradiction, a bug wishing to be an OS.
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Apr 2002
Location: california
Status:
Offline
|
|
I'm not sure.
But I'd do some benchmark-type tests on your system vs. a single-user-mode booted OS X system, to make sure it really is appreciably faster before trying to replace the OS X core (which will probably be difficult, if not impossible).
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status:
Offline
|
|
If all you did is recompile the kernel, I think you can just drop the new one on top of the old one. Of course, you want a good backup first--in case it doesn't boot. Most of that stuff is exactly the same as the release version of Tiger. Personally, I'd copy the recompiled kernel over, while backing up the existing one, repair permissions, and give it a shot. Of course, this requires having a second working installation available in case this breaks anything.
|
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
|
|
|
|
|
|
|
|
Mac Enthusiast
Join Date: Dec 2002
Location: netherlands
Status:
Offline
|
|
You could clone your bootdrive using Carbon Copy Cloner or some tool like that and change the kernel on that clone, then boot off that drive.
I'm very curious if it works!
|
MacBook Pro 13"/2.66 (09/2010), Mac Mini c2d/1.83 (01/2008)
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Jun 2000
Status:
Offline
|
|
This reminds me of removing that debug code to make it Snappy™.
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Jan 2003
Status:
Offline
|
|
Chances are, Apple tried this kind of thing and decided it didn't improve performance. Very frequently optimizing for size increases performance more than optimizing for pure speed because more code fits in the L1 or L2 cache at any given instant and that provides the biggest speed boost by a large margin.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|