News for hackers. Stuff that matters.
Re:NeXTBSD aka FreeBSD X by cpeterso on Wednesday August 26, 2015 @04:48PM (#10125933)
FreeBSD + Mach kernel, libdispatch, and launchd? How does this differ from Darwin?
Re:NeXTBSD aka FreeBSD X by kitsunesoba on Wednesday August 26, 2015 @05:04PM (#10126013)
I may be misunderstanding, but as far as I know it simply layers Mach kernel services onto the FreeBSD kernel rather than actually using Mach.
Re:NeXTBSD aka FreeBSD X by vezzy-fnord on Wednesday August 26, 2015 @05:26PM (#10126132)
Correct. There's an OSF Mach shim running as a FreeBSD kernel module which is then used to drive XPC and everything above.

That said, I feel rather uneasy about the base FreeBSD going such a verbatim OS X route. I can understand doing it for FreeNAS, PC-BSD and derivatives, but it's quite invasive for upstream. Especially considering this requires running a parallel Mach kernel in the same address space.

Also, using Mach IPC deliberately in 2015 is like shooting yourself in the foot in my mind, but it's probably better than kdbus.

Re:NeXTBSD aka FreeBSD X by erikarn on Wednesday August 26, 2015 @07:52PM (#10126693)
There's no parallel Mach kernel running. It's just Mach IPC shimmed as an FD type.
Re:NeXTBSD aka FreeBSD X by vezzy-fnord on Wednesday August 26, 2015 @08:21PM (#10126792)
It's a kernel module implementation of much of OSF Mach verbatim copied and shimmed from MkLinux, not just IPC. See sys/compat/mach in the NextBSD source tree.
Re:NeXTBSD aka FreeBSD X by erikarn on Wednesday August 26, 2015 @08:38PM (#10126865)
Yeah I looked; it's the IPC from Mach with some shimmed bits to do VM-y things for mapped message passing.

Mach was mostly VM and IPC - so of course it looks like it's a lot of Mach code. But there's no separate mach kernel running - it's just the IPC instances and they only exist as FD bits. It's not a complete kernel and FreeBSD isn't running "on" mach.

Re:NeXTBSD aka FreeBSD X by vezzy-fnord on Wednesday August 26, 2015 @09:01PM (#10126933)
I never made such a claim that FreeBSD is running on Mach. I said it integrated a Mach kernel interface as a module running in kernel space.

They also ported tasks (as processes), threads (kthreads) and some clock/timer stuff, as well. No memory objects because there's no external pager they can be backed from.

Re:NeXTBSD aka FreeBSD X by X-Istence on Wednesday August 26, 2015 @05:53PM (#10126265)
The base FreeBSD isn't going this route, this is something that is being worked on at iXsystems that may or may not eventually find it's way to FreeBSD itself.

That's my understanding from the presentation!

Re:NeXTBSD aka FreeBSD X by tossanextbsd on Wednesday August 26, 2015 @05:28PM (#10126140)
It's just a FreeBSD kernel. Kip's implemented Mach facilities on FreeBSD, but it's not remotely like Darwin. Darwin is a Mach (micro-)kernel that implements BSD APIs on top of Mach.
Re:NeXTBSD aka FreeBSD X by natermer on Wednesday August 26, 2015 @07:08PM (#10126543)
If Darwin uses a Microkernel then so does Microsoft Windows. They are very similar designs.

In case you are wondering: I don't think that Microsoft Windows uses a microkernel.

Some versions of Mach are micro, other versions are not. OS X doesn't use a microkernel, neither does Darwin. They use XNU kernel. XNU has code from Mach and it also uses code from FreeBSD.

People call it a 'hybrid kernel', but I think that is a misnomer and only really exists through the effectiveness of Apple's marketing. XNU is a monolithic kernel with message passing capabilities inspired from microkernels. Makes it so they can isolate certain features and drivers better then, say, Linux can.

Unlike Apple, Microsoft actually did release a version of NT that was a true microkernel, but they quickly realized that it is not a practical approach to creating a OS that was competitive with Unix.

Regardless...

This seems pretty much Darwin grafted with FreeBSD.

For a commercial network appliance device it's probably a good approach. They get all the benefits from using source code from Apple, FreeBSD, and ZFS without having to actually provide much source code in the way of real improvements that could be used to enhance a competitor's product.

Re:NeXTBSD aka FreeBSD X by Maarten88 on Wednesday August 26, 2015 @07:41PM (#10126654)
> Microsoft actually did release a version of NT that was a true microkernel,

You mean Windows NT 3.1 and 3.5, right? I used those intensively, and it worked really well.

> but they quickly realized that it is not a practical approach..

With Windows NT 4.0 they left the original design and moved everything including the graphics into the kernel. But that was not because the original approach was not practical or did not work. It was because Windows 95. The wanted Win32 to be API compatible with that crap (desktop 'gadgets' and such) and that's why they did it. I remember hating NT 4.0 because it was so much less stable than the original versions.

Re:NeXTBSD aka FreeBSD X by gpvos on Thursday August 27, 2015 @03:28AM (#10128040)
At least for the graphics, performance was an important factor.

API compatibility can be reached through other means than moving stuff into the kernel.