Linked by Eugenia Loli on Mon 19th Dec 2005 02:58 UTC, submitted by tpenta
Linux Adam Leventhal (one of the DTrace developers) was in volved in making DTrace work for BrandZ. He's written a blog entry on using this combination to have a look at the "top issue" (why is it that whenever you run top, the top process is top?). The blog entry shows how using DTrace and OpenSolaris (the only way that you can currently d BrandZ), can be of benefit to Linux.
Order by: Score:
the top process is top?
by Anonymous on Mon 19th Dec 2005 05:02 UTC
Anonymous
Member since:
---

"why is it that whenever you run top, the top process is top?" [sic!]
Maybe it is a Solaris thing, because this does not happen under Ubuntu.

Reply Score: 0

RE: the top process is top?
by bcantrill on Mon 19th Dec 2005 05:25 UTC in reply to "the top process is top?"
bcantrill Member since:
2005-09-16

I find it surprising that, since Adam's blog entry, some have taken exception to my description of the so-called "top problem" -- that when running top, the top process is top itself. (You aren't the first to have disagreed with this, nor the first to attribute it to Solaris.) I find it surprising because I have talked about the "top problem" to hundreds of audiences -- many of them with a strong Linux bias -- and when I ask "when you run top, what's the top process?", audiences often practically shout in unison: "top!" Or, as one admin told me (and as I have been known to recount), when they run top they see that the top seven processes are seven different top processes from seven different admins logged into the box trying to figure out why the server is so slow. (!)

So I suspect that those for whom the top process isn't top are simply not looking at a moderately loaded system. Once you get hundreds of users and thousands of processes, top consumes significant resources -- be it on Solaris, Ubuntu or otherwise. Indeed, it was because of the poor load scalability of top that we (or rather, Andrei Dorofeev) wrote and shipped prstat(1) back in Solaris 8. And fortunately, we haven't yet heard of anyone describing the "prstat problem"... ;)

Reply Score: 4

RE[2]: the top process is top?
by chekr on Mon 19th Dec 2005 05:46 UTC in reply to "RE: the top process is top?"
chekr Member since:
2005-11-05

And i'll vouch a second time to that ;)

Reply Score: 1

RE[2]: the top process is top?
by manmist on Mon 19th Dec 2005 12:39 UTC in reply to "RE: the top process is top?"
manmist Member since:
2005-12-18

The trivial solution to the 'issue' is to run top -C

Reply Score: 1

RE[3]: the top process is top?
by SEJeff on Mon 19th Dec 2005 14:24 UTC in reply to "RE[2]: the top process is top?"
SEJeff Member since:
2005-11-05

I think you mean top -c, -C is a nonexistant flag for top on my SLES box or HP-UX Unix boxes here at work

Reply Score: 1

The methodology used is more interesting
by tpenta on Mon 19th Dec 2005 05:21 UTC
tpenta
Member since:
2005-07-07

The point being made is that it is now possible to look at Linux user space code using DTrace using this methodology.

Sure, it's quite possible that Solaris' munmap takes longer.

The thing is though, you can now look for performance bottlenecks in application code that only runs in Linux operating environments with a tool that would be otherwise unavailable.

alan.

Reply Score: 2

v RE: the top process is top?
by tpenta on Mon 19th Dec 2005 05:44 UTC
Red Hat on Solaris?
by Anonymous on Mon 19th Dec 2005 06:42 UTC
Anonymous
Member since:
---

Does this mean I can run Red Hat binaries on Solaris now? Do I have to pay for the Solaris license?

Reply Score: 0

RE: Red Hat on Solaris?
by aleventhal on Mon 19th Dec 2005 07:51 UTC in reply to "Red Hat on Solaris?"
aleventhal Member since:
2005-12-14

Yes, you can run Red Hat binaries. No, you don't have to pay for a license. <a href="http://www.opensolaris.org/os/community/brandz/">BrandZ</a>... lets you run Red Hat binaries on OpenSolaris, and Solaris itself has been free for about a year now and open source since June -- no need to pay for a license

Reply Score: 3

RE: Red Hat on Solaris?
by manmist on Mon 19th Dec 2005 12:40 UTC in reply to "Red Hat on Solaris?"
manmist Member since:
2005-12-18

"Does this mean I can run Red Hat binaries on Solaris now?"

If you mean RHEL binaries, then yes you have to pay since it only comes with a subscription. If you mean binaries that run on RHEL then maybe not

Reply Score: 1

considering that..
by Anonymous on Mon 19th Dec 2005 07:02 UTC
Anonymous
Member since:
---

The observer changes the observered.

http://sourceware.org/ml/systemtap/2005-q4/msg00437.html

In this is case, the observer is dtrace hooked into the the solaris kernel and an emulated linux environment.

How can Dtrace be used to measure linux system call times when the system calls aren't executed in an actual linux environment?

The profiler imparts some of it's own effect on the system, so it's wise not to change even more variables (ie, the entire kernel) when profiling.

Reply Score: 0

RE: considering that..
by aleventhal on Mon 19th Dec 2005 08:06 UTC in reply to "considering that.."
aleventhal Member since:
2005-12-14

It's certainly possible that changing the system can skew the results, but that doesn't necessarily invalidate the conclusions. Ideally, one would be able to perform the analysis on a native system, but without examples of how one would examine user-land code it's not clear how useful that tool you referenced would be. Was any attempt made to drive from the specific results to a root cause or was the exercise just to see if you could reproduce my results?

I suppose I should have more carefully documented my environment (hardware details, software load and version, top version and invocation details) so that it would be easier to duplicate my results, but it seems a bit hasty to assert the invalidity of my results because of an inability to reproduce them in what may have been a completely different environment.

The point was, after all, that BrandZ makes possible a sort of analysis previously unavailable for Linux applications.

Reply Score: 3

Top
by Anonymous on Mon 19th Dec 2005 08:50 UTC
Anonymous
Member since:
---

Top sometimes is on top in linux, however the real problem i have is on the mac... Freaks me out..

PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE
13798 top 11.7% 0:04.40 1 21 22 480K 428K 936K 27.0M

Reply Score: 0

RE: Top
by chekr on Tue 20th Dec 2005 00:24 UTC in reply to "Top"
chekr Member since:
2005-11-05

This off an iMac G5 with 10.4.3

2587 top 21.4% 0:09.59 1 18 22 508K 312K 2.53M 27.0M

The 21.4% is CPU Util.

System is fairly idle too

:(

poor old top...

Reply Score: 1

Good news.
by SEJeff on Mon 19th Dec 2005 14:20 UTC
SEJeff
Member since:
2005-11-05

This is actually still a win for the Open Source community. Even though a Linux binary emulated on Solaris will not run completely native, dtrace will still allow software engineers to find bottlenecks in code.

Until systemtap ( http://sourceware.org/systemtap/ ) is featurecomplete and integrated into the mainline kernel, something like this is very useful

Reply Score: 1

RE: Good news.
by Anonymous on Mon 19th Dec 2005 16:12 UTC in reply to "Good news."
Anonymous Member since:
---

"Until systemtap ( http://sourceware.org/systemtap/ ) is featurecomplete and integrated into the mainline kernel, something like this is very useful"

System Tap is already part of RHEL 4 U2 release and is also in Fedora development tree and FC 5 test 1 release.

http://www.redhat.com/magazine/011sep05/features/systemtap/

Reply Score: 0

Adam will present on this at SCALE 4x
by Anonymous on Mon 19th Dec 2005 15:37 UTC
Anonymous
Member since:
---

Adam will be presenting on this at SCALE 4x in Los Angeles on Feb 11-12, 2006. http://www.socallinuxexpo.org/speakers/speakers_leventhal.php

Reply Score: 0

RE: Good news.
by JonAnderson on Tue 20th Dec 2005 05:34 UTC
JonAnderson
Member since:
2005-07-06


SystemTap is still under development and evolving—do not use it on production systems and expect that things will change. However, SystemTap in its current state can still be a useful tool for developers.

Reply Score: 1

RE[2]: Good news.
by manmist on Tue 20th Dec 2005 09:19 UTC in reply to "RE: Good news."
manmist Member since:
2005-12-18

"SystemTap is still under development and evolving—do not use it on production systems and expect that things will change. However, SystemTap in its current state can still be a useful tool for developers. "

Article is old. Software evolves. Whats your point?

Reply Score: 1

RE[3]: Good news.
by Anonymous on Tue 20th Dec 2005 10:33 UTC in reply to "RE[2]: Good news."
Anonymous Member since:
---

Article is old. Software evolves. Whats your point?

His point was that his choice of OS is better than yours. Apparently that quote was the best he could come up with in the way of supporting evidence.

Reply Score: 0

RE[4]: Good news.
by manmist on Tue 20th Dec 2005 11:03 UTC in reply to "RE[3]: Good news."
manmist Member since:
2005-12-18

If a sun employee cannot use better than outdated quotes in an article to support his "choice" of an operating system.... *shrug*. code in Linux is not tied to whims and fantasies of any particular vendor and a result moves forward faster. Hate Debian go SUSE. Hate SUSE go Fedora. Hate sun and you are stuck with no support for open solaris. The GPL license enables a code commons which CDDL effectively reduces for its own loss by being more lax. While this was done for Sun to stick away its own encumbered code it couldnt open source it has to live with the effects until it realises the drastic effect of the underlying licensing framework which is unfortunate IMO.

Sun did a great job with providing accessibility support on GNOME by working as a contributor along with the community and try and provide support now for its ABI specifications. If it had choosen to work in the same manner with Linux or just try to enable sharing across Linux and within the "open" solaris community it has a fabalous chance of thriving well by immediately getting the entirely OSS community on board. The walls between these two will have to live if and until GPL 3 provides a compatible patent claus.

Reply Score: 1

RE[5]: Good news.
by Anonymous on Tue 20th Dec 2005 16:53 UTC in reply to "RE[4]: Good news."
Anonymous Member since:
---

You are quite naive about open source software in large scale enterprises.

Hate Red Hat? Feeling fleeced by their licensing and proprietary code?

OOOPS, can't move, because my ISV's only support Red Hat! You are stuck, independent of GPL licenses.

At least with Sun, I can go to any number of enterprise vendors to get support - HP, IBM, EDS or Sun.

Reply Score: 0

RE[4]: Good news.
by libray on Tue 20th Dec 2005 15:39 UTC in reply to "RE[3]: Good news."
libray Member since:
2005-08-27

That article was very easy to find. Its the very first link under the "Documentation" heading from http://sourceware.org/systemtap. Have any evidence to refute the old article? Good. Tell it to the systemtap maintainers.

Edited 2005-12-20 15:40

Reply Score: 1