Understanding OS X Kernel Internals 199
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."
huh? (Score:2, Insightful)
What the hell does that mean ? Editors drunk ?
Re:huh? (Score:2)
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
make sense now?
The sentence sucked, but it made sense in a bad grammar sort of way.
Re:huh? (Score:2)
http://www.answers.com/allot&r=67 [answers.com]
http://www.answers.com/a+lot&r=67 [answers.com]
Re:huh? (Score:2, Informative)
It might make more sense in this format, and without the grammar error:
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?
Re:huh? (Score:3, Interesting)
Re:huh? (Score:2)
Re:huh? (Score:2)
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)
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)
I think the problem is that they're exactly as skilled in writing english as they are in writing PERL.
Re:Needs more editor. (Score:2)
Re:Needs more editor. (Score:2)
Then maybe the good folks OSTG should consider hiring people appropriate for the jobs they're supposed to do.
Honestly, I suck at PERL as well - I would never consider writing something in it, put it up for all to see and not expect to get torn to shreds by people who actually do know PERL, especially if I were getting paid to do so.
Skillsets actually can overlap... (Score:2)
Re:Needs more editor. (Score:2)
Ramen to that. Of course, it doesn't just apply to the editors here on Slashdot, but to many posters as well (needless to say, though, the editors should be expected to know better English than the posters). I don't know if it's just me, but it has definitely made me enter a different reading mode when reading on Slashdot than on most sites out there, where I just scan for keywords in each sentence, rather than looking at
Re:Needs more editor. (Score:2)
Re:Needs more editor. (Score:2)
This one is actually grammatical, just awkward. "whether it is why MacOS X's kernel is slow, or
Re:Needs more editor. (Score:2)
It makes no sense to me because the sentence peters off, but it's the correct usage of it's and its. That sentence needs to be seriously reconstructed but the first two uses of it's and its in it are correct. The third one "it's going closed source" should be "its going closed source". But 2/3 is amazing for a slashdot post.
Where are good internal docs? (Score:5, Interesting)
Re:Where are good internal docs? (Score:2)
Oh by the way, how many viruses are there on OSX?
Re:Where are good internal docs? (Score:2, Informative)
Re:Where are good internal docs? (Score:2)
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?
Re:Terrible summary. (Score:2)
Very unlikely. Look at the choice of words, things like "innards", "head over". This is written by someone who knows the language very well, but is simply too uneducated or too lazy to learn how to write correctly.
People who learned English as their second language very rarely use _bad_ English. They may have limited vocabulary, and you may spot typical mistakes that may even let you identify where someone comes from, but they won't get "their",
"OS X is slow" claims investigated (Score:5, Informative)
Re:"OS X is slow" claims investigated (Score:2)
The author did address the Malloc issue well.
What I got from the comments is that the author really did fail to address the issues that OS/X seems to have with the speed of some function system calls and or the speed of process and thread creation.
It could be that OS/X isn't as well suited for HPC applications and some server application as Linux is.
I do think OS/X is a very good OS. Just like Linux and Windows it isn't perfect and could im
that's just one example... (Score:2)
There's no doubt in my mind X is many times slower than it needs to be. Most of it is in the kernel though, not the call site.
You are incorrect, sir. (Score:2)
It is a trivial experiment to initially cache the vp for
The real problem here, though, is the perception that system call trap s
Re:"OS X is slow" claims investigated (Score:2)
Cheers.
Re:"OS X is slow" claims investigated (Score:3, Interesting)
It is _not_ a common operation.
As that article explained, the developers of the software in question could have used Shark (comes for free with every Macintosh), and within 20 s
Re:"OS X is slow" claims investigated (Score:2)
I wonder how much research there has been as to what the optimal size for the heap threshold is. It's just interesting that the malloc implementations differ so much. It sure makes sense to distinguish between small/fast allocations and larger allocations. But is 35K really optimal? Maybe it is. Do they publish data on this anywhere?
Cheers.
Comment removed (Score:5, Insightful)
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.
Re:Underpowered Little Machine (Score:3, Insightful)
Re:Underpowered Little Machine (Score:2)
Re:Underpowered Little Machine (Score:2, Informative)
Being modded "Funny" doesn't improve you karma anymore. Your post seems to indicate that you didn't know this, but I'm not sure. Anyhoo, here's the relevant FAQ [slashdot.org]:
Re:Underpowered Little Machine (Score:3, Interesting)
Since they are Carbon based expect them to be bloated.
When Apple replaces Finder and other critical sections of their application base with pure cocoa applications then perhaps we'll see more improvements as we should have seen.
Re:Underpowered Little Machine (Score:2)
And this is exactly what you should have done. Apple ships their consumer boxes with way too little RAM (they always have,) but the upside to that is you can just go elsewhere and buy it cheaper than Apple is willing to sell it for.
I wouldn't fully judge ANY computer's speed unles
Re:Underpowered Little Machine (Score:3, Informative)
You don't remember right.
I've owned Macs for years, and never once used anything other than cheap third-party memory to upgrade them. The G3 Towers were very picky about memory that was up to spec, but even then there was no need to buy from Apple.
And how, exactly, would you suggest installing "matched/paired memory kits" in
Re:Underpowered Little Machine (Score:2, Interesting)
Certain Power Macintosh models, usually the higher end ones, could use matched pairs so that you could interleave memory pages. If you went that route, supposedly you could squeeze out some more system performance. If I remember right, Apple claimed you could gain up to 20% more total system performance on the PowerMac 8500/9500 systems by activating memory interleaving. The only people that I remember doing this were heavy Photoshop users or serious Adobe Premiere video editor
Re:Underpowered Little Machine (Score:2, Informative)
Re:Underpowered Little Machine (Score:3, Informative)
Re:Underpowered Little Machine (Score:2)
Kernel and Kernel Theory Aside (Score:2)
Most Apple applications themselves tend to be a bit 'bloated'. No matter how fast the kernel is, you have a bit of a bloated GUI construct (especially in terms of RAM Usage) then add on the RAM used by some of the built in applications, and ouch.
And no, not all of Apple application are bloated, safari isn't bad in terms of size and performance in comparison to some of their other creations like iPhoto, etc...
You can almost pick through the applications included on OSX and se
Re:Kernel and Kernel Theory Aside (Score:3, Interesting)
Few, if any, current UN*Xes were "designed to have locks", but many of them (Solaris, Linux, FreeBSD, OS X) have made their locks finer-grained anyway; it's not as if you're stuck with all the consequences of the "design" forever.
What are some examples of this extra indirection? (Not
On a side note: (Score:2)
Mac means "pimp" en français. Thought that was rather funny.
Re:Underpowered Little Machine (Score:2)
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.
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Re:Closed? (Score:2)
Uh, you don't appear to be presenting an argument, you seem to have an unsupported opinion. By the way, your position (not argument) makes sense to you. Yet you have at least two people who appear to disagree with the "logic" which lead you to your position, not that that really matters.
He doesn't need one. He's merely presenting what he sees as relevant facts to the seemingly unreasonable.
Re: (Score:3, Funny)
Re:Closed? (Score:3)
Yager's speculation as to why they might close it sounds viable, but Prabhakar says that it's merely speculation. Which it is. Yager's assumption doesn't seem to address the possibility that Apple might be changing from XNU to something else entirely, which has been continually speculated for years now. Yager also ignores the possibility that they migh
Re:Closed? (Score:2)
Re: (Score:2)
Re:Closed? (Score:2)
Apple has been known, on many occasions, to not reveal free improvements to hardware until it was in their customers hands. Which is just as unimportant as your argument.
Patience is a virtue my friend
Re: (Score:2)
Re:Closed? (Score:2)
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.
Re:OSX: Highly Thread Sensitive (Score:2)
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
Re:OS X Kernel - Why? (Score:2)
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:2)
Don't forget MPC8641D [freescale.com].
Re:OS X Kernel - Why? (Score:4, Informative)
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:2)
While I don't think virtualization will kill off native OSes, it's not slow.
We use virtualization at work, the hit from VMWare is significant but usually managable, and the hit from Xen is small enough that it's getting hard to measure.
Re:OS X Kernel - Why? (Score:2)
Re:OS X Kernel - Why? (Score:2)
No. I don't need to use another OS today.
Re:OS X Kernel - Why? (Score:2)
A video slowed to 90% would be annoying, but any modern system slowed to 90% would play a video at full speed. Your analogy breaks down.
As the mac-buying public has no problem with rosetta slow downs on intel hardware, I imagine they wouldn't have any problems with other slow downs due to emulation layers.
Re:OS X Kernel - Why? (Score:2, Troll)
"As the mac-buying public has no problem with rosetta slow downs on intel hardware, I imagine they wouldn't have any problems with other slow downs due to emulation layers."
The mac-buying public has no problem with getting less than what they paid for? No... Surely not...
No seriously, I'm well aware of the masses of emu layers Macs *presently* have, as well as all the stupid pissing con
Re:OS X Kernel - Why? (Score:2)
No, it does break down. A video at 90% speed is unwatchable. A computer at 90% speed is quite usable.
In fact - as you rightly point out, no matter what system you're using, it will almost certainly be running at less then 90% of its full speed.
I paid for full speed, I want full speed.
Well, I don't disagree with you there.
So yeah. My point is that Virtualization will not destroy the native OS market. Not a chance in hades. Too many
Re:OS X Kernel - Why? (Score:2)
I think the vast majority of people will quite happily accept a 5-10% slowdown. ''
Customers who bought a Macintosh are very unlikely to accept software that runs 5-10% slower, and _in Windows_.
I expect that only a small percentage of Macintosh owners would be willing to _use_ Windows software. The percentage who would be willing to _buy_ Windows software, especially after a Macintosh product was abandoned, is miniscule.
Re:OS X Kernel - Why? (Score:2)
I doubt they would even notice a 5-10% slowdown.
I expect that only a small percentage of Macintosh owners would be willing to _use_ Windows software. The percentage who would be willing to _buy_ Windows software, especially after a Macintosh product was abandoned, is miniscule.
You obviously did not read the mac fanboy excitement in the win32 virtualization & boot camp stories. It was rampant, y
Re:OS X Kernel - Why? (Score:2)
Re:OS X Kernel - Why? (Score:2)
ian
Re:OS X Kernel - Why? (Score:2)
This is absurd. None of your customers are going to buy $200 Windows licenses, and spend the considerable extra money for Windows support costs, to run your product. They will spend the money to switch to a competitor's product instead. If they wanted to run Windows boxes, they would have them. The fact that they've pa
Re:OS X Kernel - Why? (Score:2)
Depends on the IT person's needs. If you're talking about big organizations, no. If you're talking about a shop that keeps its hardware long enough that an OEM license (which can't be moved to another machine) is cost-effective, no. If you're talking about a small business, quite possibly. Microsoft does not have good (or any) volume lic
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:Spelling (Score:5, Insightful)
Re:Spelling (Score:2)
Re:Spelling (Score:5, Funny)
I also get kinda pissed off because lotsa people write it that way.
Re:Spelling (Score:3, Interesting)
Re:Spelling (Score:2)
Cool! I get to be the Spelling Police today!
From the New Oxford American Dictionary, 2nd Edition. (It's included with Tiger).
Re:Spelling (Score:2)
Re:Spelling (Score:2)
Fetch me my giant laser. [wigu.com]
Re:Profit! (Score:4, Informative)
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:Profit! (Score:2)
Re:The average person (Score:3, Insightful)
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:2)
Re:The average person (Score:2)
Re:The average person (Score:2)
Re:The average person (Score:2)
Re:The big mystery remains: why Mach? (Score:2)
Re:The big mystery remains: why Mach? (Score:2)