Slashdot Mirror


FreeBSD 7.0 Bests Linux In SMP Performance

cecom writes "After major improvements in SMP support in FreeBSD 7.0, benchmarks show it performing 15% better than the latest Linux kernels (PDF, see slides 17 to 19) on 8 CPUs under PostgreSQL and MySQL. While a couple of benchmarks are not conclusive evidence, it can be assumed that FreeBSD will once again be a serious performance contender. Some posters on LWN have noted that the level of Linux performance could be related to the Completely Fair Scheduler, which was merged into the 2.6.23 Linux kernel." Update: 03/06 21:32 GMT by KD : An anonymous reader sent in word that Linux kernel developer Nick Piggin reran the benchmark today and came to a different conclusion: In his benchmark Linux was faster than FreeBSD.

10 of 288 comments (clear)

  1. Well by morgan_greywolf · · Score: 5, Interesting

    I'd be interested to see results from pre-CFS kernels.

    Not that FreeBSD hasn't made major performance improvements.

    Also, I think that a database test isn't a complete picture. For example, some OSes like IRIX or Mac OS X perform very well on streaming of local video and audio, but I wouldn't benchmark Oracle or PostgreSQL on either.

    1. Re:Well by Zpin · · Score: 5, Informative
      The linked PDF contains pre-CFS kernel benchmarks. Conclusion:

      The new CFS scheduler in 2.6.23 is "Completely Fair" ...to FreeBSD
    2. Re:Well by calebt3 · · Score: 5, Funny

      Most servers spend their time spinning their wheels anyway And then along comes a /. article...
  2. Re:You don't have to be Kreskin by morgan_greywolf · · Score: 5, Funny

    Nothing against Linux, but it's hardly an apples to apples comparison. Exactly. I mean, who cares about performance on a dying OS? ;)
  3. I look forward by Clover_Kicker · · Score: 5, Funny

    to the enlightening and respectful conversation this article will provoke.

  4. Re:finally by UbuntuLinux · · Score: 5, Funny

    Hello. I don't believe you know me, but you might be able to help. I use Ubuntu Linux, and I am helping the daughter of a friend to install Linux onto her PC this evening. I have never really spoken to a girl before, and was thinking that maybe if I made a joke, it might break the ice. You are obviously excellent at humour, and I was wondering if you could give me some tips? For instance, it is inevitable that something will go wrong during the process, and I was thinking that maybe if I said something like 'this is almost as unreliable as my beard trimmers!' then it would demonstrate that I am a funny guy. Can you offer any kind of critique of this line, or offer any other advice?

  5. Kreskin sez by eclectro · · Score: 5, Funny

    Linux is actually better than BSD because you can roast marshmallows over the schedular flamewars.

    --
    Take the cheese to sickbay, the doctor should see it as soon as possible - B'Elanna Torres, "Learning Curve"
  6. Re:BSD Desktops by Anonymous Coward · · Score: 5, Insightful

    FreeBSD is not fragmented like the 100 and 1 Linux distros

    I'm a FreeBSD fan, but what kind of logic is that? You pick one example out of a fragmented set, and compare it to an entire other set of operating systems.

    You act as if NetBSD, OpenBSD, DragonflyBSD, Darwin, etc, do not exist. Of course and item cannot be fragmented if if you define it's containing set as "itself". Makes about as much sense as:

    Ubuntu is not fragmented like the 100 and 1 BSD distros
  7. Some clarifications on my benchmarks by kkenn · · Score: 5, Informative

    Hi, I am the one who performed these benchmarks and I'd like to clarify a couple of things:

    * The point of this benchmark is not to unilaterally declare victory over Linux, but to point out that FreeBSD is once again competitive with it on modern high-end hardware and certain workloads. Of course, we are working on other workloads too, and currently perform better than Linux on other benchmarks, and still worse on others. There will no doubt be further friendly competition between the two OSes that will work to the benefit of both. Our message to the Linux developers is that they should not expect to get away with resting on their laurels :-)

    * I benchmarked both mysql and postgresql, and FreeBSD 7.0 performs better than all Linux kernels (at least up to 2.6.23) with both databases. Incidentally postgresql is much faster than mysql, contradicting common wisdom. Other fun facts are that mysql 5.0.51 has poorer scaling than 5.0.47, and 5.1.x has *much* worse performance and scaling than 5.0.47 on my tests.

    * I benchmarked several versions of Linux including 2.6.20.x, 2.6.22 and 2.6.23. 2.6.20.x has terrible performance http://people.freebsd.org/~kris/scaling/scaling.png. This graph is from Feb 2007 and the FreeBSD performance also improved after this point.

    * 2.6.22 (which is pre-CFS) mostly fixed this but still performs worse than FreeBSD http://people.freebsd.org/~kris/scaling/os-mysql.png. 2.6.23 included the new scheduler and was a major performance regression. I did not yet retest with 2.6.24, so maybe they have fixed CFS by now.

    * Contrary to some commenter's assertions that this is not a CPU benchmark, this benchmark is *extremely* sensitive to CPU performance and especially scheduling (in fact, as noted in the PDF, I/O performance is not a factor here). The scheduler really matters here, which is why Linux took a big hit when they switched to CFS (similarly, on FreeBSD the 4BSD scheduler performs much worse). Tuning the scheduler is critical to performance on this kind of workload. The other critical aspect is having a highly optimized kernel without concurrency bottlenecks. 2.6.20 fell over on kernel concurrency, and 2.6.23 fell over with the scheduler.

    Hope this helps to clarify things.

  8. Re:You don't have to be Kreskin by nxsty · · Score: 5, Funny

    Why on earth do you think FreeBSD is a dying OS? '
    Because netcraft confirms it.