Slashdot Log In
Understanding OS X Kernel Internals
Posted by
Hemos
on Mon May 22, 2006 08:16 AM
from the knowing-more-about-the-insides dept.
from the knowing-more-about-the-insides dept.
jglidell writes "The OS X kernel has been in the news alot this past year, whether it's why its slow, Mach/micro-kernel makes it bad, it's going closed source and what not. Amit Singh has put up a new presentation on the innards of OS X. It does a pretty good job of summing up the OS X kernel architecture, and has some pretty detailed diagrams... for instance they show that there are so many process/threads layers in OS X. So if you are in the mood for doing some OS studying then head over."
This discussion has been archived.
No new comments can be posted.
Understanding OS X Kernel Internals
|
Log In/Create an Account
| Top
| 199 comments
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.

Spelling (Score:1, Insightful)
(http://www.ariankulp.com/)
The spelling police are on their way!
Re:Spelling (Score:5, Insightful)
Re:Spelling (Score:5, Funny)
I also get kinda pissed off because lotsa people write it that way.
huh? (Score:2, Insightful)
(Last Journal: Friday March 21 2003, @03:46AM)
What the hell does that mean ? Editors drunk ?
Re:huh? (Score:4, Funny)
whether it's why it's slow
Well... why is it slow?
Mach/micro-kernel makes it bad
Debating the pros and cons of Mach is a valid topic, but a phrase like this is so vague that it's meaningless.
it's going closed source
OK, that one's intelligible. But then we come across gems like this:
for instance they show that there are so many process/threads layers in OS X.
A small request for submitters: Take a minute to actually proof-read your summary. I'm not even talking about simple typos, or the correct use of "you're/your" - those look ugly, but most of the time people can still figure out what you meant. Just ask yourself: will these words make sense to a moderately intelligent English speaker who's not on a meth bender?
Needs more editor. (Score:4, Insightful)
"whether it's why its slow"
"they show that there are so many process/threads layers in OS X."
Do the editors even look at submissions any more? Or to put it another way, is our children learning yet?
Re:Needs more editor. (Score:5, Insightful)
(Last Journal: Monday August 20, @01:07PM)
Do the editors even look at submissions any more?
I'm afraid they do. I think the problem is that they're not as skilled in writing english as they are in writing PERL. (That's not a slam, by the way. I suck at PERL.)
And before anyone goes on an "Off Topic" jag, it really does make a difference if the readers can understand what's being written. I stumbled over the "that there are so many" sentence a couple times trying to make sense of it. There are so many process threads layers in OS X that what? It slows it down? It's hard to program? Or is there simply a gee-whizz lot?
Yeah, I know, I'm off to R the FA. I just wish I had a better idea of what's in there.
Re:Needs more editor. (Score:5, Funny)
(http://www.justgiving.com/garethowen | Last Journal: Thursday October 31 2002, @02:07PM)
I think the problem is that they're exactly as skilled in writing english as they are in writing PERL.
Where are good internal docs? (Score:5, Interesting)
(http://web.abnormal.com/)
Terrible summary. (Score:3, Insightful)
If English is a second language for the submitter, fine. But good grief, do you suppose one of the PAID editors could have done just a bit of work to make the summary more readable?
"OS X is slow" claims investigated (Score:5, Informative)
(http://gardnerman.com/)
Re:"OS X is slow" claims investigated (Score:5, Insightful)
(Last Journal: Sunday November 05 2006, @05:31AM)
It does nothing of the kind. Read the whole article, and ALL of the comments, sparky, not just the ones that support your prejudice.
Peter's point is that the "benchmark" in question boils down to how quickly OSX will malloc and free 35KB blocks. It happens to cross the mmap() threshold for kernel versus heap allocations.
It also shows how Apple fanboys applaud the author's explaination, even though they haven't a clue about the subject matter - and even admit it in their posts.
If you had actually refuted anything that Peter had said in his article, you might have a leg to stand on, but since you didn't, and since you toss off an epithet like "fanboy" instead of doing so, I conclude that you are the clueless one.
No wonder you're an AC.
-jcr
A flash presentation (Score:1)
Good bye, dear server!
Ad (Score:5, Informative)
Maybe it's just me though. Did anyone else find it extremely enlightening?
Underpowered Little Machine (Score:5, Insightful)
Initial startup yielded a smoking fast web browser, and other single line items.
I purchased the 2GB Ram upgrade (not from Apple at 600 USD, 280USD from Crucial) and I noticed such a difference, that I couldn't understand WHY they would even consider shipping that little silver wonder with less then 1GB of RAM.
It's not the kernel, it's the apps... They just don't give enough power to the off the shelf machines to support the great apps that come with it.
Vive le Mac... Thanks for putting excitement back into computing for me.
Re:Underpowered Little Machine (Score:5, Interesting)
Definitely 1 GB is a minimum amount of RAM needed for OS X Tiger these days. That is quite sad when you think about it, but RAM is cheap so I'm not too concerned about it. Apple has always shipped their machines short on RAM, hoping you'll pay ridiciulous amounts of money for their official RAM upgrades.
Closed? (Score:5, Insightful)
"Well... it hasn't. It's still open. IT JUST HASN'T BEEN RELEASED YET.
OSNews is reporting that Ernest Prabhakar, Apple's Open Source and Open Standards product manager, has stated in the Fed-Talk mailing that Apple has not actually closed Mac OS X's Darwin kernel for the Intel version of the OS; they simply haven't released it yet. Speculation about Apple closing the kernel arose from the fact that other non-kernel Darwin sources actually have been released, and the previous PowerPC-based kernel is still available as open source as well.Ernest wanted to make sure that tech media didn't confuse 'speculation' with 'fact'. A good lesson we all could benefit from...."
God damn alarmist idiots.
OSX: Highly Thread Sensitive (Score:3, Interesting)
With every ver. release through 10.4.x MacOS X, mach/BSD layer exhibits funtional improvements with speed increases of the processor CPU and latent performance behaviors from the additional kernal overhead added by code complexity and densification.
Prima Facia evidence to the 4X speed improvement in performance from Apple's new Intel CPU bears witness to the limits of the kernal architecture.
The big mystery remains: why Mach? (Score:1, Interesting)
So why hasn't apple done it?
Just a "glossy" overview (Score:2)
My opinion is that mac OSX is very well designed if you beleive that in the future there is be more and more "cores" inside most notebook and desktop computers. OSX is well setup to take advantage of 8-core machines. It should scale well.
Re:OS X Kernel - Why? (Score:2)
(http://whineymacfanboy.googlepages.com/ | Last Journal: Thursday April 12 2007, @09:28AM)
Not bad! I think for extra points you should have bought up speculation that Apple closed the OS X kernel to ease the future transition to the Vista kernel.
And of course, no modern anti-apple troll should be complete without reference to Apple's 'betrayel' of PA semi [reghardware.co.uk]
Re:OS X Kernel - Why? (Score:4, Informative)
(http://www.elflord.net/ | Last Journal: Monday March 19 2007, @10:35AM)
Ahh, and welcome back to another thrilling episode of "doesn't know what the fuck they're on about" theatre!
Honestly. OSV is SLOW compared to native. No one wants slow.
Re:OS X Kernel - Why? (Score:4, Interesting)
You're assuming that the only market for software is medium to large enterprise. Autocad (which is made by a well known vendor) is used by tons and tons of architects. Since I've worked in IT support for a few architectural firms, I can tell you that most of them are comprised of small business of under 50 employees. I've used Autocad under Windows, however when I needed to use something to make some plans for a shed for my church, I used Sketch-Up, because there's an OSX native version.
Furthermore, most of the people that I've run across who are excited about virtualization are primarily interested in using it to run the existing Windows apps they own, and plan on replacing those with OSX native versions where available, and comparable OSX native apps where not available. The other major segment (where I fall into this equation)interested in virtualization, is the IT people who use/support multiple platforms.
Boot Camp is for games. Noone I have spoken with that knows about virtualization is seriously intersted in using it for anything other than games.
What?
I'm not understanding something...
This seems like Carly Fiorina Logic. If we stop making HP calculators, people will just buy handheld HP units with similar funtionality. It doesn't matter that the calculator group provides a substantial net profit for the company. If we stop spending all that money on supporting calculators and simply use the computer support people we already have... Think of the savings!!!!
When a group/division in a company that caters to a market makes the company lots of money, leave them alone. They're doing their job, pulling a PHB stunt in wall street business tactics will only hurt your company.
Re:Profit! (Score:4, Informative)
(http://www.slashdot.org/)
there's nothing really new in that presentation, most of slashdotters know this stuff already, the only thing that we didn't know as of yet is that you can mispell "book commercial" in such an interesting way.
you can "troll" or "flamebait" my post, but this is the way that it is.
Re:Poetry is the reason for slowness (Score:1)
Re:The average person (Score:3, Insightful)
(http://www.gemstate.net/friends | Last Journal: Tuesday September 11, @10:32AM)
This story was boring because the presentation was dumb. It had a little useful information but not much. The subject is interesting.
OS/X security? How to lock it down? There are many sites on the web. Look for just about any good site about UNIX security and start from that. OS/X uses the UNIX security model.
Re:The average person (Score:1)
I think you mean "couldn't care less". I don't really blame you as this is a very common mistake people make, but seriously, think for a moment on what you're saying.
Re:Poetry is the reason for slowness (Score:1, Flamebait)
We should all switch from Apple's "crappy kernel" to the wonderful Linux kernel, which is now so buggy even its major developers agree it needs a bug fix cycle.
Re:Poetry is the reason for slowness (Score:1)
(http://www.evilmadscientist.com/)
Re:Comic indeed (Score:1)
(http://prokrypt.mesoazn.com/)
Re:Why bother (Score:2)
No.
"Now-a-days"? Try releasing a *BSD system under the GPL, or the Linux kernel+glibc under a BSD license, and see how much trouble you get into.
Whether looking at project X and using its ideas when writing a new project gets you into trouble is another matter. I'm not sure whether the GPL [gnu.org] or the modified BSD license [xfree86.org] or the APSL [apple.com] limits what you can do if you read code covered by that license or not.
Re:Possible interpretation. (Score:2)
(http://www.public.asu.edu/~corba3/)
The OS X kernel has been in the news a lot this past year; either a discussion of why it's slow, or why a mach/micro-kernel makes it bad, or because it's going closed source, etc. Amit Singh has put up a new presentation on the innards of OS X.
(You skipped over the 'a lot', messed up the meaning of a sentence with parentheses, changed a period to a comma that should have been a period, ruined someone's last name... you have no right to be a grammar nazi!)