OS X Snow Leopard to use FreeBSD ULE Scheduler?

MAC OSX snow leopard desktop When Steve Jobs, Apple’s CEO, first unveiled the next version of OS X, 10.6 Snow Leopard, there have been a lot of rumours on the internet and blogosphere about the proposed evolutionary nature of 10.6 over 10.5. What did Steve exactly mean? Snow Leopard will take a break from adding new features but will be streamlined and its core improved for enhanced performance instead.

“Grand Central,” a new set of technologies built into Snow Leopard, brings unrivaled support for multicore systems to Mac OS X. More cores, not faster clock speeds, drive performance increases in today’s processors. Grand Central takes full advantage by making all of Mac OS X multicore aware and optimizing it for allocating tasks across multiple cores and processors. Grand Central also makes it much easier for developers to create programs that squeeze every last drop of power from multicore systems. (source: apple.com)

It’s well known that Apple’s OS X has strong FreeBSD roots and still borrows from ongoing FreeBSD developments.

The history of OS X and the XNU Kernel, the features promised in Snow Leopard, and the design and architecture of the ULE scheduler all point to a high likelihood of Apple using a redesigned thread scheduler that is either an implementation of the ULE scheduler or at least based around it in OS X 10.6.

On Neosmart.net we read:

The FreeBSD project has long been working on alternative scheduler intended to replace the default and aging 4BSD scheduler: the ULE scheduler. ULE is now scheduled to become the default scheduler in the upcoming FreeBSD 7.1 release. ULE has shown significant improvements in multi-core environments, and was designed from the ground up to provide increased SMP scalability. Most importantly is ULE’s overhauled support for per-processor queuing of tasks and the ability to set CPU affinity per-processor-per-thread.

If Apple were to implement a form of the ULE scheduler in OS X 10.6, Snow Leopard would be a formidable OS indeed. Using ULE guarantees huge performance benefits for multi-threaded applications, and would help address the second point listed above: the SMT affinity options provided in ULE would make creating an SDK intended to allow developers to use multiple cores efficiently and evenly quite easy. OS X has always been close to the FreeBSD project, and something like this is a natural fit for an OS looking for improvements to SMP/SMT performance.

What do you think? Is it likely Apple will adapt the ULE scheduler or is this complete nonsense?

Link: ULE Scheduler (scribd.com)

Firefox 3 for FreeBSD

firefox logoMozilla Firefox 3 is now available for FreeBSD.

Firefox is an award winning, free, open-source web browser for many platforms and is based on the Mozilla codebase. It is small, fast and easy to use, and offers many advanced features:

  • Popup Blocking
  • Tabbed Browsing
  • Live Bookmarks (ie. RSS)
  • Extensions
  • Theme
  • FastFind
  • Improved Security

To install Firefox3 from the commandline in FreeBSD, PC-BSD or DesktopBSD enter:

portsnap fetch extract (if this is the first time you're using portsnap)
portsnap fetch update
cd /usr/ports/www/firefox3 && make install clean

Blogs for “the other BSDs”: NetBSD, OpenBSD and DragonFlyBSD

This blog, FreeBSD – the unknown Giant, as the title suggests, covers only FreeBSD related stories and updates. However, over the last few months, I have received emails from my some readers asking why I don’t write about the “other BSDs”, such as OpenBSD, NetBSD and DragonflyBSD.

Well, the answer is quite simple: “There’s no need to!” No, not because they’re not worth writing about, they certainly are, but because there are already some quality blogs dedicated to each of these BSD operating systems.  Hence my reason for not, or only occasionally, writing about then. Since these blogs are regularly updated with news, howtos and information on made progress, I’ve decided not to just copy, paste and republish what’s on those blogs.

To find out more about OpenBSD, visit the OpenBSD Journal. The DragonflyBSD digest is updated regularly with news relating to DragonflyBSD, and lately a lot on the progress of the newly created and much promising Hammer File System (HammerFS), whilst Hubert’s NetBSD blog brings the latest and greatest with regards to NetBSD.

Of course there are more many blogs and websites tracking the “big four”, but these are the best as far as I’m aware.

FreeBSD events and conferences calendar

There are several conferences and expo’s where FreeBSD is promoted (and this seems to be increasing by the year). To keep track of when and where these are, I have set up a public calendar listing all FreeBSD related events, such as conferences, meetings, hackatons etc. This calendar is on Google Calendar (GCal) and is accessible to everybody.

  • Name: FreeBSD events and conferences calendar
  • Description: FreeBSD related conferences, trade shows, meetings and events that are of interest for users of FreeBSD and FreeBSD-based operating systems

If you already use Google Calandar, you can easily add the FreeBSD events calendar to yours (to find it, do a search for “FreeBSD”). Alternatively, those not using GCal, can view the calendar here.

Are you aware of any events where FreeBSD or any FreeBSD based operating systems are promoted that aren’t listed yet? Please let me know.

There are already two similar calendars but they aren’t maintained any longer. Hence my decision to start AND maintain another one.

Links: Google Calendar | FreeBSD GCal

Book: Network Administration with FreeBSD

Network Administration with FreeBSDA new book has been added to the “FreeBSD library”: “Network Administration with FreeBSD” by Babak Farrokhi.

This 280 page book is about the building, securing, and maintaining of networks with the FreeBSD operating system, and deals with the following topics

  1. Set up and manage networking on FreeBSD
  2. Virtualization with FreeBSD Jails, IPFW and PF
  3. Configure interfaces, protocols, and routing

Network Administrators looking for skills beyond installation and configuration of FreeBSD may find this book useful.

The following description has been taken from the Amazon page:

This book is a guide to FreeBSD for network administrators; therefore it does not cover basic installation and configuration of FreeBSD, but is about using FreeBSD to build, secure, and maintain networks. After introducing the basic tools for monitoring the performance and security of the system the book moves on to cover using jails-FreeBSD virtual environments-to secure your network.

Then it shows how to overcome the different bottlenecks that you may meet depending on the services you are running by tweaking different parameters to maintain a high performance from your FreeBSD server.

Next it covers using the ifconfig utility to configure interfaces with different layer protocols and about connectivity testing and debugging tools.

After covering using User PPP or Kernel PPP for Point-to-Point Protocol network configuration it explains basic IP forwarding in FreeBSD and the use of the built-in routing daemons, routed and route6d, which support RIPv1, RIPv2, RIPng, and RDISC.

Next it covers the OpenOSPFD and OpenBGPD daemons that you can install to run OSPF and BGP on your host.Then it covers setup and configuration of IPFW and PF, and finally looks at some important internet services and how to set them up on your FreeBSD server

A short review by Murray Stokely can be found here.

For more information and the best deals, visit:

Amazon.com | Amazon.co.uk | Amazon.ca | Amazon.de | Amazon.fr

Two FreeBSD howtos (kernel module & gmirror)

Writing a kernel module for FreeBSD

FreeBSD 7.0 has already been released. If you are a real hacker, the best way to jump in and learn it is hacking together an introductory kernel module. In this article I’ll implement a very basic module that prints a message when it is loaded, and another when it is unloaded. I’ll also cover the mechanics of compiling our module using standard tools and rebuilding the stock FreeBSD kernel. Let’s do it!

source: Free Software Magazine (19/06/2008)

Adding gmirror to an existing installation

This article describes how a RAID-1 cluster was created on FreeBSD 7.0-STABLE box using gmirror.

Source: FreeBSD Diary (24/09/2008)