Slashdot Mirror


OpenSolaris Code Released

njcoder writes "C|net's news.com.com has reported that Sun Microsystems is releasing parts of the OpenSolaris code today licensed under the OSI-approved CDDL . The release consistes of over 5 million lines of code for the base system OS/Net (kernel and networking). OpenSolaris is based on Solaris 10, the current version of Sun's Unix Operating System. Back in January, Sun released the code for DTrace, a dynamic tracing tool for analyzing and debugging kernel and userland events. DTrace is one of the big features in Solaris 10. Some other highlights include the GRUB bootloader, SMF (Service Management Facility) which replaces init.d scripts, it starts up processes in parallel for faster boots (7 second boot on a dual opteron workstation I think that was the setup) as well as providing features for automatically restarting. OpenSolaris provides support for x86/x86-64 processors as well as Sparc. The Blastware guys are working on Polaris which is an OpenSolaris port to PowerPC. Sun has been working on opening Solaris for over a year now. The OpenSolaris project started with a pilot group of Sun and non-Sun users. During the pilot program a lot of info including screenshots could be found on various OpenSolaris member blogs. (My favorite is Ben Rockwood's blog). Teamware is the source code management system Sun uses for Solaris and OpenSolaris. Which was designed by Larry McVoy (now of BitKeeper) while he was at sun. No word yet on if Teamware will be available for OpenSolaris developers or not. Sun also uses CollabNet for it's Open Source project websites so that might be a possibility as well."

21 of 362 comments (clear)

  1. Rock on! by AKAImBatman · · Score: 4, Interesting
    YES! This completely rocks! Check it out:



    Combined with an Open Source/Forkable license, what more could a Solaris Geek want? Get out the party hats people, because this has got to be THE most awesome thing Sun has ever done!

    (I'm excited, can you tell? *Happy Dance* *Happy Dance*) :-P

    Now for the bad news. Sun has taken the tack of encouraging users to build their own system. That is a good thing. Unfortuntely, all builds require a system to bootstrap the build. At the moment, the only option is Solaris Community Edition, a non-Torrented download. (Boo!) That being said, I don't think we'll have to wait too long for the OSS community to fix that little issue. :-D
  2. let the driver flood gates open! by emptybody · · Score: 4, Interesting

    now maybe we will see some driver development for all the cool hardware that is out there?

    --
    comment directly in my journal
    1. Re:let the driver flood gates open! by zzqzzq_zzq · · Score: 3, Interesting

      When things like the 'dad' & 'uata' (IDE drivers), and 'todsg' drivers are still in the closed source tarballs, I'm not hopeful for the 'open'ness of 'opensolaris' (Come on, they can't release drivers for their own hardware clocks?! (todsg))

  3. Zfs? by astrashe · · Score: 3, Interesting

    Is zfs included?

  4. Parallel boot scripts by ClickWir · · Score: 1, Interesting

    Are there parallel boot scripts made for other distro's? Fedora or Red Hat or Slackware etc....

    1. Re:Parallel boot scripts by Chyeld · · Score: 3, Interesting
      One. Big one comes to mind.

      Don't know about the rest.

    2. Re:Parallel boot scripts by chegosaurus · · Score: 3, Interesting

      They aren't exactly parallel boot scripts. It's a part of something called the Service Management Facility. You write XML manifests describing how services should be started, stopped, restarted, refreshed, and what the SMF should do in the event of failure events. It intruduces the concept of dependencies between services, and makes a lot of things more coherent and logical. It also means you have to learn a lot of new stuff.

      The SMF has a concept of milestones, which groups of scripts "belong" to. This is not unlike the principle of run levels, and when moving between milestones the SMF can fire off a whole bunch of services in parallel. It usually does this through scripts akin to the old init scripts, but doesn't have to.

      That's not a very good description, but it might give someone who can't be bothered to RTFM some idea of one of the big new features.

      Solaris 10 is great. IMHO there's no Unix (or clone) to touch it. That's just my opinion, and I CAN NOT be bothered to argue about it, so don't start!

  5. I'm unfamiliar by udderly · · Score: 3, Interesting

    Since I'm mostly unfamiliar with Solaris, what are the main advantages it has over Linux, BSD and Windows? Just curious.

    1. Re:I'm unfamiliar by flaming-opus · · Score: 2, Interesting

      you just said mdb = great. Now I know you're just making it up. Mdb is just about useless when the core file is generated on a system other than the one you're debugging with. (always the case if the binary crashes at a customer site, rather than the test-lab) We just went through a lot of effort to convert from using sun CC to compiling with gcc, not because gcc produces better code, but so we could get the right symbols for using gdb.

      mdb is the biggest pain in the world; gdb isn't perfect, but it's a lot simpler than mdb.

    2. Re:I'm unfamiliar by ahl_at_sun · · Score: 5, Interesting

      Yes! That was true, but not as of Solaris 10. The reason core files needed to be on the same machine that produced them was because they didn't include all the necessary information. In particular, they didn't include read-only data. Their genesis was around debugging on a given machine and in that case, dumping the read-only sections is kind of pointless. This was a frustration that affected every application developer who cared about post-mortem analysis; we in Solaris really care about debugging from first failure.

      In Solaris 10, I did some work to make the content of core files adjustable and added text (aka code) to the default. Now when you get a core file, you can debug it on any other system regardless of the patch level, libraries installed or the version of your application that was running. Using coreadm(1M) you can adjust the content to, say, add the symbol table to the core dump or omit the gigantic ISM segment that you don't care about for.

      So, yes, mdb(1) had some limitations in the past -- we've tried to address them in Solaris 10. If you have other issues preventing you from using mdb(1), post a comment on the OpenSolaris site.

      I thought I was going to have to find a shill to ask that question... "Sir, we've never met before, have we?"

  6. Re:Solaris can't compete by AKAImBatman · · Score: 2, Interesting

    Come on... seriously... what's more cuter than a Penguin or a Daemon?

    A Sun with a smiley face?

  7. The real question is does it run on Xen? by WindBourne · · Score: 2, Interesting

    If it runs on Xen, then it can run in parellel with Linux. That would be a good way for code to move one way or another.

    --
    I prefer the "u" in honour as it seems to be missing these days.
  8. SMF vs InitNG? by yerdaddie · · Score: 3, Interesting

    I'm curious about how the SMF boot parallelization code stacks up against the InitNG project, which does the same for Linux. Anyone had experience with both?

  9. Sun Compiler License by Noksagt · · Score: 2, Interesting

    When will the Sun compiler be released under the CDDL? Currently, Sun Studio is under a different license.

  10. Re:Finally! by elmegil · · Score: 4, Interesting
    rc.d? I see those on my Solaris system too. Don't you mean "rc.boot" and "rc.local"?? The "init.d" method has a master that runs subscripts from rc*.d directories too, so I fail to see how that's any different.

    SMF is going to be a head check for a lot of people who LIKE init.d/rc.d (though backward compatability with that has been retained so far). Myself, I like the fact that it's more robust and faster, and I don't like the fact that it's managed with a handful of different commands depending on what you want to do. And I'm not terribly thrilled that the backend is XML, but you'll have that.

    --
    7 November 2006: The day Americans realized corruption and incompetence weren't addressing 11 September 2001
  11. Re:It is MS and Sun vs. Linux by starfishsystems · · Score: 3, Interesting
    This is simply another trap being laid by Sun and MS against Linux.

    It may be. I know a very bright Microsoft zealot who thinks it is, and couldn't be more delighted at the prospect.

    I don't think it is, myself. For one thing, the internal cultures of these two organizations, and the personalities they attract to senior positions, could not be more different. You just have to look at their past conduct to see this. Microsoft does lay traps, systematically, all the time. Sun is a corporate player too, thus in the game for profit, but its strategies are much more symbiotic in their essential character.

    When Sun puts someone on a standards committee, it's to make the standard more valuable for everyone, on the express theory that it's better to share a growing market than have all of a stagnant one. When Microsoft puts someone on the same committee, it's to "embrace and extend" the standard so as to exclude competition, and the expressed goal is to eliminate all competition.

    Another thing worth remembering is that an organization as big as Sun has substantial internal struggles from time to time. Such was the case with Solaris on X86. The project took off energetically at first, but it was a risky venture which happened to fall out of political favor just at the point when driver support was becoming most critical. The result was not a strategic withdrawl, it was a conspicuous fumble which cost Sun a lot of internal morale, hurt its reputation, and lost it a golden opportunity whose extent has only become more apparent in recent years.

    So yes, it could all happen again, but not because of some nefarious strategy on the part of Sun Microsystems. Sun does not have a history of executing that way.

    --
    Parity: What to do when the weekend comes.
  12. Re:It is MS and Sun vs. Linux by justins · · Score: 4, Interesting
    What is funny is how little ppl seem to remember from just 7 years ago. Sun actually ported to X86 once before AND "opened" their source code. Then when they thought that things were going well, they dropped it. If Sun ever feels like things are going in their favor, it is almost certain that they will do it again.

    I won't be the only one, but I just thought I'd point out that the license they are using this time around is quite different, and they literally cannot take away your right to use the code once you've got it. You might read the (OSI-approved) license before spouting off, although I know that is asking a lot.

    http://www.opensolaris.org/os/licensing/
    --
    Now before I get modded down, I be to remind whoever might read this that what I am saying is FACT. - bogaboga
  13. GOTOs by Anonymous Coward · · Score: 1, Interesting

    > When "GOTO Considered Harmful" was written, it was THE flow-control structure. Only unthinking idiots actually believe it is never Ever EVER to be used.

    I agree with you, and I have always been prepared to use a GOTO when that is the best way to do the job ("best" means a combination of most efficient, most readable, most maintainable, most flexible, and so on).

    Now it happens that in my 25 years working as a programmer, I have never used a GOTO. But I'm still open to the idea.

    I have seen other people use GOTOs where it didn't offend me, even though I would have done it differently. I have, for example, seen people use GOTO where I would use a SELECT.

    Perhaps the most common place where the use of a GOTO seems inevitable is to jump down to some clean-up code when doing an error-return from the middle of a function. The odd thing is, though, that I never seem to get myself into that situation, because I never seem to have to do any clean up before exiting my code. Maybe I should study why that is, one day. I suspect that it has something to do with concepts like read-ahead, and late-binding, that many programmers never quite seem to grasp.

    But I digress. The point is that I have never rejected the use of GOTOs. In fact, I have written the programming standards for more than one project, and, while those standards have stated that the use of GOTOs must be justified, they have never forbidden it.

  14. Re:It is MS and Sun vs. Linux by WindBourne · · Score: 2, Interesting

    They are not as different as you think. I have worked at IBM and HP and have seen first-hand how Sun does things. Most of the traps that they have laid in the past have been in sales for other companies (IBM/HP being just 2 of many ).

    As it is, McNeally's collaboration with MS makes me very edgy. Consider how much McNeally hates Gates and MS. It does not make sense for them to work together.

    I have some friends who work for Sun and some others that work for MS (one who is on the linux tiger team - when he could talk that was interesting info ). One of my poker buddies is one of Sun's kernel guy. When I listen to him, then Sun is above board and simply competing. But every time we get into a discussion about Sun vs. the industry, he has been 100% wrong. Every time. Best example was the Solaris x86 release. Once Sun thought they were doing great, then they cut the project. But of course, a developer is not privy to sales and management choices.

    One of the MS guys claims that this is a long term trap. In particular, both MS's and Sun's license allows the use of the patents in the files (not code) for the system use. If anybody "borrows" the code, then they are no longer protected. Both companies are supposedly hopeful that the Linux world will pick up from either (interestingly, MS no longer thinks that it will come from their stuff, so Shared source will probably die or be severely limited). I no longer code on Solaris just due to my not trusting Sun's motives. Sad, because like any Unix, I like it.

    --
    I prefer the "u" in honour as it seems to be missing these days.
  15. Larry McVoy did NOT design Teamware by NatteringNabob · · Score: 2, Interesting

    Larry McVoy designed a prototype called 'NSE Lite' which was based on concepts developed by Eric Schmidt and Bunker Lampson which were incorporated into NSE which was built by a host of people including, but not limited to, Jon Fieber, Marty Honda, Ethan Adams, Terry Miller, David Hendricks, and Jill Foley. Larry McVoy had absolutely nothig to do with NSE or the core concepts of copy-modify-merge except for being an unhappy NSE customer. Glenn Skinner is listed as the patent author for 'smoosh' which is the central technology to both NSE-lite and Teamware. Larry claims that he is co-inventor. I don't know, I was in the NSE group, Larry was in the OS group at the time. Teamware itself was designed and implemented by Ethan Adams, Terry Miller, Jill Foley, Mark Sabiers, Lewie Knapp, Josh Sirota and Mitchell Nguyen. Larry's primary contribution was to complain a lot. Larry is a bright guy, but he didn't design Teamware anymore than Bill Joy designed Unix. He deserves a tremendous amount of credit for sucessfully productizing the technologies invented by the NSE team (and a lot of others) something that Sun, with substantially more resources, was unable to do, but it is an extreme stretch to call Larry the designer of Teamware (even though if Larry thinks so).

  16. Re:It is MS and Sun vs. Linux by eviltypeguy · · Score: 2, Interesting

    One of the MS guys claims that this is a long term trap. In particular, both MS's and Sun's license allows the use of the patents in the files (not code) for the system use. If anybody "borrows" the code, then they are no longer protected. Both companies are supposedly hopeful that the Linux world will pick up from either (interestingly, MS no longer thinks that it will come from their stuff, so Shared source will probably die or be severely limited). I no longer code on Solaris just due to my not trusting Sun's motives. Sad, because like any Unix, I like it.

    Also incorrect. If someone "borrows" the code, as long as they comply with the terms of the CDDDL, they have the right to any patents that were granted by that license. Which in this case are any patents that SUN owns.