In Reply to: Channel D on Direct Mode/Integer for OSX Lion posted by Mercman on June 28, 2012 at 09:12:35:
Damien sent me this info to reassure users of the Audirvana Beta:
OS X is based on a BSD (flavor of Unix) kernel that brings virtual memory (so called "protected memory") management, along with a preemptive multitasking scheduler.
These two mechanisms ensure applications play along well, and that an application hang, or crash will not impact the rest of the system:
A hang is managed by the scheduler that gives back CPU to other apps when the hung app time is up.
For crash, each application lives in its own address space ("virtual memory") and any attempt to access beyond its allocated domain fails, terminating the application (99% of crashes).
The OS service, inter application communications, … are managed through specific ports/APIs/shared memory mechanisms offered by the kernel.
No application can directly access the kernel space. This is called the user/kernel boundary. It can be crossed on by drivers inside the kernel that offer services to applications. Outside those declared services, no way.
Audirvana Plus uses such official mechanisms, period. No "open heart surgery", evil hacking breaching security mechanisms.
But the kernel lives in a single address space, thus not isolating drivers from the other. This is mainly for performance reasons. (FYI, there have been some microkernel designs with this kind of protection at all levels, but the performance hit what too high). That's why a IOAudioFamily / OSvKernDSPLib failure crashes the kernel, thus the whole system. And note that it is not that bad, some core functions being still alive as it can display the error message on the screen.
On kernel panics impact: OS X makes use of a journaling file system. This is a technology directly derived from the high end databases: the two phases commit.
First phase: you write in the journal what you intend to do, with the roll back information. Second phase: you perform the operation, and finally you erase the journal entry.
This ensures that the hard drive will always be in a consistent state, even if the system crashes (kernel panic, power loss) at the wrong time. In this case, at the next boot, it will find journal entries about incomplete operations, and perform the roll back steps to ensure the hard drive consistency.
A note about sandboxing: this is a new feature first introduced in Lion, and that will get widely used only from Mountain Lion on. Goal is to prevent malicious activity (e.g. viruses, trojans, …).
This is a trick to fool an application by making it believe it is running in a very limited system, with access to only the approved services (see: https://developer.apple.com/devcenter/mac/app-sandbox/ ). E.g. the objective is to avoid an application approved for text editing to play with USB devices.
This post is made possible by the generous support of people like you and our sponsors:
Follow Ups
- A Technical Response from Damien Plisson ( Audirvana) - Mercman 14:36:33 06/29/12 (91)
- RE: A Technical Response from Damien Plisson ( Audirvana) - fmak 22:11:47 06/29/12 (87)
- fmak'd again.... - bwb 07:23:40 06/30/12 (5)
- RE: fmak'd again.... - Mercman 07:53:59 06/30/12 (4)
- Have a look here - fmak 09:04:25 06/30/12 (3)
- Another off-topic diversion tactic from fmak - AbeCollins 10:46:01 06/30/12 (2)
- What - fmak 10:54:23 06/30/12 (1)
- What, indeed. And yet another example... - AbeCollins 12:18:43 06/30/12 (0)
- Operating System Jargon - Tony Lauck 07:04:53 06/30/12 (8)
- RE: Operating System Jargon - fmak 09:06:15 06/30/12 (7)
- RE: Operating System Jargon - Tony Lauck 09:09:34 06/30/12 (6)
- RE: Operating System Jargon - fmak 10:56:34 06/30/12 (5)
- RE: Operating System Jargon - Tony Lauck 12:03:22 06/30/12 (4)
- RE: Operating System Jargon - fmak 22:14:32 06/30/12 (3)
- RE: Operating System Jargon - Tony Lauck 10:03:12 07/01/12 (2)
- RE: Operating System Jargon - Mercman 10:56:43 07/01/12 (0)
- RE: Operating System Jargon-this - fmak 10:27:09 07/01/12 (0)
- RE: A Technical Response from Damien Plisson ( Audirvana) - Mercman 04:45:57 06/30/12 (4)
- RE: A Technical Response from Damien Plisson ( Audirvana) - Tony Lauck 06:26:53 06/30/12 (3)
- RE: A Technical Response from Damien Plisson ( Audirvana) - Mercman 07:58:11 06/30/12 (2)
- RE: A Technical Response from Damien Plisson ( Audirvana) - Tony Lauck 09:27:16 06/30/12 (1)
- RE: A Technical Response from Damien Plisson ( Audirvana) - Mercman 09:40:47 06/30/12 (0)
- RE: A Technical Response from Damien Plisson ( Audirvana) - Dynobot 03:43:23 06/30/12 (66)
- Augmented sound... - AbeCollins 11:15:53 06/30/12 (6)
- RE: Augmented sound... - Tony Lauck 12:24:26 06/30/12 (5)
- Not so simple as you suggest - AbeCollins 15:18:48 06/30/12 (4)
- RE: Not so simple as you suggest - Tony Lauck 09:50:07 07/01/12 (3)
- RE: Not so simple as you suggest - Bob_C 14:37:59 07/01/12 (1)
- RE: Not so simple as you suggest - Tony Lauck 18:06:53 07/01/12 (0)
- RE: Not so simple as you suggest - AbeCollins 14:34:34 07/01/12 (0)
- Sorry - fmak 11:14:31 06/30/12 (0)
- not really - bwb 07:29:03 06/30/12 (1)
- Precisely !! - AbeCollins 10:52:43 06/30/12 (0)
- RE: A Technical Response from Damien Plisson ( Audirvana) - Mercman 04:51:42 06/30/12 (55)
- RE: A Technical Response from Damien Plisson ( Audirvana) - fmak 05:05:19 06/30/12 (54)
- RE: A Technical Response from Damien Plisson ( Audirvana) - Mercman 05:13:22 06/30/12 (53)
- RE: A Technical Response from Damien Plisson ( Audirvana) - fmak 06:20:01 06/30/12 (52)
- RE: A Technical Response from Damien Plisson ( Audirvana) - Mercman 07:47:51 06/30/12 (1)
- Black Diamond Racing Cones. - Dynobot 09:34:16 06/30/12 (0)
- Good Point.... - Dynobot 06:58:43 06/30/12 (49)
- RE: Good Point.... - Mercman 07:53:15 06/30/12 (48)
- Where can I find the purity? - fmak 04:04:25 07/03/12 (0)
- RE: Good Point.... - Dynobot 08:09:01 06/30/12 (46)
- RE: Good Point.... - Mercman 08:14:58 06/30/12 (45)
- RE: Good Point.... - Dynobot 08:28:36 06/30/12 (44)
- suspended is not nothing - bwb 09:04:50 06/30/12 (33)
- RE: suspended is not nothing - Bob_C 14:45:59 07/01/12 (8)
- If you have done this I second the Nobel nomination." - Dynobot 16:11:41 07/01/12 (7)
- Can you please elaborate? - bwb 17:29:19 07/01/12 (6)
- RE: Can you please elaborate? - Bob_C 14:50:19 07/02/12 (3)
- thanks for the response - bwb 18:51:59 07/02/12 (1)
- RE: thanks for the response - Bob_C 19:06:55 07/02/12 (0)
- RE: Can you please elaborate? - Dynobot 17:47:53 07/02/12 (0)
- You are on IGNORE buddy.... - Dynobot 17:39:12 07/01/12 (1)
- no problem - bwb 18:04:43 07/01/12 (0)
- RE: suspended is not nothing - Dynobot 09:15:26 06/30/12 (23)
- Clocks vibrate. Coupled items vibrate together. Everything is coupled. - Tony Lauck 10:16:49 06/30/12 (6)
- RE: Clocks vibrate. Coupled items vibrate together. Everything is coupled. - fmak 11:03:45 06/30/12 (0)
- RE: Clocks vibrate. Coupled items vibrate together. Everything is coupled. - Mercman 10:39:38 06/30/12 (4)
- The sound might be a little brighter or a little warmer, but that's about it. - fmak 11:05:15 06/30/12 (3)
- RE: The sound might be a little brighter or a little warmer, but that's about it. - Mercman 11:14:16 06/30/12 (2)
- RE: The sound might be a little brighter or a little warmer, but that's about it. - fmak 11:16:38 06/30/12 (1)
- RE: The sound might be a little brighter or a little warmer, but that's about it. - Mercman 11:21:45 06/30/12 (0)
- have anything to back that up? - bwb 09:40:08 06/30/12 (15)
- RE: have anything to back that up? - Dynobot 09:50:50 06/30/12 (14)
- I wouldn't - fmak 11:06:37 06/30/12 (2)
- Anything you would like to add to the debate or just hurling insults as usual? /nt - bwb 11:31:30 06/30/12 (1)
- There is no debate - fmak 11:38:10 06/30/12 (0)
- Great, so you agree with me - bwb 10:02:10 06/30/12 (10)
- Hopeless yet predictable - Dynobot 10:10:16 06/30/12 (9)
- hopeless indeed, I just didn't realize how hopeless - bwb 11:34:17 06/30/12 (8)
- Reading is fundamental, Comprehension is Essential - Dynobot 10:25:47 07/01/12 (7)
- So I misinterpreted your earlier comment? - bwb 10:47:15 07/01/12 (6)
- RE: So I misinterpreted your earlier comment? - Dynobot 10:57:04 07/01/12 (5)
- What is your problem? - bwb 12:11:58 07/01/12 (4)
- RE: What is your problem? - Dynobot 12:39:59 07/01/12 (3)
- the end ............... - bwb 12:55:56 07/01/12 (2)
- You claim Fmak runs away, now look whos running - Dynobot 13:08:38 07/01/12 (1)
- . Baiting me will not work. - bwb 13:39:16 07/01/12 (0)
- RE: Good Point.... - Mercman 08:36:30 06/30/12 (9)
- Standards - Dynobot 09:01:29 06/30/12 (8)
- really? - bwb 09:08:17 06/30/12 (7)
- RE: really? Yeah REALLY - Dynobot 09:20:08 06/30/12 (6)
- you can't logically be on both sides of the same debate - bwb 09:31:00 06/30/12 (5)
- RE: you can't logically be on both sides of the same debate - Dynobot 09:37:52 06/30/12 (4)
- RE: you can't logically be on both sides of the same debate - bwb 09:51:18 06/30/12 (3)
- Le mieux est l'ennemi du bien. - Tony Lauck 12:38:51 06/30/12 (0)
- RE: you can't logically be on both sides of the same debate - Dynobot 10:03:06 06/30/12 (1)
- you really have trouble with logic don't you - bwb 10:54:13 06/30/12 (0)
- so now I'm confused - bwb 15:07:05 06/29/12 (1)
- RE: so now I'm confused - Mercman 15:15:58 06/29/12 (0)
- RE: A Technical Response from Damien Plisson ( Audirvana) - Dynobot 14:47:49 06/29/12 (0)