Slashdot Mirror


New Scheduler Available for FreeBSD

flynn_nrg writes "Luigi Rizzo, one of the FreeBSD developers, has just finished the code for a new scheduler. From the announcement: '...as promised, a first version of the Proportional Share scheduler that we developed is available here. These are for a recent -STABLE (i think any version from 4.4 should work; the only 3 files modified are kern_synch.c, kern_switch.c and proc.h, plus a one-line change to kern_exit.c). I have tested it a little bit on a diskless system, and it seems to survive running a full X session with the usual set of xterm, netscape etc. while i do a "renice" of the processes and even switch back and forth between schedulers. But do not trust this yet for a production system!' Read the full post here."

232 comments

  1. Where's my scheduler? by Anonymous Coward · · Score: 0, Funny

    I need to schedule some time to install and play with this new scheduler.

  2. Cool by Quantum+Singularity · · Score: 0, Redundant

    This is neat, I need to get a copy.

  3. FIFO locks by Anonymous Coward · · Score: 0

    It's a good thing that multiplexing FIFO locks were added to discombobulate the BSD thrust manifolds.
    It's amazing that it held up this long!

    1. Re:FIFO locks by Kwikymart · · Score: 1, Funny

      No, that would decouple the heizenburg compensators and send the flux capacitor into yeager-loop.

      --

      Buying a Dell computer is equivalent to dropping the soap in a prison shower.
    2. Re:FIFO locks by Anonymous Coward · · Score: 0

      Good point.
      With your input I've changed the BSD scheduler patch to the following:

      - int bad_scheduling = 1;
      + int bad_scheduling = 0;

    3. Re:FIFO locks by Buck2 · · Score: 1

      Thank god for open source. Could you imagine trying to figure that out in hex?

      I mean, wouldn't it be funny if companies did stuff like that, like they sold software that might be "server" software or "client" software depending on one bit. Like NT?

      That'd be funny.

      --

      As my father lik@(munch munch)... ....
    4. Re:FIFO locks by Anonymous Coward · · Score: 0


      That's Heisenberg, you ignorant! When are you computer buffs going to learn about something other than your toys? Sheesh!

    5. Re:FIFO locks by Anonymous Coward · · Score: 0

      Yah, sorry I'm not omniscient like you. Knowing everything must be hard huh?

      Ignorance is only relative. I hate to say it, but by the standards you set out you are just as ignorant as I am. Maybe you should lose the elitist attitude and stop being such an uptight prick.

  4. cannot wait by Anonymous Coward · · Score: 0

    This is what Freebsd needs, wonder what it will look like when its ported to Darwin?

  5. I dont mean to be a critic.... by Anonymous Coward · · Score: 0

    I have been using FreeBSD (as well as NetBSD) for a little while (about 2 years) and I have to say that anyone who would care about this would have seen it three days ago on kerneltrap.org or daily.daemonnews.org.

    1. Re:I dont mean to be a critic.... by Anonymous Coward · · Score: 0
      It is official. Netcraft confirms: *BSD is dying

      One more crippling bombshell has hit the already beleaguered *BSD community when IDC confirmed that *BSD market share has dropped yet again, now down to less than a fraction of 1 percent of all servers. Coming on the heels of a recent Netcraft survey which plainly states that *BSD has lost more market share, this news serves to reinforce what we've known all along. *BSD is collapsing in complete disarray, as fittingly exemplified by failing dead last in the recent Sys Admin comprehensive networking test.

      You don't need to be a Kreskin to predict *BSD's future. The hand writing is on the wall: *BSD faces a bleak future. In fact there won't be any future at all for *BSD because *BSD is dying. Things are looking very bad for *BSD. As many of us are already aware, *BSD continues to lose market share. Red ink flows like a veritable river of blood.

      FreeBSD is the most endangered of them all, having lost 93% of its core developers. The sudden and unpleasant departures of long time FreeBSD developers Jordan Hubbard and Mike Smith only serve to underscore the point more clearly. There can no longer be any doubt: FreeBSD is dying.

      Let's keep to the facts and look at the numbers.

      OpenBSD leader Theo states that there are 7000 users of OpenBSD. How many users of NetBSD are there? Let's see. The number of OpenBSD versus NetBSD posts on Usenet is roughly in ratio of 5 to 1. Therefore there are about 7000/5 = 1400 NetBSD users. BSD/OS posts on Usenet are about half of the volume of NetBSD posts. Therefore there are about 700 users of BSD/OS. A recent article put FreeBSD at about 80 percent of the *BSD market. Therefore there are (7000+1400+700)*4 = 36400 FreeBSD users. This is consistent with the number of FreeBSD Usenet posts.

      Due to the troubles of Walnut Creek, abysmal sales and so on, FreeBSD went out of business and was taken over by BSDI who sell another troubled OS. Now BSDI is also dead, its corpse turned over to yet another charnel house.

      All major surveys show that *BSD has steadily declined in market share. *BSD is very sick and its long term survival prospects are very dim. If *BSD is to survive at all it will be among OS dilettante dabblers. *BSD continues to decay. Nothing short of a miracle could save it at this point in time. For all practical purposes, *BSD is dead.

      Fact: *BSD is dying

  6. This is excellent news by Anonymous Coward · · Score: 0, Funny

    With this new scheduler, *BSD should be able to calculate exactly when *BSD will finally be DEAD.

    1. Re:This is excellent news by Anonymous Coward · · Score: 0

      Wrong type of scheduler retard.

    2. Re:This is excellent news by Anonymous Coward · · Score: 0

      Wrong type of humor retard.

    3. Re:This is excellent news by Anonymous Coward · · Score: 0

      Please don't feed (or MOD up) the trolls...

    4. Re:This is excellent news by Anonymous Coward · · Score: 0

      Sorry, but while FreeBSD is great, it's not good enough to work with numbers THAT high!

    5. Re:This is excellent news by Anonymous Coward · · Score: 0

      How the hell did you get a mod of 5? Your comment was neither funny nor relevent. This is what happens when you give people power, they abuse it.

    6. Re:This is excellent news by Anonymous Coward · · Score: 0
      Oh I see, you are the boy who got his sense of humour surgically removed at young age. You wouldn't recognize a funny joke even if it slapped you in the face.

      Yes, really, that was quite funny, the post you were referring to.

    7. Re:This is excellent news by Dirtside · · Score: 2

      ...or at least, schedule the funeral ;)

      --
      "Destroy science and religion. Science would re-emerge exactly the same; but not religion." - Penn Jillette, paraphrased
    8. Re:This is excellent news by Anonymous Coward · · Score: 0
      We all now that *BSD is dying, but why? Why did *BSD fail? Once you get past the fact that *BSD is fragmented between a myriad of incompatible kernels, there is the historical record of failure and of failed operating systems. *BSD experienced moderate success about 15 years ago in academic circles. Since then it has been in steady decline. We all know *BSD keeps losing market share but why? Is it the problematic personalities of many of the key players? Or is it larger than their troubled personalities?

      The record is clear on one thing: no operating system has ever come back from the grave. Efforts to resuscitate *BSD are one step away from spiritualists wishing to communicate with the dead. As the situation grows more desperate for the adherents of this doomed OS, the sorrow takes hold. An unremitting gloom hangs like a death shroud over a once hopeful *BSD community. The hope is gone; a mournful nostalgia has settled in. Now is the end time for *BSD.

    9. Re:This is excellent news by scalis · · Score: 1

      Yeah! Power to the machines!! ./

      --

      True ravers don't need drugs
  7. BSD IS ALIVE!!!! by Anonymous Coward · · Score: 0
    BSD is alive !! It is ALIVE I tell you!! Netcraft said they made a mistake !!

    Rejoice!!1

  8. FreeBSD = Security by xchino · · Score: 0

    FreeBSD is great for security! Glad to hear there's an updated version, but if I see any exploits for it soon I;m gonna be upset.

    --
    Everyone is entitled to their own opinion. It's just that yours is stupid.
    1. Re:FreeBSD = Security by Anonymous Coward · · Score: 0

      What, an updated release of FreeBSD? There are about three or so releases every year! Not to mention 5.0-RELEASE is coming up November 11 (or somewhere around then)

    2. Re:FreeBSD = Security by prog-guru · · Score: 1
      I don't know about that, considering in the last month we had 2 big exploits (openssh, and libc resolve bug). The advice for the libc bug was to cvsup the whole system, cause lots of stuff depended on that.

      Yes I know the openssh bug affected everyone, but only *BSD has it installed and running by default.

      --

      chris@xanadu:~$ whatis /.
      /.: nothing appropriate.

    3. Re:FreeBSD = Security by Anonymous Coward · · Score: 1, Informative

      Enabled by default? I don't think so!

      matt@xena$ uname -sr
      FreeBSD 4.6-RELEASE
      matt@xena$ grep sshd_enable /etc/defaults/rc.conf
      sshd_enable="NO" # Enable sshd
      matt@xena$

    4. Re:FreeBSD = Security by Ashcrow · · Score: 1

      In all honesty FreeBSD as exploitable as any Linux distrobution. Sure, it does not use glibc but it does make a regualr appearance on bugtraq and vuln-dev.

      And here is some revised code (joke):
      if (FreeBSD == "Security") { pray.fortheworld(); }

    5. Re:FreeBSD = Security by Anonymous Coward · · Score: 0

      it was installed and running by defualt on my slack 8.1 box too, but it wasn't vulerable because it wasn't configured to use challenge response enabled.

    6. Re:FreeBSD = Security by Anonymous Coward · · Score: 0

      FreeBSD has wonderful external security. It has only been plagued by bugs that are both Linux/*BSD related; as in zlib and ssh; also /proc which is also a Linux-ish feature..

    7. Re:FreeBSD = Security by Peyna · · Score: 2

      Just about every *nix distro I've seen now has SSH up and running by default.

      --
      What?
    8. Re:FreeBSD = Security by Anomymous+Coward · · Score: 1, Informative


      I don't know about that, considering in the last month we had 2 big exploits (openssh, and libc resolve bug). The advice for the libc bug was to cvsup the whole system, cause lots of stuff depended on that.


      The openssh bug had a one line workaround.

      The libc resolver bug has not been successfully exploited yet (so it's not really an exploit). It SEEMS POSSIBLE to exploit it, yes, but it's not trivial (it involves messing up dns replies, so you'd have to have control over an ip block, force the resolver to try to resolve an ip in that block, send the bad response, and then hope it worked). If you know anything about the bsd source code, you know that you can cd /usr/src/lib/libc && make all install. True, it doesn't help statically compiled binaries, but how much do you have on y our system that's statically linked AND answers on remote IPs? certainly not bind, apache, sendmail, or qpopper... or any of the other standard services.

    9. Re:FreeBSD = Security by quantum+bit · · Score: 4, Informative

      None of the FreeBSD releases, or the -STABLE branch were vulnerable to the openssh bug.

      ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/advisories/ FreeBSD-SA-02:31.openssh.asc

      Note the absence of any released version of FreeBSD.

    10. Re:FreeBSD = Security by prog-guru · · Score: 1
      you know that you can cd /usr/src/lib/libc && make all install

      Right, that's what I did on some of the systems. You do have to restart the programs loading libc too.

      --

      chris@xanadu:~$ whatis /.
      /.: nothing appropriate.

    11. Re:FreeBSD = Security by BrookHarty · · Score: 2

      I think you need to re-read that file. +3 indeed.

      Affects: FreeBSD-CURRENT between 2002-03-18 and 2002-06-25

    12. Re:FreeBSD = Security by bovinewasteproduct · · Score: 2

      None of the FreeBSD releases, or the -STABLE branch were vulnerable to the openssh bug.

      ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/advisorie s/ FreeBSD-SA-02:31.openssh.asc

      Note the absence of any released version of FreeBSD.


      I think you need to re-read that file. +3 indeed.

      Affects: FreeBSD-CURRENT between 2002-03-18 and 2002-06-25


      No, you try re-reading it again. FreeBSD releases (which are based on FreeBSD-Stable) are NOT anywhere near being FreeBSD-Current!

      FreeBSD-Current is not a release version. As a matter of fact, people are told NOT to use it unless they know what they are doing, and not just becuase they want one of the new features (which are nice, I've got a FreeBSD-Current SMP box here).

      BWP

    13. Re:FreeBSD = Security by Anonymous Coward · · Score: 0

      And rebuild statically linked binaries, otherwise everything in /sbin is potentially exploitable.

    14. Re:FreeBSD = Security by BrookHarty · · Score: 2

      None of the FreeBSD releases, or the -STABLE branch were vulnerable to the openssh bug.

      -Current isnt a release? I can download it, Seems like a release to me, maybe a beta release, but it IS a release if its been put out. But whatever you call it some version of FreeBSD DID have the bug.

      Really get a kick out of you BSD guys trying to use the -Current and -Stable shit to try to say you dont have security holes. So you dont have this 1 bug on your -Stable, Lets check cert and see how many have been on -Stable. Same shit goes with OpenBSD, and "Never A Security bug" bullshit. PHP/SSH/Apache have a security hole, its "LINUX HAS A SECURITY HOLE", well FreeBSD uses the same damn software.
      -
      Try your Jedi mind tricks on a mircos~1 padawn... Go Go away...

    15. Re:FreeBSD = Security by generalpf · · Score: 1

      -CURRENT isn't a release. It's a cvs repository. It's not even guaranteed to compile.

    16. Re:FreeBSD = Security by Arandir · · Score: 2

      Really get a kick out of you BSD guys trying to use the -Current and -Stable shit to try to say you dont have security holes.

      Go find out what -CURRENT actually is before you comment further. You are in serious danger of choking on your own foot...

      Just because -CURRENT is publicly available does not mean that it is released. An analogy is in order. -RELEASE is equivalent to linux-2.4.18. -STABLE is equivalent to linux-2.5.27. -CURRENT is equivalent to whatever is on Linus' harddrive at this very instant.

      --
      A Government Is a Body of People, Usually Notably Ungoverned
    17. Re:FreeBSD = Security by essdodson · · Score: 1

      It was all a ploy on Theo's part. I can't believe anyone with respect for the opensource community would have taken the approach he took to the latest big OpenSSH exploit. It basically went like this : Theo announces that there is some sort of problem, Theo urges everyone to upgrade to upgrade to the latest still vulnerable version, a patch is released, details are provided. I see this as an obvious attempt at bringing other platforms which were not previously vulnerable into the mess with OpenBSD.

      --
      scott
    18. Re:FreeBSD = Security by Anonymous Coward · · Score: 0

      You can't do that in C. Duh. Unless it's perl. Which it could be. Great. Now I'm confused! Argh!! (But I think if it was perl, you'd use "eq" instead of ==)

    19. Re:FreeBSD = Security by Andrew+Francis · · Score: 1
      Affects: FreeBSD-CURRENT between 2002-03-18 and 2002-06-25

      FreeBSD-CURRENT isn't a distinct release, it's a branch in the CVS tree.

      --
      (My email address is on my homepage)
    20. Re:FreeBSD = Security by Matty_ · · Score: 1

      He wasn't wrong. The FreeBSD-CURRENT branch was vulnerable, but that is the development branch and few people use it. Developers are the only ones that use it, for the most part.

      So, as he said, none of the releases or the -STABLE branch were vulnerable to the OpenSSH vulnerability from a few weeks back.

      Please read what the guy says before you start jumping on his bones.

    21. Re:FreeBSD = Security by Patrick+Cable+II · · Score: 1

      Yes. A Default install doesnt have telnet enabled either...

      no remote access == more secure than any remote access.

    22. Re:FreeBSD = Security by Anonymous Coward · · Score: 0

      It's the ever present and evil psuedo code ;-).

  9. Insider's scoop: Why FreeBSD is dying by Anonymous Coward · · Score: 0, Interesting
    The End of FreeBSD

    [ed. note: in the following text, former FreeBSD developer Mike Smith gives his reasons for abandoning FreeBSD]

    When I stood for election to the FreeBSD core team nearly two years ago, many of you will recall that it was after a long series of debates during which I maintained that too much organisation, too many rules and too much formality would be a bad thing for the project.

    Today, as I read the latest discussions on the future of the FreeBSD project, I see the same problem; a few new faces and many of the old going over the same tired arguments and suggesting variations on the same worthless schemes. Frankly I'm sick of it.

    FreeBSD used to be fun. It used to be about doing things the right way. It used to be something that you could sink your teeth into when the mundane chores of programming for a living got you down. It was something cool and exciting; a way to spend your spare time on an endeavour you loved that was at the same time wholesome and worthwhile.

    It's not anymore. It's about bylaws and committees and reports and milestones, telling others what to do and doing what you're told. It's about who can rant the longest or shout the loudest or mislead the most people into a bloc in order to legitimise doing what they think is best. Individuals notwithstanding, the project as a whole has lost track of where it's going, and has instead become obsessed with process and mechanics.

    So I'm leaving core. I don't want to feel like I should be "doing something" about a project that has lost interest in having something done for it. I don't have the energy to fight what has clearly become a losing battle; I have a life to live and a job to keep, and I won't achieve any of the goals I personally consider worthwhile if I remain obligated to care for the project.

    Discussion

    I'm sure that I've offended some people already; I'm sure that by the time I'm done here, I'll have offended more. If you feel a need to play to the crowd in your replies rather than make a sincere effort to address the problems I'm discussing here, please do us the courtesy of playing your politics openly.

    From a technical perspective, the project faces a set of challenges that significantly outstrips our ability to deliver. Some of the resources that we need to address these challenges are tied up in the fruitless metadiscussions that have raged since we made the mistake of electing officers. Others have left in disgust, or been driven out by the culture of abuse and distraction that has grown up since then. More may well remain available to recruitment, but while the project is busy infighting our chances for successful outreach are sorely diminished.

    There's no simple solution to this. For the project to move forward, one or the other of the warring philosophies must win out; either the project returns to its laid-back roots and gets on with the work, or it transforms into a super-organised engineering project and executes a brilliant plan to deliver what, ultimately, we all know we want.

    Whatever path is chosen, whatever balance is struck, the choosing and the striking are the important parts. The current indecision and endless conflict are incompatible with any sort of progress.

    Trying to dissect the above is far beyond the scope of any parting shot, no matter how distended. All I can really ask of you all is to let go of the minutiae for a moment and take a look at the big picture. What is the ultimate goal here? How can we get there with as little overhead as possible? How would you like to be treated by your fellow travellers?

    Shouts

    To the Slashdot "BSD is dying" crowd - big deal. Death is part of the cycle; take a look at your soft, pallid bodies and consider that right this very moment, parts of you are dying. See? It's not so bad.

    To the bulk of the FreeBSD committerbase and the developer community at large - keep your eyes on the real goals. It's when you get distracted by the politickers that they sideline you. The tireless work that you perform keeping the system clean and building is what provides the platform for the obsessives and the prima donnas to have their moments in the sun. In the end, we need you all; in order to go forwards we must first avoid going backwards.

    To the paranoid conspiracy theorists - yes, I work for Apple too. No, my resignation wasn't on Steve's direct orders, or in any way related to work I'm doing, may do, may not do, or indeed what was in the tea I had at lunchtime today. It's about real problems that the project faces, real problems that the project has brought upon itself. You can't escape them by inventing excuses about outside influence, the problem stems from within.

    To the politically obsessed - give it a break, if you can. No, the project isn't a lemonade stand anymore, but it's not a world-spanning corporate juggernaut either and some of the more grandiose visions going around are in need of a solid dose of reality. Keep it simple, stupid.

    To the grandstanders, the prima donnas, and anyone that thinks that they can hold the project to ransom for their own agenda - give it a break, if you can. When the current core were elected, we took a conscious stand against vigorous sanctions, and some of you have exploited that. A new core is going to have to decide whether to repeat this mistake or get tough. I hope they learn from our errors.

    Future

    I started work on FreeBSD because it was fun. If I'm going to continue, it has to be fun again. There are things I still feel obligated to do, and with any luck I'll find the time to meet those obligations.

    However I don't feel an obligation to get involved in the political mess the project is in right now. I tried, I burnt out. I don't feel that my efforts were worthwhile. So I won't be standing for election, I won't be shouting from the sidelines, and I probably won't vote in the next round of ballots.

    You could say I'm packing up my toys. I'm not going home just yet, but I'm not going to play unless you can work out how to make the project somewhere fun to be again.

    = Mike

    --

    To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public. -- Theodore Roosevelt
    1. Re:Insider's scoop: Why FreeBSD is dying by Anonymous Coward · · Score: 0
      What We Can Learn From BSD
      By Chinese Karma Whore, Version 1.0

      Everyone knows about BSD's failure and imminent demise. As we pore over the history of BSD, we'll uncover a story of fatal mistakes, poor priorities, and personal rivalry, and we'll learn what mistakes to avoid so as to save Linux from a similarly grisly fate.

      Let's not be overly morbid and give BSD credit for its early successes. In the 1970s, Ken Thompson and Bill Joy both made significant contributions to the computing world on the BSD platform. In the 80s, DARPA saw BSD as the premiere open platform, and, after initial successes with the 4.1BSD product, gave the BSD company a 2 year contract.

      These early triumphs would soon be forgotten in a series of internal conflicts that would mar BSD's progress. In 1992, AT&T filed suit against Berkeley Software, claiming that proprietary code agreements had been haphazardly violated. In the same year, BSD filed countersuit, reciprocating bad intentions and fueling internal rivalry. While AT&T and Berkeley Software lawyers battled in court, lead developers of various BSD distributions quarreled on Usenet. In 1995, Theo de Raadt, one of the founders of the NetBSD project, formed his own rival distribution, OpenBSD, as the result of a quarrel that he documents on his website. Mr. de Raadt's stubborn arrogance was later seen in his clash with Darren Reed, which resulted in the expulsion of IPF from the OpenBSD distribution.

      As personal rivalries took precedence over a quality product, BSD's codebase became worse and worse. As we all know, incompatibilities between each BSD distribution make code sharing an arduous task. Research conducted at MIT found BSD's filesystem implementation to be "very poorly performing." Even BSD's acclaimed TCP/IP stack has lagged behind, according to this study.

      Problems with BSD's codebase were compounded by fundamental flaws in the BSD design approach. As argued by Eric Raymond in his watershed essay, The Cathedral and the Bazaar, rapid, decentralized development models are inherently superior to slow, centralized ones in software development. BSD developers never heeded Mr. Raymond's lesson and insisted that centralized models lead to 'cleaner code.' Don't believe their hype - BSD's development model has significantly impaired its progress. Any achievements that BSD managed to make were nullified by the BSD license, which allows corporations and coders alike to reap profits without reciprocating the goodwill of open-source. Fortunately, Linux is not prone to this exploitation, as it is licensed under the GPL.

      The failure of BSD culminated in the resignation of Jordan Hubbard and Michael Smith from the FreeBSD core team. They both believed that FreeBSD had long lost its earlier vitality. Like a decaying empire in decline, BSD had become bureaucratic and stagnant. As Linux gains market share and as BSD sinks deeper into the mire of decay, their parting addresses will resound as fitting eulogies to BSD's demise.

  10. Why? by Dratman · · Score: 1, Insightful

    What is the purported advantage of the new scheduler?

    --
    Sigmund
    1. Re:Why? by Anonymous Coward · · Score: 0

      It's better than the old one.

      Hope this helps.

    2. Re:Why? by Anonymous Coward · · Score: 3, Informative

      "There are compelling reasons to use proportional share scheduling techniques to support multimedia and other soft real-time applications on general-purpose operating systems. First, proportional share (PS) schedulers are a good match for existing infrastructure such as a periodic timer interrupt and mechanisms for assigning priorities to applications -- priorities can be mapped to shares in a proportional-share environment. Second, PS schedulers provide stronger guarantees to applications than do traditional time-sharing schedulers: they allocate a specific fraction of the CPU to each thread, and some schedulers provide error bounds on the allocation rate. Third, PS schedulers have clear semantics during underload: excess CPU time is allocated fairly, in contrast with some reservation-based schedulers that must idle or back off to a secondary scheduling policy once all application budgets are exhausted."

    3. Re:Why? by filth+grinder · · Score: 0, Troll

      exactly, I mean, isn't FreeBSD dead? but seriously folks?

    4. Re:Why? by Anonymous Coward · · Score: 0

      hahahahhahahahahha :)

      like it.

      ac

    5. Re:Why? by Waffle+Iron · · Score: 2, Funny
      What is the purported advantage of the new scheduler?

      Doesn't anybody read the submitters' article summaries any more? It says right at the top of this page that the new scheduler is Proportional. That's the advantage. We can therefore infer that the old one is inferior for a related reason: it's not Proportional.

      I'm all for good proportions. Kudos to the implementors. Keep up the good work.

    6. Re:Why? by Anonymous Coward · · Score: 0

      I believe proportional schedulers don't have the nasty property of starvation (threads don't get a share of the CPU time at all) due to higher priority threads eating up all the processing time. It's appropriate in situations where hard real time guarantees are not needed.

    7. Re:Why? by Anonymous Coward · · Score: 0

      I hate to nitpick but in what possible way is this insightful?

    8. Re:Why? by Dratman · · Score: 1

      I was trying to hint, in a (perhaps excessively) subtle way, that the original posting did not offer any easily decipherable clues as to the purpose or strengths of the new scheduler. In other words, I was expressing the opinion that the posting conveyed very little information.

      I guess the first moderator picked this up, while the one who called my post "overrated" did not.

      This moderation up and then down a point made me laugh quite a bit. I had been faintly praised, then unceremoniously knocked off my molehill-sized pedestal.

      --
      Sigmund
    9. Re:Why? by Anonymous Coward · · Score: 0

      Eh. Slashdot moderators are supposedly the "average Slashdot readers". Which means that a good chunk of the time (perpaps even a proportional chunk ;), you may suffer the moderations of an immoderate moron.

      But praise from idiots is just as meaningless as their derision, so I wouldn't get my panties in a bunch over /. karma if I were you. :-)

    10. Re:Why? by Dratman · · Score: 1

      That's why I found it so funny. Proportionately.

      --
      Sigmund
    11. Re:Why? by Art+Deco · · Score: 1

      FreeBSD is dead for people who need a bandwagon to jump onto. FreeBSD is dead for people who want a political or trendy OS. For people who simply want the best server OS available for PC hardware FreeBSD lives.

  11. uniprocessor only. by Anonymous Coward · · Score: 2, Interesting

    what the hell happenned to developing SMP and UP capable schedulers ? or does BSD expect to run well on only UP systems ?

    1. Re:uniprocessor only. by m0rten · · Score: 2, Informative

      The scheduler is far from finished, and would likely need a lot more work. Integrating it into 5.0-CURRENT (and bringing in the SMP support along with it) is already under way, but could probably take some time.

  12. Okay, now please tell me... by RinkSpringer · · Score: 2, Interesting

    Why does this get on the main page, and why does the new Core Team does not?

    Either way, FreeBSD does fit the new trend now... more VM's means more freedom :)

    1. Re:Okay, now please tell me... by Anonymous Coward · · Score: 0

      no. more VMs means more BSD boxen going down faster than a cheap whore on crack you numbskull.
      hacking the VM is not a good sign for stability.

    2. Re:Okay, now please tell me... by Anonymous Coward · · Score: 0

      Looking for logic in Slashdot article posting is like looking for diamonds in dog poop.

      Sure, you might find some some day, but do you really want to deal with that much crap?

    3. Re:Okay, now please tell me... by Z4rd0Z · · Score: 2

      Except this isn't a new VM.

      --
      You had me at "dicks fuck assholes".
    4. Re:Okay, now please tell me... by Anonymous Coward · · Score: 0
      What We Can Learn From BSD
      By Chinese Karma Whore, Version 1.0

      Everyone knows about BSD's failure and imminent demise. As we pore over the history of BSD, we'll uncover a story of fatal mistakes, poor priorities, and personal rivalry, and we'll learn what mistakes to avoid so as to save Linux from a similarly grisly fate.

      Let's not be overly morbid and give BSD credit for its early successes. In the 1970s, Ken Thompson and Bill Joy both made significant contributions to the computing world on the BSD platform. In the 80s, DARPA saw BSD as the premiere open platform, and, after initial successes with the 4.1BSD product, gave the BSD company a 2 year contract.

      These early triumphs would soon be forgotten in a series of internal conflicts that would mar BSD's progress. In 1992, AT&T filed suit against Berkeley Software, claiming that proprietary code agreements had been haphazardly violated. In the same year, BSD filed countersuit, reciprocating bad intentions and fueling internal rivalry. While AT&T and Berkeley Software lawyers battled in court, lead developers of various BSD distributions quarreled on Usenet. In 1995, Theo de Raadt, one of the founders of the NetBSD project, formed his own rival distribution, OpenBSD, as the result of a quarrel that he documents on his website. Mr. de Raadt's stubborn arrogance was later seen in his clash with Darren Reed, which resulted in the expulsion of IPF from the OpenBSD distribution.

      As personal rivalries took precedence over a quality product, BSD's codebase became worse and worse. As we all know, incompatibilities between each BSD distribution make code sharing an arduous task. Research conducted at MIT found BSD's filesystem implementation to be "very poorly performing." Even BSD's acclaimed TCP/IP stack has lagged behind, according to this study.

      Problems with BSD's codebase were compounded by fundamental flaws in the BSD design approach. As argued by Eric Raymond in his watershed essay, The Cathedral and the Bazaar, rapid, decentralized development models are inherently superior to slow, centralized ones in software development. BSD developers never heeded Mr. Raymond's lesson and insisted that centralized models lead to 'cleaner code.' Don't believe their hype - BSD's development model has significantly impaired its progress. Any achievements that BSD managed to make were nullified by the BSD license, which allows corporations and coders alike to reap profits without reciprocating the goodwill of open-source. Fortunately, Linux is not prone to this exploitation, as it is licensed under the GPL.

      The failure of BSD culminated in the resignation of Jordan Hubbard and Michael Smith from the FreeBSD core team. They both believed that FreeBSD had long lost its earlier vitality. Like a dying empire in decline, BSD had become bureaucratic and stagnant. As Linux gains market share and as BSD sinks deeper into the mire of decay, their parting addresses will resound as fitting eulogies to BSD's demise.

  13. FreeBSD is dieing? by Anonymous Coward · · Score: 0

    It has to be a miracle. Something actually makes the front page on slashdot that isn't part of the Linux-nazi empire. I can't believe it.

    Now, I know for a fact that if I was logged in as myself, I'd get a "Bad Karma", Slashdot really needs to get into the flow; get their act together; and post better stuff about FreeBSD. Why doesn't a FreeBSD release make front page, but a FreeBSD Scheduler does.. doesn't make much sense does it..

    Well, for all you Linux fokes who think *BSD is dead, your far from the correct answer. *BSD has been gaining market share as users that use Linux are fed up with the crashing & exploits, and considering a code that wipes out the filesystem in the "STABLE" branch. It can't be that stable if it wipes out your FS. FreeBSD has *NEVER* had anything like that happen.

    On top of that, Slashdot should be renamed to Linux Nazi News, Stuff that people don't care about.

    --Anonymous "Non-Linux" Coward. aka Bad Karma

    1. Re:FreeBSD is dieing? by Anonymous Coward · · Score: 0

      chicken. cluck cluck cluck.

    2. Re:FreeBSD is dieing? by Anonymous Coward · · Score: 0

      Actually; smart. I know i'm going to get a bad rating due to the fact of this Linux-ish site. We need some kind of alternative from CmdrTaco, et. all.. some new news site. Something that isn't completley based on Linux..

    3. Re:FreeBSD is dieing? by Anonymous Coward · · Score: 0

      http://www.kuro5hin.org
      we welcome you (NOT!)

    4. Re:FreeBSD is dieing? by darqchild · · Score: 1

      "Linux-nazi empire. I can't believe it." Wasn't Goldwyns law supposed to stop this thread dead in it's tracks?

      --
      What? Me? Worry?
    5. Re:FreeBSD is dieing? by Anonymous Coward · · Score: 0


      It's Godwin's law.

      I see slapdash's moderation is up to iot's usual "high" standards, too.

    6. Re:FreeBSD is dieing? by stor · · Score: 1

      Sounds like you're after a FreeBSD-centric site. Perhaps you should just jump on the FreeBSD mailing list or something.

      Cheers
      Stor

      p.s. Ahh sheet, IHBT.

      --
      "Yeah well there's a lot of stuff that should be, but isn't"
    7. Re:FreeBSD is dieing? by Anonymous Coward · · Score: 0

      > "Linux-nazi empire. I can't believe it." Wasn't Goldwyns law supposed to stop this thread dead in it's tracks?

      No that's the one where the first reference to Nazis or Hitler in a movie script halts production of that movie. Turned out to be a very unproductive law, and it was discarded.

    8. Re:FreeBSD is dieing? by PFAK · · Score: 0

      That's not true. FreeBSD has actually been gaining market share. It's not a dead operating system, although 4.3BSD, the base of Free/Net/OpenBSD is dead.. other then that. FreeBSD, and other versions of *BSD are.. I have tried many times to install Linux on any of my computers, of which I have many and varients; and each time I fail -- because due to the fact that Linux's hardware support is flaky at the best; even if you do a custom kernel, sometimes you can't even get into the installer. I have yet to have FreeBSD not be able to install, and I have had it only crash twice in the past 2 years I have been using it; EVEN on flaky hardware it performs at the best.

      --

      Free means no restrictions, ironic the FSF's GPL forces restrictions, isn't it? What's your definition of free?
  14. No clue what Proportional Share Scheduling is? by arnoroefs2000 · · Score: 5, Informative

    There's more info here.

    Excerpt:

    "There are compelling reasons to use proportional share scheduling techniques to support multimedia and other soft real-time applications on general-purpose operating systems. First, proportional share (PS) schedulers are a good match for existing infrastructure such as a periodic timer interrupt and mechanisms for assigning priorities to applications -- priorities can be mapped to shares in a proportional-share environment. Second, PS schedulers provide stronger guarantees to applications than do traditional time-sharing schedulers: they allocate a specific fraction of the CPU to each thread, and some schedulers provide error bounds on the allocation rate. Third, PS schedulers have clear semantics during underload: excess CPU time is allocated fairly, in contrast with some reservation-based schedulers that must idle or back off to a secondary scheduling policy once all application budgets are exhausted."

    1. Re:No clue what Proportional Share Scheduling is? by ewhac · · Score: 2

      Sounds vaguely similar to how BeOS's scheduler worked internally.

      Schwab

  15. Low Latency, Pre-Emptive multitasking? by BrookHarty · · Score: 1, Offtopic

    Im currently using linux with the low latency patch and pre-emptive multitasking. Does this help X seem a little smoother on BSD also?

    1. Re:Low Latency, Pre-Emptive multitasking? by Subcarrier · · Score: 4, Informative

      Don't forget Linux will soon have a new scheduler, too. The O(1) scheduler by Ingo Molnar kicks some serious ass, especially with SMP.

      --
      "I have opinions of my own, strong opinions, but I don't always agree with them." -- George H. W. Bush
    2. Re:Low Latency, Pre-Emptive multitasking? by Anonymous Coward · · Score: 0

      My scheduler is much better and they dropped it
      because it "..depended too much on open source software algos.." whatever, they're queer ass
      twofaces if you ask me.

    3. Re:Low Latency, Pre-Emptive multitasking? by Anonymous Coward · · Score: 0

      Actually the O(1) scheduler is usually slower than traditional scheduler. It has definite benefit only on systems with large numbers (say 150-200) of processes. WHY DOES NOBODY ON THIS GODDAMNED SITE KNOW ANYTHING.

    4. Re:Low Latency, Pre-Emptive multitasking? by noselasd · · Score: 1

      Actually Linux already has a new scheduler, Ingo Molnars O(1) is already in 2.5. But almost noone(of the kernel developers) thinks it should go in the 2.4. Redhat ships it though.

    5. Re:Low Latency, Pre-Emptive multitasking? by Anonymous Coward · · Score: 0

      You effectively just asked

      "WHY DON'T I KNOW ANYTHING??"

      And I'd have to say "Due to my presence on this goddamned site, I can't answer your question"

    6. Re:Low Latency, Pre-Emptive multitasking? by Anonymous Coward · · Score: 0
      Well, jeez, how come it seems that such systems are in fact the one in which it does make a difference exactly how threads are scheduled? With just a few processes, who cares? Do a linear search, whatever. It doesn't matter. With decent multi-threaded OS and apps, 150-200 is peanuts.

      Btw, you fit just nicely in here, if that's what you were asking.

    7. Re:Low Latency, Pre-Emptive multitasking? by Dwonis · · Score: 2
      Well, my box is running almost that, and I'm not even running very much today:

      dwon@zed:~$ ls -d /proc/[0-9]* | wc -l
      151
      dwon@zed:~$

    8. Re:Low Latency, Pre-Emptive multitasking? by Anonymous Coward · · Score: 0

      BTW, linux has always been pre-emptive multitasking in the normal sense of the word. The pre-emption patch makes the kernel itself preemptible, which is a step beyond normal preemptive multitasking, and a common reason to justify a microkernel architecture - linux has shown, however, that most microkernel techniques are also fully applicable to a conventional mmonolithic kernel.

  16. Trolling is dying, it's true. by Anonymous Coward · · Score: 0, Offtopic

    It's very sad (not really). It seems this "Less moderating will kill trolling" idea is working. By not giving trolls extra attention (by modding them down), they seem to get frustrated and many have quit. Seems some people do just want attention, even if it is negative.

    1. Re:Trolling is dying, it's true. by Anonymous Coward · · Score: 0

      hang on, have i just been trolled?

      oh the humanity!

  17. Re:Why a new Scheduler? by Anonymous Coward · · Score: 0

    Annoying troll.
    But at least do some research.
    "the Girl Guides " indeed.
    So you're a European troll, is that it?

  18. Re:Production by Anonymous Coward · · Score: 0
  19. Re:Production by Anonymous Coward · · Score: 0

    TeX!

  20. Re:KARMA WHORE !!!! by Buck2 · · Score: 2, Funny

    You're so cute when you do that.

    --

    As my father lik@(munch munch)... ....
  21. 0(1) scheduler by Sivar · · Score: 5, Informative

    Is FreeBSD's new one a 0(1) scheduler?
    0(1) is a "term" from computer science. When applied to schedulers, it basically means that no matter how many processes there are to schedule, a 0(1) scheduler's overhead will not significantly increase.
    Of course, with a small number of threads/processes to schedule, the Linux 0(1) scheduler will have greater initial overhead. It isn't until there are quite a few processes that it starts to show its power, and the more processes there are, the more useful it is.
    On a busy server with 4+ processors and thousands of processes, a standard scheduler's overhead is so great that it often exceeds the overhead of most of the individual server processes.

    --
    Computer Science is no more about computers than astronomy is about telescopes. --E. W. Dijkstra
    1. Re:0(1) scheduler by Osty · · Score: 3, Informative

      Is FreeBSD's new one a 0(1) scheduler?

      Just a nitpick. The term is "O(1)", not "0(1)", as in "Big Oh of 1" and not "Zero of 1".

    2. Re:0(1) scheduler by Sivar · · Score: 2

      Yes, I used the number "zero" (0) and not the letter "O" :)

      --
      Computer Science is no more about computers than astronomy is about telescopes. --E. W. Dijkstra
    3. Re:0(1) scheduler by Anonymous Coward · · Score: 0

      Actually, it's not "Big Oh" but Ordo, and the capital 'o' is for show that it's the Ordo value for the worst case.

    4. Re:0(1) scheduler by Sivar · · Score: 2

      Oh, I see. Nevermind. Hmm, I could have sworn that the "O" in my books was a zero. I guess i'll have to double-check that. Thanks for the correction. Oops.

      --
      Computer Science is no more about computers than astronomy is about telescopes. --E. W. Dijkstra
    5. Re:0(1) scheduler by Anonymous Coward · · Score: 0

      it basically means that no matter how many processes there are to schedule, a 0(1) scheduler's overhead will not significantly increase.
      Actually, it won't increase at all. If computation time increases according to data size, no matter how insignificantly, it is not O(1).

    6. Re:0(1) scheduler by dimator · · Score: 4, Funny

      I prefer ")1(O" just to throw people off.

      --
      python -c "x='python -c %sx=%s; print x%%(chr(34),repr(x),chr(34))%s'; print x%(chr(34),repr(x),chr(34))"
    7. Re:0(1) scheduler by Anonymous Coward · · Score: 0

      Not entirely true either. It could increase from
      2 ms to 3 ms, for example, as the number of processes go from 1 to infinity, but as 3 is still a constant, you're set.

    8. Re:0(1) scheduler by Anonymous Coward · · Score: 0

      It's clearly a nit-picky detail, but I don't think what you're saying is completely right... imagine an algorithm that takes 5 seconds with an input n < 10, and 10 seconds for all inputs n >= 10. Then you could say legitimately that "computation time increases according to data size," and yet the running time is still O(1).

      I guess it depends on how you mean "according," right?

    9. Re:0(1) scheduler by Anonymous Coward · · Score: 0

      It is O (oh) because it stands for "Order".

      E.g., you can have an algorithm of Order log n in execution time, or of Order 2^n, or of Order 1.

    10. Re:0(1) scheduler by pgpckt · · Score: 2, Interesting


      a 0(1) scheduler's overhead will not significantly increase.

      The term you are looking for is probably O(n), but definatly not O(1). O(1) will not increase at all, no matter how much data is put in. O(n) will increase linearly.

      --
      Lawrence Lessig is my personal hero.
    11. Re:0(1) scheduler by ink · · Score: 2
      Actually, it won't increase at all. If computation time increases according to data size, no matter how insignificantly, it is not O(1)

      There is a constant in there; big-oh measures the growth rate of an algorithm, not the actual time it takes to run. So, yes, it could take longer as the number of processes go up -- but that function would need to be linear. In other words: a O(1) algroithm isn't guaranteed to ever complete when presented with an infinite set of problems.

      --
      The wheel is turning, but the hamster is dead.
    12. Re:0(1) scheduler by Anonymous Coward · · Score: 0, Funny

      The preferred term among the Linux elite (that is, IT workers trying to learn Visual Basic in their free time) is "0(l)" or "Zero of Ell."

    13. Re:0(1) scheduler by cameldrv · · Score: 1

      O(1) means constant time no matter what size input. O(n) is linear with input size.

    14. Re:0(1) scheduler by PastaAnta · · Score: 1

      Yes, you are right about the constant. But for a O(1) algorithm the constant is just that - a constant! So for a data set of arbitrary size the complexity or time to execute will be - constant!

      This is like when you look up in an array with a pointer - it will take the same time no matter the data size.

      For a linear function the complexity will be O(n) as the previous poster said. Just like when you want to get an arbitrary element in a linked list for example.

      For an O(1) scheduler the tradeoff may be larger initial overhead (for few processes) or increased memory usage (for table lookups) or just a plain smarter algorithm :-)

    15. Re:0(1) scheduler by ldspartan · · Score: 1

      I have to take issue with this one...

      O(n) is linear time, O(1) is constant time. So, no, it can't take longer as the number of processes increases. An O(1) implementation must have exactly the same complexity regardless of how much data is presented. Thats why this is the holy grail of algorithm design.

      --
      Phil

    16. Re:0(1) scheduler by Osty · · Score: 1

      Actually, it's not "Big Oh" but Ordo, and the capital 'o' is for show that it's the Ordo value for the worst case.

      Yeah yeah yeah, I didn't want to get too pedantic. The common way to pronounce "O(n)" is "Big Oh (of) n", and so that's what I said. Going into why a big 'O' is used, and what it means, and the differences between O, o, Big Theta, Big Omega, etc is out of scope for this topic and my post. Therefore, I didn't get into that and just made the correction from 0(1) to O(1).

    17. Re:0(1) scheduler by Resistance+is+futile · · Score: 1
      O(n) is linear time, O(1) is constant time. So, no, it can't take longer as the number of processes increases. An O(1) implementation must have exactly the same complexity regardless of how much data is presented. Thats why this is the holy grail of algorithm design.

      Actually, O(1) means that it is bounded by a constant so that the time can keep increasing as the input size increases.

      Think a-b/n for n->infty

    18. Re:0(1) scheduler by ZerothAngel · · Score: 1

      You're probably thinking about theta, which looks very similar to zero.

    19. Re:0(1) scheduler by Cryptnotic · · Score: 2

      O(1) means that there is some constant C, such that for any problem size N, the execution time of the algorithm is less than C.

      O(n) means that there is a constant, C, such that for any problem of size N, the execution time of the algorithm is less than C*N.

      --
      My other first post is car post.
    20. Re:0(1) scheduler by Anonymous Coward · · Score: 0

      Sorry, you are wrong. Nice try on being insightful though, loser.

    21. Re:0(1) scheduler by Anonymous Coward · · Score: 0

      What was the book? How to fake knowing about Computer Science for dummies?

    22. Re:0(1) scheduler by Anonymous Coward · · Score: 0

      By "increasing", you should still mention that there's a limit involved. For example:

      S(n) = sum_0^n 1/(2^n)
      is a sequence that continues to increase as n grows:
      S(4) == 1 + 1/2. + 1/4 + 1/8 + 1/16 == 1.9375
      ... but even though this particular sequence is increasing all the time, it is still bounded above by a constant, '2'.

      Although it's perfectly true that O(1) doesn't prevent an algorithm from taking an increasing amount of time, it does bound it, and that's the important part. It guarantees that the time taken won't get larger than a certain constant, which is why we can say O(1) is "constant time".
    23. Re:0(1) scheduler by srichman · · Score: 2
      The term you are looking for is probably O(n), but definatly not O(1).
      No, he means O(1) scheduler, definitely not O(n). Most simple scheduling algorithms (e.g., basic round robin) are constant-time, and a contant-time scheduler patch was recently released for Linux.

      Just think about it logically. Why would he expectantly ask if the scheduler was O(n)? Name one super-linear scheduling algorithm in use in modern operating systems.

    24. Re:0(1) scheduler by ldspartan · · Score: 1

      Ok, I concede there. Its still not the common usage, but that doesn't make you any less right :).

      --
      Phil

    25. Re:0(1) scheduler by noselasd · · Score: 1

      O(1) will not increase - right. That is a good thing, wou want the scheduler to be as efficient as possible - right?

    26. Re:0(1) scheduler by Anonymous Coward · · Score: 0

      So, are you an idiot, or can you just not read? The man was implying that he was confusing O(n) with O(1). You look pretty stupid flaming someone because you misinterpreted his post.

      You must be a *BSD user. Only BSD users can be such big assholes.

    27. Re:0(1) scheduler by Anonymous Coward · · Score: 0

      I would like to shove an Omega up his ass.

    28. Re:0(1) scheduler by Anonymous Coward · · Score: 0

      I would too. What's your point?

    29. Re:0(1) scheduler by Anonymous Coward · · Score: 1, Informative

      The original 4.4BSD scheduler was already O(1) (by use of priority buckets).

      It is only Linux that had (for a long time) the O(n) problem (all runnable tasks/threads in a single linked list that had to be fully scanned to find which one to run - ick!).

    30. Re:0(1) scheduler by platypus · · Score: 1

      O(n) means that there is a constant, C, such that for any problem of size N, the execution time of the algorithm is less than C*N.

      Small nitpick, the last one should probably be C*N + K, where K is a constant (you already used up the C :) ).

    31. Re:0(1) scheduler by zdzichu · · Score: 1

      Is FreeBSD's new one a 0(1) scheduler?

      No, it O(log n) scheduler. Read the mails.

      --
      :wq
  22. Darwin? by BlackGriffen · · Score: 3, Interesting

    Anybody have any idea when/if Apple will integrate improvements from this scheduler in to Darwin/OSX?

    1. Re:Darwin? by Anonymous Coward · · Score: 0

      Never. Darwin uses the Mach scheduler.

    2. Re:Darwin? by Anonymous Coward · · Score: 0

      Not anytime soon. Remember that with Jaguar (X.2)they went from FreeBSD 3.4 to 4.4; and 4.6.1 will probably be released this week with 5.0 in November. I dubt that this will be stable enough to be included in FreeBSD until September.

    3. Re:Darwin? by Sivar · · Score: 5, Informative

      The scheduler is closely tied with the kernel, and MacOSX does not use the FreeBSD kernel at all. It uses the Mach kernel, which is not only a different kernel entirely but a different core kernel philosophy. Mach is a microkernel whereas FreeBSD's is a monolithic kernel. Both types have their advantages and disadvantages, but microkernels are vastly superior for a commercial OS and for driver installations. Monolithic kernels are theoretically faster and easier to implement.

      MacOSX gets its BSD label by using the BSD userland utilities. It is great that Mac's OS is no longer junk. In three months I went from "Macs are toy computers for kiddies and Photoshop pros" to "Wow--I can replace every PC and OS in my house with a single Mac! Great desktop, good server, and all the power of Unix."
      I have never been happier with the state of Apple Inc.

      --
      Computer Science is no more about computers than astronomy is about telescopes. --E. W. Dijkstra
    4. Re:Darwin? by JPriest · · Score: 1

      Cool, I always figured OS X was monolithic. That sort of reminds me of the famous usernet debate between Linus and Andy Tanenbaun (MINIX) in 92 covering "microkernel vs monolithic systems". It was an interesting read, in I believe Linus stated "True, linux is monolithic, and I agree that microkernels are nicer."

      --
      Saying Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders.
    5. Re:Darwin? by Drishmung · · Score: 5, Informative
      Not quite. This link gives quite bit more background about Darwin. In particular:
      Part of the history of Mac OS X goes back to Berkeley Software Distributions (BSD) UNIX of the early seventies. Specifically, it is based in part on BSD 4.4 Lite. On a system level, many of the design decisions are made to align with BSD-style UNIX systems. Many of the libraries are derived from NetBSD (http://www.netbsd.org/), while many of the utilities are from FreeBSD (http://www.freebsd.org/). For future development, Mac OS X has adopted FreeBSD as a reference code base for BSD technology. Work is ongoing to more closely synchronize all BSD tools and libraries with the FreeBSD-stable branch.

      Although Mac OS X must credit BSD for most of the underlying levels of the operating system, Mac OS X also owes a major debt to Mach. The kernel is heavily influenced in its design philosophy by Carnegie Mellon's Mach project. The kernel is not a pure microkernel implementation though since the address space is shared with BSD processes.

      The Mac OS X kernel (also known as XNU) is a monolithic kernel (unlike Mach, but like Linux and xBSD) with Mach and BSD sitting side-by-side.

      Some earlier Apple Unix efforts were true micro kernel implementations. This was also driven by the attraction of a pure hardware abstraction layer. With Darwin this seems to have moved to a more pragmatic recognition that performance matters.

      In Darwin, the Mach bits handle memory management, IPC and device drivers. BSD handles users and permissions, the network stack, the virtual file system and POSIX.

      So, this won't directly benefit Darwin, though if it is generally useful then someone/anyone can try and put it into Darwin---long live open source! I confess I don't know how the Mach part of Darwin handles scheduling, though I had heard that the Mach VM and scheduling was pretty good.

      --
      Protoplasm. Quiet Protoplasm. I like quiet protoplasm.
    6. Re:Darwin? by Sivar · · Score: 2

      That is a very informative link, thanks!
      Someone please mod this person up as my comment, currently at +5 (undeservingly), obviously has some flaws that Drishmung has corrected.

      --
      Computer Science is no more about computers than astronomy is about telescopes. --E. W. Dijkstra
    7. Re:Darwin? by Anonymous Coward · · Score: 0

      You rant on like you know something and you don't even mention OS X's daddy, NeXT. CMU took BSD and made a microkernel for it, that is MACH. Now, NeXT took MACH and made the most kick-ass UNIX system yet made. Steve Jobs came back and saw that the Mac OS was a complete piece of garbage and basically modernized features from NeXT and BSD and made it run Mac OS programs. Jesus, you can't just leave next out of the whole lineage you morons.

  23. probably never? by Anonymous Coward · · Score: 0

    Copying over scheduler code from one kernel to a completely different one is not trivial. I would expect OS X to just go along with whatever people are doing with Mach. All the BSD stuff in Mac OS X is just user-space stuff.

  24. FreeBSD ~= Security by Sivar · · Score: 5, Informative

    I am not going to claim that FreeBSD is perfect, but FreeBSD is more secure than the vast majority of Linux-based OSes. It has supported features like the new "GR Security" patch for years, and because it shares a great deal of code with OpenBSD which is audited frequently, it benefits from their work as well.
    Of note is that FreeBSD's libc is just over half the size of Linux's Glibc (not that has a thing to do with security)

    With FreeBSD, for years, admins have been able to set certain files as "append only" (so even root can only add to, not remove from, log files) and "immutable" (so even root cannot modify or delete the file) and has been able to set firewall rules to the same (immutable) so that creative crackers can't add their personal favorites if they root the system.
    This can of course be bypassed by restarting the machine in single-user mode and redusing the kernel security level, but that isn't going to be very easy for your average remote hacker. :)

    Furthermore, since 4.0 you can multiple run complete but separate entire copies of FreeBSD on the same system, each with their own FreeBSD system files and such. You can have a single server run an instance of FreeBSD for Apache, one for Postfix, one for BIND, etc. and if any one of them does get compromised (say, BIND since that happens entirely too often) the cracker can not only not effect any of the other instances--he/she cannot even see that they exist! Very interesting stuff.
    Of course, IMHO Linux is worlds ahead of FreeBSD on the desktop front, and the new GRsecurity and ACL features will be a real competitor for the *BSD family. It will be most fascinating to see how things turn out. I wish the best to both of them, and I use both of them every day.

    --
    Computer Science is no more about computers than astronomy is about telescopes. --E. W. Dijkstra
    1. Re:FreeBSD ~= Security by Anonymous Coward · · Score: 0

      You seem like a nice guy, Sivar. I go now to read your other comments.

    2. Re:FreeBSD ~= Security by FooBarWidget · · Score: 2, Interesting

      "With FreeBSD, for years, admins have been able to set certain files as "append only" (so even root can only add to, not remove from, log files) and "immutable" (so even root cannot modify or delete the file) and has been able to set firewall rules to the same (immutable) so that creative crackers can't add their personal favorites if they root the system."

      Linux can do that too. That is, if you use ext2 or ext3. See chattr(1), options a (append only) and s (secure deletion).

    3. Re:FreeBSD ~= Security by Anonymous Coward · · Score: 0

      I'm not going to claim that your anus is tight
      but you nearly squeezed my cock off with that last sneeze.

    4. Re:FreeBSD ~= Security by Fweeky · · Score: 2
      if you use ext2 or ext3. See chattr(1), options a (append only) and s (secure deletion).
      How do you unset them? In FreeBSD the kernel can have a secure level set which can only be raised without rebooting; setting the kernel into a securelevel stops the various immutable/undeletable/etc flags being unset, among other things.

      Check security(7) under "SECURING THE KERNEL CORE, RAW DEVICES, AND FILESYSTEMS".
    5. Re:FreeBSD ~= Security by Anonymous Coward · · Score: 0
      Unfortunately, FreeBSD won't be around much longer, according to many experts in the field.

      The naysayers are right on this one -- FreeBSD really is dying.

    6. Re:FreeBSD ~= Security by FooBarWidget · · Score: 1



      chattr +a foo.txt # set Append Only

      chattr -a foo.txt # unset

    7. Re:FreeBSD ~= Security by Fweeky · · Score: 2

      Er, yes, so how do you stop someone compromising root and setting -a? In FreeBSD, with a securelevel, the equivilent of chattr -a would fail with a permission denied even for the superuser.

      Setting the right things immutable would result in even you being unable to replace the base system or drop the securelevel without local access.

  25. That's Nothin'! by timeOday · · Score: 0, Offtopic

    Linux has had 3 or 4 different schedulers in the past year alone! Beat that!

    1. Re:That's Nothin'! by Anonymous Coward · · Score: 0

      How does this post get a 1.. Doesn't make sense.

      Well, Many isn't good. Look how many times theres been a major screwup in Linux.. tons. FreeBSD, not many.. it's because they check their code before submitting it.

      Linux is a bunch of update-happy freaks.

    2. Re:That's Nothin'! by Anonymous Coward · · Score: 0

      Apparently you missed the 3.x series. FreeBSD is better than linux, but it's not as feature-bloat-proof as OpenBSD.

    3. Re:That's Nothin'! by timeOday · · Score: 1

      Yeah, that was my point, Linux's scheduler upgrade wasn't too graceful. Guess I was a little too "clever" in expressing myself.

  26. 4 files modified by Anonymous Coward · · Score: 0

    the only 3 files modified are kern_synch.c, kern_switch.c and proc.h, plus a one-line change to kern_exit.c

    Well that's 4 files modified, now isn't it?

  27. Re:*BSD is dying by Anonymous Coward · · Score: 0

    Why aren't more people aware of this? It seems like there are still lots of people out there who consider BSD a viable OS. This information needs to be made more widely available.

  28. And I thought it said... by maw · · Score: 0, Offtopic
    Read the first post here.

    Woops!

    --
    You're a suburbanite.
  29. Wow! by Anonymous Coward · · Score: 0

    You wouldn't think that the losers who use FreeBSD would have enough extracurricular activities to require the use of a scheduler! Will wonders ever cease?

  30. Re:Production by Anonymous Coward · · Score: 0

    VI ?

  31. god you're gay by Anonymous Coward · · Score: 0

    gaymo

  32. Great news by Anonymous Coward · · Score: 0

    This is great news, I can't wait for 5.0 STABLE. My experience with FreeBSD has been much better than Linux. It is far more robust and actually more stable.

    I'm waiting for Linux to die.

  33. Hmmm by FrostedWheat · · Score: 2

    the only 3 files modified are kern_synch.c, kern_switch.c and proc.h, plus a one-line change to kern_exit.c

    I hate to be picky .. but that's 4 files modified. One-line or a thousand, it's still been modified.
    </END-RANT>

    1. Re:Hmmm by Joe+Mucchiello · · Score: 1

      And modifying a .h file is modifying every file that includes it. How many files include proc.h? Sounds like a popular include file.

  34. Schedulers. (*nix v. win2k) by Erpo · · Score: 1

    I've been poking my newbie nose around in scheduling for a little while, and while I still know very little I've found the field very interesting. It's always neat to see new features and techniques being tried, but there's a feature that exists in the windows nt scheduler that (as far as I can tell) is absent in *nix operating systems. Winnt maintains (I think) four process queues (realtime, high, normal, and idle) into which all processes fall. Every time the scheduler is run, it checks to see if any "realtime" processes can be run, then "high", then "normal", and finally "idle". Processes in "less important" queues are only run if all processes in "more important" queues cannot be run (i.e. they're blocking on input or whatever), or those queues are empty. I find this very useful because I can set a long-running cpu dependent process to "idle" priority and it will be run at nearly 100% cpu usage when the machine is idle, but will instantly get out of the way and not be run at all if I choose to run something else (e.g. a game), no matter how high it's "goodness" value gets from not using any cpu time.

    Is there any reason why something like this isn't implemented in Linux or FreeBSD? Low on the developers' feature priority list (har har)? Too difficult? Unnecessary?

    Thanks. I'd appreciate any feedback.

    1. Re:Schedulers. (*nix v. win2k) by trycoon · · Score: 1

      eeh? It's allready there, since the dawn of the dinosours. Check "man renice"!
      My SETI@home run at 100% only when my CPU is idle...

    2. Re:Schedulers. (*nix v. win2k) by Sivar · · Score: 3, Informative

      Not needed. Linux and FreeBSD both handle different priority levels quite nicely, and in fact can handle them in a much more fine-grained fashion. NT actually has additional priority levels in-between each that you described above, but Linux and BSD have a total of 41 possible priority values (from -20 to 20, including zero)
      If you set an application to a priority of 20, it isn't going to be bothering any other processes, and if you set an application to -20, it is going to be worshipped like a god by the scheduler.
      As far as I know, neither have a real-time scheduling mode like NT, which is actually a good thing in many cases. If a program running at real-time priority goes into an infinite loop, or for any reason uses 100% of hte CPU (SETI@Home, for example) than the system is locked the hell up. Even the mouse will not get any time for cursor movement, and you have to reset the machine.

      Read "man nice", "man renice", and probably "man top" (which I use to change priorities of running processes as root)

      --
      Computer Science is no more about computers than astronomy is about telescopes. --E. W. Dijkstra
    3. Re:Schedulers. (*nix v. win2k) by Ded+Bob · · Score: 3, Informative

      Is there any reason why something like this isn't implemented in Linux or FreeBSD?

      FreeBSD does have something like this: idle, normal, and real time. By default it is normal, but you can change it to idle (idprio(1)) or real time (rtprio(1)).

      In the man page for rtprio(1) is one relevant bug:
      "Under FreeBSD system calls are currently never preempted, therefore non-realtime processes can starve realtime processes, or idletime processes can starve normal priority processes."

      Maybe the new scheduler will fix this?

    4. Re:Schedulers. (*nix v. win2k) by Anonymous Coward · · Score: 0

      When userspace and misbehaved apps can reset this scheme(as some shitty apps do) in win2k
      then whats the use of this?
      To test ctrl-alt-del?

    5. Re:Schedulers. (*nix v. win2k) by Nevyn · · Score: 3, Informative
      Not needed. Linux and FreeBSD both handle different priority levels quite nicely, and in fact can handle them in a much more fine-grained fashion. NT actually has additional priority levels in-between each that you described above, but Linux and BSD have a total of 41 possible priority values (from -20 to 20, including zero)
      Actually they can have much more than that, but the "user" can only set those 41 values. There isn't even a definition of how they have to map (so for instance you can have the schedular have priorities -20 to 20 including zero but in 0.5 increments. Or just -40 to 40 in 1.0 increments etc.
      As far as I know, neither have a real-time scheduling mode like NT, which is actually a good thing in many cases. If a program running at real-time priority goes into an infinite loop, or for any reason uses 100% of hte CPU (SETI@Home, for example) than the system is locked the hell up. Even the mouse will not get any time for cursor movement, and you have to reset the machine.
      Do "man sched_setparam" and man "setpriority" to learn about "real time" processes. Linux also had patches for SCHED_IDLE at one point, but that can cause pretty bad reasource deadlocks without priority inversion and so was never integrated.

      There can be problems if your "real time" process misbehaves but then don't do that.

      NOTE: The term "real time" is used to mean best effort at real time, for true real time you don't use a general purpose OS (Ie. NT doesn't count either).

      --
      ustr: Managed string API with ave. 44% overhead over strdup(), for 0-20B
    6. Re:Schedulers. (*nix v. win2k) by Burning1 · · Score: 2

      I disagree to some extent with comments that Linux has a scheduler that is 'good enough.'

      I ran some real time multimedia streaming applications under linux a while ago (LiveIce; very nice tool) and found that even using nice, I would occationally get glitches in the stream output during broadcasts.

      Switching to FVWM helped somewhat, as did nice... But when it cames right down to it, I don't think this should have been a problem.

    7. Re:Schedulers. (*nix v. win2k) by Mr.+Tuvix · · Score: 1
      On Linux and (I believe) FreeBSD, the ability to set processes to different levels of realtime priority has been in place for years. Very recent (last couple weeks?) versions of the new Linux O(1) scheduler can do "idle" priority, and it will probably be in the 2.6 mainstream kernel.

      Implementing the idle priority is hard, because if an "idle" task gets a lock on a crucial resource and gets preempted, any non-idle tasks that need that lock must then wait for the system to become idle -- potentially an indefinite amount of time.

    8. Re:Schedulers. (*nix v. win2k) by mosch · · Score: 2
      Is there any reason why something like this isn't implemented in Linux or FreeBSD?
      Mostly because it's already implemented on both systems. For freebsd see rtprio, idprio, and of course good old nice.
    9. Re:Schedulers. (*nix v. win2k) by Birdie-PL · · Score: 1

      And there is this patch which allows you to limit the CPU usage if nice is not enough for you.

      --
      e-mail: karol at tls-technologies.com
      www: http://www.tls-technologies.com
      sig: not found
    10. Re:Schedulers. (*nix v. win2k) by GypC · · Score: 2

      Try it with a low-latency or pre-emptive-scheduling patched kernel. By default the kernel is tuned as a server, not a multimedia workstation. The kernel team seems to be working to correct this by adding compile time options and/or a new scheduler, but for now, on stable kernels, it requires patches.

      I've personally found that the patches make an amazing improvement in UI responsiveness and media playback. I'm looking forward to 2.6.

    11. Re:Schedulers. (*nix v. win2k) by xA40D · · Score: 1

      The nice value is merely a weighting factor that is used in the calculation of a task's the priority. The actual priority of a task depends upon what the task is, how much CPU time it's used recently, and which run queue the task has been assigned to. Indeed, each process has two priorities, one for user-mode execution, and one for kernel-mode execution. Renicing a process -20 and expecting it to be treated as god may seem a reasonable inferance, but if you ever delve into the internals of BSD you'll discover how wrong you are - and how brain numbingly complex priority scheduling actual is.

      --
      Do you mind, your karma has just run over my dogma.
    12. Re:Schedulers. (*nix v. win2k) by Anonymous Coward · · Score: 0
      I believe the four queues you're refering to are the four classes you can enter in the SetPriorityClass API call. They are not actually queues.

      There's a section about Scheduling Priorities that describes in detail the 32 levels of priority that threads can be assigned, based on their process class and their thread priority. They range from 0 (System Idle Thread only) to 31 (Real-time process running thime-critical thread).

      There is also a neat feature referred to as Priority Boosts that allow the window receiving mouse or keyboard input to get a dynamic boost of two levels. For example, a normal priority thread in a normal class process handing a window's message queue would get bumped from a value of 7 to 9 to ensure its responsive to user input.

  35. Credit due Paolo Valente! by Anonymous Coward · · Score: 0

    The scheduler patch is largely the work of Paolo Valente, a student at Pisa, under the supervision of Luigi Rizzo. Luigi would not want to claim credit unduly.

  36. Proportional Share FreeBSD boxes by Anonymous Coward · · Score: 0

    Imagine a Beowolf Cluster of THESE!!!

  37. Re:Production by Anonymous Coward · · Score: 0

    ls (while escaping on-printable chars)

  38. Lottery scheduler? by Anonymous Coward · · Score: 0

    How is this related to the so-called lottery-scheduler promised in 5.x? Do they have the same goals, such as preventing a single user from dominating the CPU? S.

  39. Re:Why a new Scheduler? by Anonymous Coward · · Score: 0

    The Girl Guides are Canadian.

  40. Re:*BSD is dying by Anonymous Coward · · Score: 0

    People still use Usenet?? wow!

  41. What are you doing to crash the system? by axxackall · · Score: 1
    It is far more robust and actually more stable.

    Hey, people, what are you doing with operating systems that they are crashing like a domino?

    I use Linux as well as FreeBSD for awhile with Apache, Sendmail, X11 and lots of other software competing for memory, CPU, exotic devices, network bandwidth and just for disk I/O. No crashes. On linux I use also video, Oracle, Tomcat, JBoss - all works fine, besides own bugs (it's ok for userland, isn't it?).

    For my experience, which doesn't meet crashes, it is more important what hardware, filesystems and protocols are supported. And of course I compare systems with only stable manually configured and re-compiled kernels passed "on-the-field" regression tests before I upgrade the production mode with that new kernel.

    So, one more time, why should I prefer BSD?

    --

    Less is more !
    1. Re:What are you doing to crash the system? by Anonymous Coward · · Score: 0
      2 reasons:

      2.4.0-2.4.12

      The ports collection.

    2. Re:What are you doing to crash the system? by axxackall · · Score: 1

      2.4.7 was not bad in that collection. The rest i did not use. As I told, I do at first regression test by myself before I apporve to myself any upgrades in the production system.

      --

      Less is more !
  42. re: Darwin isn't BSD or Mach by Anonymous Coward · · Score: 0

    Mac OS X is neither truly monolithic nor truly micro in its kernal architecture.

    While both BSD, and Mach sit in the same memory space, this making it monolithic, they are separate pieces of software with a true microkernal in many respects.

    It is monolothic in that BSD can take down the whole machine, but Apple argues that you wouldn't care if the kernal was still running when BSD crashed. Furthermore, it is monolithic in that messaging is reduced between the Mach and BSD because they reside in the same memory space as if BSD were part of the microkernal.

    However, it is a microkernal in abstraction. Only Mach talks directly to hardware. It is a more portable BSD derivative than many. In addition, the microkernal allows certain online driver loading and unloading techniques that are not possible in monolithic kernals.

    When they get some of the threading issues of the OS worked out it should show very good performance. Maybe this experiment will eventually prove to be the best of both worlds for a general purpose OS. Monolithic performance with microkernal maintenance.

  43. It can vary by SilentStrike · · Score: 1

    The running time can vary for given N, just not for abtrirary N. As demonstrated by the following code. It runs fastest when n = 1, followed by n = 2, but is still O(1) when n is not 1 or 2, because the running time is constant for large n.

    int orderOneButVarying(int n) {
    if (n == 1) {
    return n;
    } else if (n == 2) {
    for (int i = 0; i 3; i++) {
    n*=n;
    }
    return n;
    }

    for (int i = 0; i 1000; i++) {
    n+= n / 2;
    }

    return n;
    }

  44. Except Solaris by moogla · · Score: 2

    ::shrugs::
    Doesn't even come with it.

    --
    Black holes are where the Matrix raised SIGFPE
    1. Re:Except Solaris by Anonymous Coward · · Score: 0

      solaris 9 is out and comes with it. FreeBSD-Stable and Solaris 9 were not vulnerable to that particular SSH vulnerability though. FreeBSD-Current was, however.

  45. Here is a great reason to prefer BSD by sawilson · · Score: 3, Funny

    http://uptime.netcraft.com/up/today/top.avg.html

    You'll notice that 45 of those top 50 are BSD
    machines. Of those 45, 19 are FreeBSD boxes.
    You'll notice 1 Linux box. It's nice to see that
    leading industry sites like bongload.com and
    twobigirls.com have benefited so much from the
    stability of BSD.

    1. Re:Here is a great reason to prefer BSD by axxackall · · Score: 1

      Longest time in that table means for me that people don't have rapidly developed applications there. I guess they host mostly static pages. Maximum what they have is CGI scripts with MySQL. I sure they don't use any Java servlets. Any serious databases servers either. And as far as know the phsychology of most of sysadmins - when they upgrade serious web or database server they use the chance to restart the computer. Either just for a case or to test last changes in boot or monitoring scripts. No matter what OS: Solaris, BSD or Linux - use the chance to reboot your box. So your table doesn't prove anything.

      --

      Less is more !
    2. Re:Here is a great reason to prefer BSD by realdpk · · Score: 1

      Rebooting a box isn't necessary when using a database or a "serious web server", at least not on FreeBSD. Maybe it is on other OS's?

      I mean, really, what good does rebooting do?

    3. Re:Here is a great reason to prefer BSD by axxackall · · Score: 1
      Technically there is no need in rebooting.

      Psychologically many admins prefer to reboot from time to time.

      Personally, I like to reboot when the system (including remote monitoring clients) has some scripts related to reboot/shutdown and I'd like to test changes I've recently made. I know, I've already tested it on the testing machines, but ... just to make sure.

      --

      Less is more !
    4. Re:Here is a great reason to prefer BSD by Astastrafal · · Score: 1

      It's probably due to that bug whereby the uptime counter wraps around after 497 days and a few timesteps later. From what I gather, there are people who are working to get that bug squashed but I dunno if their patches have been accepted by Linus. See also this page from Netcraft explaining the potential problems about their method of uptime detection. You'll also learn there that some OSes do not report uptime, among them such "enterprise" favorites as AIX, Tru64, VM, OS/390 and others. So Netcraft's stuff, while interesting, is not a definitive comparison of the relative stability of the various server OSes out on the Net.

    5. Re:Here is a great reason to prefer BSD by Anonymous Coward · · Score: 0

      Test the boot scripts.

      Better reboot an extra time at night, to make sure that you haven't mistyped a command, than waiting until power goes out in work hours, the UPS gives up and the server needs to boot when the power comes back.

      Just when you thought the scripts were perfect, NFS starts up before the network interface, and you're in for a very long timeout. Or it doesn't work at all, because you accidentally deleted /usr from /etc/fstab.

  46. I use Linux AND FreeBSD by leereyno · · Score: 3, Interesting

    Right now I've got four systems running Linux (RH-7.3 and 7.2) and one system running FreeBSD 4.6. At times in the past I've run OpenBSD and NetBSD as well.

    I can tell you firsthand that in terms of system stability that Linux and FreeBSD are comparable if not indistinguishable. FreeBSD does seem to be more efficient however. The pentium 200 that I have FreeBSD on loads up KDE 3.0 noticably faster than Redhat 7.2 did, and once loaded it is more responsive. On older hardware FreeBSD definitely seems to have an advantage. I consider FreeBSD to be a very fast and well designed operating system. I keep trying to find places where using it instead of Linux would be an advantage.

    Not everything about it is all that rosey however. The features and abilities that Linux provides but FreeBSD lacks such as SMP, kernel pre-emption, fast journaling filesystems, certain commerical software packages, 3D acclerated X servers, and generally better device support, make actually using FreeBSD as anything but an interesting toy kind of difficult to justify in many situations.

    I worry about FreeBSD. I'd love to see it grow and progress not as a competitor to Linux, but as something of a companion to it. So many people just don't seem to realize that open source isn't about operating systems alone. What Linux and FreeBSD do is provide a foundation, they aren't the whole house. Both provide a powerful and stable platform for running the actual programs that people want to use in the first place. The future of open source development is going to be 90% apps and userland and 10% OS. To have religious and political wars over the OS portion is immature and counterproductive. Linux and FreeBSD aren't genuine competitors from an economic standpoint because it is the applications that both run that make either compelling in the first place.

    I want BOTH Linux and FreeBSD to do well, to grow and expand and be the best operating systems anyone has ever seen. I detest the infantile immaturity of those who seek to create division and conflict between FreeBSD and Linux that simply shouldn't be there. I've gotten flames from FreeBSD "advocates" in particular filled with such hatred and obvious zealousness that you'd think they were Mac freaks, all because I described FreeBSD in terms that weren't favorable enough for their religious views. The Linux crowd is full of just as many jackasses, if not more.

    Computer enthusiasts are known for generally having high IQ's. Unfortunately our reputation for having low EQ's is equally well earned. There are far too many borderline autistics and asperger's sufferers among us with severely retarded social skills. That is really the only explanation I can come up with when grown men with extensive vocabularies use them to throw a fit on par with that of an eight year old.

    Anyway I'm drifting way off from what I wanted to write about. The point that I really want to make is that BOTH Linux and FreeBSD are absolutely fabulous operating systems (save the linux is just a kernel messages for church). The goals and vision behind each are so similar that any ill will between them is manufactured by immature, short sighted assholes. Microsoft is the enemy, not those who prefer another free Unix derivative that runs Mozilla, gnome, kde, etc just as well if not better than what someone else is using.

    Lee

    --
    Muslim community leaders warn of backlash from tomorrow morning's terrorist attack.
    1. Re:I use Linux AND FreeBSD by Anonymous Coward · · Score: 2, Informative

      Not everything about it is all that rosey however. The features and abilities that Linux provides but FreeBSD lacks such as SMP, kernel pre-emption, fast journaling filesystems, certain commerical software packages, 3D acclerated X servers, and generally better device support, make actually using FreeBSD as anything but an interesting toy kind of difficult to justify in many situations.

      1. FreeBSD does support SMP, albeit not as good as 2.4; but way better than 2.2.

      2. Kernel pre-emption is a hack, I'd like it but many developers think it's the wrong path.

      3. SoftUpdates are in most ways alot better than journaling, the only time that it isn't is in the event of a crash; as you have to whipe the dangling blocks in the background. But as performance is much better during up-time, it's all worth it.

      4. Can't argue with that, but then, I'd run Windows if it was all that important.

      5. Accelerated X, the X Server, is available for FreeBSD.

      6. BSD was way ahead of Linux when it comes to FireWire, USB and SCSI. In fact, the USB system in linux comes from NetBSD( 2 years later! ); and the SCSI system is way better on FreeBSD than on Linux.

    2. Re:I use Linux AND FreeBSD by Anonymous Coward · · Score: 0

      The only points that keeps me back from
      using FreeBSD are
      1) Lack of a HotSpot enabled JVM.
      2) Lack of linux-compared performer SMP support.

      And lest not forget, FreeBSD is a operating system, with minimal GNU software in its base
      installation, whereas linux is only a kernel.

    3. Re:I use Linux AND FreeBSD by slashtop · · Score: 0

      Java problem is not FreeBSD's problem, it's the issue from SUN. Java is not free, especially it's implemention source code, although everyone think it is free, but it is not really, it prevents someone from modifying and porting it.
      Waiting for FreeBSD 5.0, All my wishes is beating Linux, knock its head when released!

    4. Re:I use Linux AND FreeBSD by Anonymous Coward · · Score: 0

      I think the license issue is resolved.
      The FreeBSD team has purchased a license to
      port and redistribute the code.
      The problem is rather of a more pragmatical
      nature: The actual implementation of the HotSpot
      JIT.
      The issue is that HotSpot is by far better perormer than the other alternatives when
      run in -server mode, i.e most likely
      in a server environment (EJBs,Servlets,JSPs)
      where (as a server) FreeBSD shows most of its strengths.
      So, more popularity means more volunteers,
      and a sooner release of a decent j2sdk1.3.1.
      I hope too that the 5.0 release will close
      some mouths here in slashdot.
      (At least this idiotic "freebsd is dying" troll)!!

    5. Re:I use Linux AND FreeBSD by leereyno · · Score: 2

      1: My (admittedly limited) understanding of SMP on FreeBSD was that they were having problems finding people to work on it. That they were having to do a rush job on it in order to try and get something marginally workable for 5.0. If SMP is working as well as it did in Linux 2.2 then that would be great.

      2: I LOVE kernel pre-emption. On older systems where the kernel can be more or less stuck chewing on something it makes the computer much more responsive. Kernel pre-emption is one of the hallmarks of microkernel architectures (well pre-emption of the userland threads that handle the system calls at least). The nice thing about it is that you don't HAVE to use it.

      3: the ext2 filesystem has support for ordered updates just like UFS. It isn't generally used except on servers because of the speed penalty. Ext3 on the other hand uses ordered mode by default. The benefit of jornaling is that your filesystem doesn't get left in and undefined state in the case of a crash. Also when you reboot you don't have to spend who knows how long checking the filesystem. Speed is a secondary concern. I can't make any solid claims about the speed of UFS using soft updates vs. ext3. All I can says that my personal experience with UFS has been that its much, much slower when it comes to creating or destroying files compared to either ext2 in asynchronous mode or ext3. In terms of raw throughput on existing files all I can say is that all three are fast enough that I don't notice any difference between them.

      4: It might not be important to you, but I support Unix in the college of engineering at Arizona State and believe me things like Matlab and Maple are a very big deal around here. I know of course that these might very well run on FreeBSD using its ability to emulate Linux (which is a VERY good thing IMHO).

      5: It is also commercial software not not cheap. I'm not one of your free software religious zealots, I have zero problems with commercial software. The problem is that if Accelerated X is the only X server with 3d support for FreeBSD, then that tips the scales decidedly in the favor of Linux where such support part of the base system.

      6: I know that NetBSD had support for USB back in early '99. I wasn't aware that the support for it under Linux was derived from NetBSD. Even if it was, the comparison here is between Linux and FreeBSD, not NetBSD. I've run NetBSD and I've never been particularly impressed with it. The main problem I see is that there are still people trying to support long dead hardware with it, hardware that NO ONE is going to actually run if they can help it in any way. I got a Quadra 700 for free a year or so ago and decided to try and make it into a real computer. That meant of course putting a real operating system on it. I chose NetBSD and sure enough it would load up and run.....VERY, VERY slowly. The fastest 68k mac ever made wasn't much faster than that Quadra 700 was, meaning that trying to continue to maintain a codebase for the platform line is an utter waste of time. I installed NetBSD for intel shortly thereafter and was less than thrilled by the stability of the system. The kernel didn't crash, but userland stuff I'd compiled from the ports sure did. OpenBSD is much better in that regard, most likely because it doesn't get spread too thin chasing dead hardware. I really like OpenBSD because it is designed to be secure by default, something that other Unix derivatives would do well to emulate. Obviously security is in the hands of the administrator and it is very possible to misconfigure OpenBSD to be insecure. Its just that with it I don't have such a nagging worry that there might be some exploit of some service or another waiting to be discovered by the cracker community. As for SCSI under Linux and FreeBSD I can't really comment one way or the other.

      I wasn't really sure how to respond to your post at first. To a large extent I think that for us to debate whether the issues above are real or not is pointless because I'm not out to attack FreeBSD by bringing them up. I WANT FreeBSD to do well, and these are the areas that I think it needs improvement in.

      The code base for FreeBSD is VERY mature and the base BSD system itself was created by some of the most brilliant computer scientists who have ever lived, such as Bill Joy. Ever read The Design and Implementation of the 4.4 BSD Operating System? Linux owes as much to BSD as it does to GNU.

      Projects like the BSD's are valuable because they provide an alternate view of how to do things from what is available under Linux. If something isn't really being done well in Linux and works better under one of the BSD's, then that provides a valuable contrast so that everyone can see that the problem needs to be fixed. This is a two way street however, which is exactly why I've listed things I thing need to be fixed. By listing them I'm not saying that FreeBSD is "bad," only that there are areas where there is room for improvement.

      Lee

      --
      Muslim community leaders warn of backlash from tomorrow morning's terrorist attack.
    6. Re:I use Linux AND FreeBSD by Anonymous Coward · · Score: 0

      You should probably read this interview with Mr. Dillon of FreeBSD VM fame.

      For me, I work on the BSD's for political reasons as much as I do for the technical.
      I want nothing to do with GNU, I'd prefer to eliminate all GPL/LGPL software from the BSDs; but us developers got more important things to deal with at this moment in time.
      By FreeBSD 7.0 I'd hope to have replaced the GNU toolchain; Dillon has great experience with compiler construction too (see DICE compiler), but it isn't his main interest these days.

    7. Re:I use Linux AND FreeBSD by gomerbud · · Score: 1

      5: It is also commercial software not not cheap. I'm not one of your free software religious zealots, I have zero problems with commercial software. The problem is that if Accelerated X is the only X server with 3d support for FreeBSD, then that tips the scales decidedly in the favor of Linux where such support part of the base system.

      freeBSD has had support for hardware graphics acceleration for some time. currently it works for native freebsd binaries. support for linux binaries like quake3 and return to castle wolfenstien can be added with the linux_dri package. take a look for your self

      http://people.freebsd.org/~anholt/dri/

      this is a cool time for dri under freebsd. anholt is currently working with the dri group at sourceforge. in a little while, XFree86 will be able to 'officially' support DRI under freebsd.

      --
      Kan jeg få en pils, vær så snill?
  47. FreeBSD SMP. by Patrick+Cable+II · · Score: 2, Informative

    (root@oracle)(3/ttyp0)(08:19P:07/23/02)-
    (#:/sys/ i386/conf)- grep SMP LINT

    # SMP OPTIONS:
    # SMP enables building of a Symmetric MultiProcessor Kernel.
    # An SMP kernel will ONLY run on an Intel MP spec. qualified motherboard.
    # Be sure to disable 'cpu I386_CPU' && 'cpu I486_CPU' for SMP kernels.
    # Check the 'Rogue SMP hardware' section to see if additional options
    options SMP # Symmetric MultiProcessor Kernel

    1. Re:FreeBSD SMP. by leereyno · · Score: 2

      Yes, but does the SMP actually work well? My understanding having not followed too closely is that SMP is not really working yet. It will detect two CPU's, but only really use one of them. That might have changed recently in which case I'm glad to hear it.

      Actually that reminds me of another area where FreeBSD needs improvement, kernel threads. These aren't a make or break feature, but they are nice.

      Lee

      --
      Muslim community leaders warn of backlash from tomorrow morning's terrorist attack.
  48. Re:*BSD is dying by tooLateNow · · Score: 1

    Indeed. If I had only known that BSD was dead I would have avoided having so many happy customers who paid me money.

  49. Re:*BSD is dying by scalis · · Score: 1

    Nail on the head bro' ! Ill probably get my ass kicked by penguin fans but my religion still tells me that FreeBSD kicks the penguin in the nuts.... The deamon gets just in front of the penguin in my book... Solaris and others are way below....

    --

    True ravers don't need drugs
  50. Your point makes no sense. by sawilson · · Score: 1

    That's a weak point. It still doesn't explain
    why BSD dominates this "table" and some other OS
    doesn't. Why isn't it dominated with Linux or
    some other OS that isn't being what you perceive as
    "rapidly developed". So Linux can't handle the stress
    of a non developed environment? You can FUD
    around with your philosophies on the psychology
    of sysadmins all you want, but this table shows
    something very clear. As much as your love your
    pet OS, BSD is the clear stability king.