Slashdot Mirror


Byte: FreeBSD vs Linux Revisited

Beerwolff writes: "This time I have remembered the link to the Byte article that's a follow-up to two of Moshe Bar's previous articles comparing FreeBSD and Linux--This time with the new Linux VM. His Apache "results show that Linux is better at handling I/O cache than FreeBSD, and that FreeBSD is more efficient at building up and tearing down processes."" As usual, please take benchmarks with a grain of salt, caveat emptor, look before you leap, and so forth.

14 of 401 comments (clear)

  1. Especially Salted by Satai · · Score: 5, Interesting

    "As usual, please take benchmarks with a grain of salt, caveat emptor, look before you leap, and so forth."

    In particular, be sure to read the very bottom of the article:

    Before you fire up your e-mail program to contest the results or suggest some neat trick to get even more out of either the Linux benchmark server or the FreeBSD server, remember what I said at the beginning of this review: This was not a scientific benchmark in a professional benchmarking lab. All results are only valid within my own environment and you are certainly bound to see a different result on your machines. The benchmark was only about finding out how well Linux handles stress loads compared to FreeBSD, and I do not claim that one OS is better than the other one.

    These aren't scientific. These are the results one person sees - and also note that the various problems presented to the servers give different results. FreeBSD and Linux both had strengths and weaknesses even in his tests.

  2. I suppose you could say by GISboy · · Score: 2, Interesting

    the daemon's in the details, too.

    (shurg) Very nice and interesting article anyone else care to verify or dispute the findings?

    And a serious question; does linux and bsd scale well across various architectures?

    I suppose if people get riled up about any comparison maybe there should be a catagory such as "from the benchmark or skidmark dept."

    Heh.

    --
    If it is not on fire, it is a software problem.
  3. Almost the same by Euphonious+Coward · · Score: 2, Interesting
    To me the most interesting result was that both systems came out just about equal. I doubt there is much room left to squeeze out more performance, so competition will have to be based on other factors.

    This is good.

  4. Installers by Arctic+Fox · · Score: 2, Interesting

    Not to flame or troll.... but......
    How come Debian has such a PITA installer? Mandrake was nice, however, OpenBSD and FreeBSD have mega-top notch installers. Easy to use, easy to configure, just say "go".
    I've tried Debian three or four times before giving up... 2 years ago... about a year ago and last week...
    Downloading the ISO for FreeBSD 4.4 was the hardest thing I did with that. (Still can't quite get my Linksys WPC11 card to talk to my AP but that's a different issue).

    1. Re:Installers by ca1v1n · · Score: 3, Interesting

      Every installer I've ever used has sucked in some way, shape, or form. I'm a very experienced computer user, so much so that I do tech support at my university, but I keep running into problems. I think I just got my first real working linux install up and running this afternoon. Here is my analysis, from the point of view of a very technically competent computer user who just doesn't happen to have had that much experience with linux.

      Windows: Usually works very well. When it doesn't, you're screwed.

      Red Hat: I installed 5.1 a few years ago on a partition-rich windows machine. I got X working, but I don't think I had a window manager installed, or if so, I was not informed of this. Regardless, it was useless. I managed to mount my windows partitions. This was very useful, because it enabled me to copy my bashrc to a windows partition, so I could boot into windows and create an alias setting ls to equal ls --color. If you're wondering why I did such a strange thing, I ask you how you would do with vi if you had no experience and nobody looking over your shoulder. I had to use Norton AntiVirus to remove lilo because it broke the CD player under windows. I'd launch into it from windows, read some man pages, try to get X to work, and give up. Then I got a girlfriend, and uncooperative OSs lost importance. I even had Windows 95 mostly stable.

      I tried 7.0 several months ago, and had great difficulty because I was limited to 2 635 MB hard drives (what was laying around). I had gnome-games. Yay. I tried Debian on the same machine, but as my internet connection was a PPPoE DSL, I could never get a connection for apt-get. I'm told it can be done, but I was never told HOW it can be done. I checked the HOWTOs and couldn't find anything.

      Debian: A friend helped me install it a few weeks ago, and I didn't get around to hooking it up until a week ago, because I was bogged down with work requiring windows software, and didn't yet have a hub. Last week I hooked it up. I liked it a lot. I wanted an IM/ICQ client. I tried building GAIM from source. It had a GTK+ dependency. I got GTK+, which needed GLIB. I got GLIB, but since they hadn't updated their changelog from 1.2.7 to 1.2.9 I got the wrong version, so GTK+ wouldn't build. I tried getting the right one. The multiple versions made my system very happy. My friend suggested I just apt-get it. I had already tried this, and he explained that I needed to get it from the unstable tree. I modified my sources.list to get unstable. I ran apt-get install gaim. This broke X. I tried changing back to stable and reverting, but couldn't get it to work. I removed X. For some reason, dpkg took the liberty of REMOVING GCC and associated development tools in the process. My machine was now completely fucked. I ran the installer again. I forgot to configure my ethernet card, so I needed to run it again. This required changing my boot order to boot from CD-ROM. I couldn't do this, because something in the installer had apparently mangled my BIOS so it wouldn't read keystrokes until the OS started booting. I did a jumper reset of the BIOS and it installed just fine. There was just one hitch though. While configuring the X server, I couldn't get the mouse to work. I tried various protocols, various device names, but nothing would work. The answer was right in front of my face: the refresh rate was defaulted to 0. WHAT KIND OF IDIOT DEFAULTS A MOUSE REFRESH RATE TO 0? It took a few hours of staring at this to realize something I hadn't really noticed because I considered it's misadjustment to be outside the realm of rational action, as I still do.

      If FreeBSD is as easy as I'm hearing, I may try that out the next time Debian self-destructs.

      Windows and Linux both suck. The difference is that Linux sucks twice as fast and 10 times more reliably, and since you have the source, it's your fault.

  5. Re:The right tool for the right job. by thetechweenie · · Score: 2, Interesting

    I was talking out of personal experience. FreeBSD has always seemed to run much more stable for a server. Also I love the security on FreeBSD. Not to mention the ease of installing new apps from the ports directory. That's just freakin genius. I have alot of friends that run FreeBSD for their desktops, I'm just still a fan of linux there. I guess it's backwards from what normal people feel, but the server environments that I've built just have me feeling this way... Maybe it's just all the code red and old pizza I just downed...

    --


    Um, this is my sig.
  6. Holy bat guano by stox · · Score: 5, Interesting

    MAXUSERS was set to 20!!

    Jeez, I won't even set it that low for my personal machine. For the purposes of this kind of benchmark, I would have at least started with 128. If you want to be fair in I/O benchmarks, have BOTH machines mount the filesystems asynch. If you're going to do a comparison, at least compare apples to apples. Softupdates rocks, but I still think async is going to be faster.

    --
    "To those who are overly cautious, everything is impossible. "
  7. gigabit networking? by _|()|\| · · Score: 3, Interesting
    The switch I used for this test was the 10/100/1000 24-Port Managed Gigaswitch. The Gigabit functions require external modules that are very easy to install.

    The NICs were a mix of Alteon and Intel Gigabit for the clients.

    If he's using the Gigaswitch I think he's using, it takes two Gigabit Fiber Modules that each provide two 1000BaseSX ports. He's ignoring the twenty-four 10/100 ports and running a network on the backbone, as it were.

    Not that it matters to a magazine columnist who has a Proliant to play with, but this is a little more expensive than 1000BaseTX, isn't it?

  8. Re:The best thing... by MonMotha · · Score: 2, Interesting

    I really think this is the kind of way that OSS could win out in the end over closed proprietary software. When one OSS group does somethign innovative, new, etc, the other guys will either try to "one-up them" (disregard the reasons here) or say to them "hey, that's a great idea, mind if we implement it here?" Basically OSS development just keeps going with thousands of programmers each contributing what they know. Isn't this a major point of OSS anyway? Not to flat out "beat the commercial competition" but rather to develop the best software possible with the help of others? We have multiple OpenSource operating systems, and we have healthy competition in them (something the commercial market is currently lacking). As long as one side keeps innovating (must...refrain...), development will make leaps and bounds as the competition tries to improve upon the other to "better their market share".

    --MonMotha

  9. Which is better for colo machines? by drsoran · · Score: 2, Interesting

    OK, the more important question these days is which OS (or even distribution) is better for colocated machines? I'm looking at it from the perspective that my machine would be many hundreds of miles away and I don't intend to go drive to sit at the console to do an upgrade. What would be my choices? I believe FreeBSD supposedly is strongly suited to that type of environment but it looks like Debian GNU/Linux also has strong points there as well.

  10. My opinion... take it or leave it. by Fucky+Badger · · Score: 3, Interesting

    Any response to a question like this is bound to upset someone. I'll
    answer with the caveat that this is my opinion that developed over the
    past three years following them both as well as other commercial OSs.
    Those of you offended in any way by this, please cat flames > /dev/null.

    That said -- the differences between FreeBSD and Linux can best be
    understood in the context of American politics. There are essentially two
    philosophies: Republican (FreeBSD) and Democrat (Linux).

    The FreeBSD organization is a republican structure -- we have our say as
    users, but the final decisions devolve to the core team who take the final
    responsibility for their decisions. FreeBSD takes a conservative approach.
    In other words, better things should work correctly at the expense of a
    minorities desires, than to please all of the people all of the time and
    have unexpected components of the OS breaking on a regular basis. We are
    free to vote our approval or disapproval by changing our OS.

    Linux is a democratic group. There is no single authority to accept final
    responsibility except for Linus as it relates to the kernel. Linux adopted
    early on a consensus approach (POSIX, etc.). In a sense, Linux is much
    like current Democratic politics -- the mob pretty much rules. The end
    result is that there is really no such thing as Linux -- there are
    distributions that use the Linux kernel and from then on you have
    essentially different operating systems. Slackware, for example, doesn't
    look at all like Red Hat. Describing Linux is much like describing Mach.
    (There isn't much - both are just micro kernels. _Anything_ can be
    implemented over them.)

    So as I see it, it comes down to this: vote for the philosophy that
    appeals to you. I use FreeBSD because I rely on my machine for many other
    uses besides tinkering with operating systems. FreeBSD doesn't change the
    world on me every 6 months. Linux is in constant change. New things are
    showing up all the time. If you like tinkering with operating systems and
    having things that used to work break, Linux may be your answer. If you
    don't know Unix -- pick one and get started. You'll learn how to pick the
    best choice. No matter which one you pick, it will be infinitely better
    that Micros**t anything.

  11. Re:debian is slower than FreeBSD by quarterbooty · · Score: 1, Interesting

    not necessarily. if you read all the threads on that article, you see that the poster didn't go to too much effort before making that declaration. he couldn't saturate a 10MB/s locally, so he obviusly has some things configured wrong. instead of trying to tweak some settings, he blamed it on linux. freebsd out of the box must work great for his setup while debian didn't. i have debian on two boxes here and see nothing of the like; my transfer rates are fine.

  12. Re:Workstation use? by Baki · · Score: 5, Interesting

    I run both (slack-8/2.4.14 and FBSD 4.4) on my workstation. I find FreeBSD way easier to manage and generally have better performance, more pleasant to administer.

    Support of "important" hardware is about the same.
    My USB printer and scanner function well in both, for example.

    Support of more exotic hardware still is more problematic in FreeBSD: No 3D graphics on nvidia because nvidia's driver has not been ported to FBSD yet. My DVB-S (satellite card) is not supported in FBSD, in Linux I can use it to watch and digitally record programs. DV-video through Firewire doesn't work in FBSD. I don't know whether Linux does any better (I think so) because I switch to Windows to capture and process video.

    For software (except 3D games as mentioned) FreeBSD has somewhat less native software, but almost everything (even including VMWare for Linux) runs extremely well under the Linux emulator, often even surpassing the speed when run natively under Linux (this is possible since technically it is not really emulation, but all Linux system calls have been added via a loadable kernel module).

  13. FreeBSD and 3d games by mvw · · Score: 4, Interesting
    As far as whether games are supported as well, maybe you should check out www.lokigames.com and ask them. I would venture to say they wouldn't work, but I'm not sure of that, so I will just say I don't know.

    The FreeBSD kernel is able to run Linux binaries, once you have installed the Linux emulation port (it adds a kernel module that is able to work with Linux ABI binaries plus stores a couple of system libs compiled for Linux - so it is rather a different operation mode than an emulation).

    Quake3 Arena for example works under FreeBSD just fine.

    Where there is a problem is the support of acclerated graphics drivers. Where such a driver is open source, it has been ported to FreeBSD (Matrox drivers, the rather slow nvidia driver for XFree86 3.3.x series, ..). Where there is only a binary driver, and most unfortunately, this is the case for the fast nvidia drivers, this has yielded no results yet.

    The problem is that while the nvidia binary driver might work in theory on all x86 plattforms, with just a different kernel interfacing (for which the source exists), in reality it does only run with certain Linux kernels. Here is a report that goes into details.

    Regards,
    Marc