Slashdot Mirror


Sun Opens OpenSolaris.Org

An anonymous reader writes "Sun has launched the first version of opensolaris.org, featuring a small initial drop of source code. The idea is to make a display of good faith to the Solaris community while the rest of the source code due diligence is completed. The source code for Dynamic Tracing (DTrace) is available for download under the terms of the newly OSI-approved CDDL license."

24 of 357 comments (clear)

  1. Re:Hot-Swappable by Anonymous Coward · · Score: 2, Informative

    that's not so much software as it is hardware. and merge the two? are you a moron?

  2. Re:Dynamic Tracing by nbert · · Score: 4, Informative
    From the link provided in the article:
    DTrace provides a powerful infrastructure to permit administrators, developers, and service personnel to concisely answer arbitrary questions about the behavior of the operating system and user programs.
    So the answer to your question is: no, it's not useful for a "normal" user.
  3. Re:Dynamic Tracing by Anonymous Coward · · Score: 2, Informative

    Welcome to Dynamic Tracing in the Solaris Operating System! If you have ever wanted to understand the behavior of your system, DTrace is the tool for you. DTrace is a comprehensive dynamic tracing facility that is built into Solaris that can be used by administrators and developers on live production systems to examine the behavior of both user programs and of the operating system itself. DTrace enables you to explore your system to understand how it works, track down performance problems across many layers of software, or locate the cause of aberrant behavior. As you'll see, DTrace lets you create your own custom programs to dynamically instrument the system and provide immediate, concise answers to arbitrary questions you can formulate using the DTrace D programming language. The first section of this chapter provides a quick introduction to DTrace and shows you how to write your very first D program. The rest of the chapter introduces the complete set of rules for programming in D as well as tips and techniques for performing in-depth analysis of your system. You can share your DTrace experiences and scripts with the rest of the DTrace community on the web at http://www.sun.com/bigadmin/content/dtrace/. All of the example scripts presented in this guide can be found on your Solaris system in the directory /usr/demo/dtrace.

    DTrace helps you understand a software system by enabling you to dynamically modify the operating system kernel and user processes to record additional data that you specify at locations of interest, called probes. A probe is a location or activity to which DTrace can bind a request to perform a set of actions, like recording a stack trace, a timestamp, or the argument to a function. Probes are like programmable sensors scattered all over your Solaris system in interesting places. If you want to figure out what's going on, you use DTrace to program the appropriate sensors to record the information that is of interest to you. Then, as each probe fires, DTrace gathers the data from your probes and reports it back to you. If you don't specify any actions for a probe, DTrace will just take note of each time the probe fires.

    http://docs.sun.com/app/docs/doc/817-6223

  4. 1,600 patents by SunFan · · Score: 2, Informative


    Their press release at sun.com said OpenSolaris via the CDDL will make 1,600 patents available to open source.

    --
    -- Microsoft is the most expensive commodity operating system and office suite vendor in the marketplace.
  5. Re:Dynamic Tracing by Anonymous Coward · · Score: 3, Informative
    I would guess not. Most of those weird-named technologies are only useful on multi-processor systems and servers where CPU cycles are really an issue.

    False. DTrace can be used to analyze the operation of any system that runs Solaris 10, from 1 CPU to 100+. It can tell you useful information about a single thread's interaction with the system or 1000 threads' interactions with each other. It can even tell you about things that have nothing to do with either the number of CPUs or the number of threads.

    One of the stories Bryan likes to tell has to do with fixing a performance bug in a piece of desktop software that has nothing whatever to do with servers at all.

    It's useful.

  6. Re:Dynamic Tracing by illumin8 · · Score: 4, Informative
    The best place to go for this information is the well documented Dtrace FAQs.

    From it, I shamelessly lifted the following brief synopsis:

    Q. What is DTrace?

    A. DTrace is a new facility in the Solaris Operating System that adds dynamic instrumentation and tracing to the kernel and can be used on production systems. It's a power tool that can be used by both the entry-level and experienced system administrators to diagnose and resolve problems in hours or minutes that might have previously taken days.


    Q. What are the benefits of DTrace?

    A. Faster resolution of performance problems for system administrators
    Quicker time to market and higher quality product for developers
    Greater utilization of existing system resources for IT managers


    Q. What are the key highlights of DTrace?

    A. Comprehensive coverage: over 30,000 instrumentation points in even the smallest system; integrated access to both application and kernel data
    Always available: built-in with no need to reboot or otherwise reconfigure system, disable or alter applications, or disable user/client access
    Safe: cannot panic system and has no impact on the system when not being used
    Enable only the trace points you need
    Analyzes data in real time on production systems
    Extensible as new analysis routines can be built for re-use using the D programming language


    Q. What is the performance overhead of DTrace?

    A. When not in use, DTrace has no impact on system performance or other behavior. When being used, DTrace overhead is dependent on the number of probe points being observed.


    Q. How does Sun's DTrace compare with competitive offerings?

    A. DTrace is the only dynamic tracing tool available that eliminates the need for collecting and processing event data. With DTrace a system administrator can query the system experiencing the problem in real time, while in production, and get accurate and precise information regarding the source of the problem. No log files are generated, and there is no data to analyze. This reduces the time it takes to identify and resolve problems by orders of magnitude! Literally from days to minutes.

    Containers are based on software. They offer logical separation with the same OS in each Container. Containers offer enormous scalabilty: while there is no hard coded limit, upto 4000 per OS image are available and is beyond normal requirements today.


    Q. Can DTrace be used without knowing the D language?

    A. You can leverage scripts developed by others (such as those available on the Sun BigAdmin portal). However, it is not difficult to learn D which is very similar to the ANSI C programming language with a special set of functions and variables to make tracing easy.
    --
    "When the president does it, that means it's not illegal." - Richard M. Nixon
  7. Re:Thank you to the folks at Sun... by Wesley+Felter · · Score: 4, Informative

    The real question is whether Sun's license is compatible with the GPL.

    That's not a question; it is not compatible.

  8. Re:webpage running on linux? by dme · · Score: 4, Informative

    Check the machine itself. It says:

    Server: Sun-ONE-Web-Server/6.1

  9. Re:webpage running on linux? by Anonymous Coward · · Score: 2, Informative

    $ wget -S --spider opensolaris.org
    --00:32:30-- http://opensolaris.org/
    => `index.html'
    Resolving opensolaris.org... done.
    Connecting to opensolaris.org[209.249.116.220]:80... connected.
    HTTP request sent, awaiting response...
    1 HTTP/1.1 200 OK
    2 Server: Sun-ONE-Web-Server/6.1
    3 Date: Tue, 25 Jan 2005 23:32:31 GMT
    4 Content-length: 12972
    5 Content-type: text/html
    6 Last-modified: Tue, 25 Jan 2005 20:46:16 GMT
    7 Accept-ranges: bytes
    8 Connection: keep-alive
    200 OK

  10. Blogs on souce code and DTrace by ChrisRijk · · Score: 4, Informative

    Bryan Cantrill, one of the DTrace developers wrote this blog entry as a general introduction to the source code layout and also to DTrace. This post by Adam Leventhal goes into some more detail.

    82678 lines of C were made public. No registration, no click through license before download. The OpenSolaris FAQ is pretty good btw, and there's also a roadmap page.

    According to this blog (the entry dated 15:43), those in the pilot program (more than 100 developers out side of Sun) have today gotten access to the entire Solaris source base, and have already built their own version - screen shot.

  11. Re:webpage running on linux? by prockcore · · Score: 2, Informative

    netcraft is often wrong.

    nmap -O reports:
    OS details: Sun Solaris 9 with TCP_STRONG_ISS set to 2

  12. Re:Dynamic Tracing by Anonymous Coward · · Score: 1, Informative

    Yep, just completed a 1 day overview course on it on Monday. I work for Sun - although not in any dept that will find much use for DTrace, we are currently involved in a S10 training program. So I don't pretend to be an expert in DTrace or kernel debugging, I played with it for 3-4 hours on an Ultra 10 :p

    DTrace uses a scripting/manipulating language similar in structure to awk which allows certain 'probes' embedded into kernel modules to be activated and read during the operation of your system.
    The S10 build we were using had over 37,000 probes spread across all genunix/unix and related modules whcih can be used to look at things like I/O throughput. When the probes are 'fired' (switched on) they sit there returning information on the process to which the probe is embedded, showing for example what is initiating disk access or performing certain system calls.

    There is also a pretty powerfull data handling and querying system which allows quick and fast interpretation of the probe results.

    Apparently if used properly (i.e. a few dozen probes are fired and read) the is no noticable drop in system performance as the probes as 'passive'. If you try and fire all 37,000 probes at once ... goodnight :|

  13. Re:Hot-Swappable by thule · · Score: 2, Informative

    I thought Linux already had hot swap CPU support. It just depends on the right hardware.

  14. Re:Really need... by IvanR · · Score: 2, Informative

    The CDDL is based off of the Mozilla license.

    There's a FAQ on the new OpenSolaris site about licensing here:
    http://www.opensolaris.org/faq/licensing_faq.html

    Along with a summary of the changes from the Mozilla license:
    http://www.sun.com/cddl/CDDL_why_summary.html

    And a redlined diff of what exactly has changed between the MPL and the CDDL (in a pdf file):
    http://www.sun.com/cddl/CDDL_MPL_redline.pdf

  15. Re:Sun Compiler and Tools by Darren.Moffat · · Score: 4, Informative

    You can (and infact Sun does) compile Solaris with gcc. Our production AMD64 kernel and a large number of the AMD64 libraries are compiled with gcc . However the makefile assume the Sun C compiler but the build environment has a wrapper around gcc to make it look like the Sun compiler.

  16. Re:Thank you to the folks at Sun... by hubertf · · Score: 2, Informative

    > The real question is whether Sun's license is compatible with the GPL.

    From my understanding it is similar (identical) in spirit, but not compatible, as each license enforces derived works under its own license, with no mixing of licenses allowed.

    Points where GPL and CDDL seem similar in spirit:
    * All source (changed and unchanged) must remain
    available under the license (GPL#2, CDDL#3.1)
    * Any modification must happen under the original
    license (GPL#2b, CDDL #3.2).

    My personal concern is that Sun who used BSD code for its fine operating system didn't make its new license compatible with the BSD license. Pity!

    - Hubert

  17. Re:Thank you to the folks at Sun... by Anonymous Coward · · Score: 1, Informative

    It's encumbered with Patents and a license which makes it non-free software.

    Non-free? I doubt it. GPL-incompatible does not equal non-free; if you go to gnu.org and read the fucking list of the licenses that RMS himself considers Free Software licenses, you'll notice that about half of them are listed as being incompatible with the GPL.

    The Sun CDDL is not yet listed there. It has, however, been approved by the OSI, meaning that this is OSI-Certified Open Source(tm). And since the difference between "open source" and "free software" is a matter of philosophy rather than law, that basically means it counts as free software.

  18. BEWARE THIS IS SOURCE POISON by shaitand · · Score: 2, Informative

    Sun reserves the right to enforce the patents if you use code under a different license.

    Although the terms of the license would allow you to fork under the gpl or contribute to a gpl'd project sun could still nail you with the patents.

  19. Re:Sun just stop! by dmaxwell · · Score: 2, Informative

    They already make better products. Better than Linux, at any rate.

    There are various types of better. If I have to deploy an e-commerce site that gets thousands of hits a day then perhaps Sun products are better. For anything that isn't scaled on that level the value proposition favors Linux.

  20. Re:Thank you to the folks at Sun... by illumin8 · · Score: 3, Informative

    I was kind of under the impression that this move was masterminded by Microsoft (via the multi-billion dollar deal they had with Sun) as an attempt to fragment the Open Source community. I could be very wrong, but it seems to make the most sense that way. The real question is whether Sun's license is compatible with the GPL.

    Microsoft doesn't have any control over Sun at all. You might have thought this because MS paid Sun $2 billion as part of a settlement agreement, but really, they did this because they had to and because Sun was willing to do them a favor and let them off easy. If Sun had wanted to keep fighting that fight forever, they could have, and probably would have ended up with more cash, although they might have gone out of business before any damages were won.

    Believe me, folks at Sun dislike MS business tactics as much as you do.

    --
    "When the president does it, that means it's not illegal." - Richard M. Nixon
  21. Re:Thank you to the folks at Sun... by Octorian · · Score: 2, Informative

    I'm not really sure how difficult it would be to figure out Solaris kernel code. (ok, maybe for Linux developers, but maybe not BSD ones) A couple years ago, I did some investigation into device driver code. One thing I found was that Solaris and FreeBSD device drivers looked VERY similar in structure. The main differences were the names of the callable kernel functions (names, more than functionality), and that Solaris strongly pushed the philosophy of using mutex locks for all data structures.

  22. Re:Thank you to the folks at Sun... by Anonymous Coward · · Score: 1, Informative
    Sun already once opened Solaris and then closed it ONCE they thought they had the customers locked in.

    This is simply false. If you're referring to the Foundation Source program offered in Solaris 8, there's a FAQ entry that specifically addresses how OpenSolaris is different. In fact Foundation Source was never open source, it never had an open source license, and it was never intended as a community development project. Lockin had nothing to do with it. It wasn't open source, period. See also the FAQ about Sun taking the code away after it's released: they can't. End of discussion.

    Sun has backed SCO with money and buying stocks. More importantly, SCO has some sort of USB code that Sun purchased from them(probably stolen from elsewhere).

    Ignoring for a moment the fact that you've just libeled SCO - not what I'd call advisable - Sun has not stated what was purchased from SCO or why. As tough as it is, you might consider the benefit of the doubt here - has it ever occurred to you that they bought the right to open source some of the code in Solaris?

    Sun has already opened sparc systems (solbourne) and then closed it after solbourne was killing them in sales.

    SPARC has always been open and still is. The specifications are available and you can get a license to make SPARC gear for $99 from SPARC International. Not to mention that Solbourne was over 10 years ago.

    Got any more FUD or lies?

  23. IBM vs. Sun Patent Pledges by augustz · · Score: 3, Informative

    There is a big difference between the IBM and SUN patent pledges.

    IBM listed a broad range of software licenses, importantly including the GPL, which means linux is covered.

    Sun's license so far is limited to Solaris, or at least it looks that way, where they have contributed code under the CDDL. This means if you take a method (or read about a method) that they use in Solaris and apply it elsewhere you can still get slammed.

    Not a black and white issue though, as the discerning reader will note that the GPL has not patent clause at all, so the CDDL is stronger in one sense there. Not sure if Linux is any worse off.

    But it will be interesting to see how Solaris comes out as open source, incredibly it has gotten to this point for those who remember the Sun of the past (and even some of the current ranting). Losing market share is an incredible motivator it seems :) Fun stuff though, and I think pragmatism will win the day if there good stuff is delivered.

  24. Mozilla license is not compatible with GPL.. by Anonymous Coward · · Score: 1, Informative

    For starters the Mozilla license is not compatible with GPL, yet nobody makes silly comments about Firefox not being open enough.

    The license Sun is using is just a variation of the Mozilla license.

    There is more to Open Source than just Linux. The whole point is we now have two serious Open Source server OS competitiors to MS.

    Linux is free as in speech, but the Enterprise distros are not free as in beer. Of course other non-certified distros are free as in beer Fedora, Mandrake, Debian etc.

    Solaris is free as in speech and as in beer.

    Many people seem so blinded by anti-UNIX rage that they don't even notice that Sun has contributed more lines of source code to Open Source than any other company. Virtually their entire software line will run on any OS including Linux. They are totally obsessed with crossplatform compatibility - hence there obsession with Java.