Re: Very high load average - nothing appears to use much CPU time
- From: David Kirkby <drkirkby@xxxxxxxxx>
- Date: Tue, 25 Aug 2009 21:51:32 -0700 (PDT)
On Aug 25, 9:34 pm, rob_AT_badeend_DOT...@xxxxxxxxxxxxxxx (Rob
Kouwenberg) wrote:
Dave <f...@xxxxxxx> wrote:
I suspect there is something going on in Sage which some linux user
added, which is screwing it up on Solaris.
Pfft a wild guess: if you're writing gnu software in C, do note that
mallocs and alike might perform differently on platforms. Some just
reserve the memory, others zero all the requested memory space
(performance hit). Testing and reading the source code might find the
culprit.
Much of Sage is written in python, as python is used to glue lots of
other bits of software together. So of that software is written in C,
others in C++, Fortran, LISP - and probably others too.
Locks might also perform differently. Does Sage use I/O with file
handles, resource starvation possibilities ? Dependant on OS and tuning,
devices, ttys, etc might be used. If I'm not mistaken solaris has a
default max of 256 ptys.
I now know what the problem was. Sage was calling 'top' to find the
memory usage by a process. That was failing as top was not in my path.
The code then repeatidly tried calling top, so was in an infinite
loop.
If you really want to do some reading, find a copy of 'the magic garden
explained' for solarisms, read some mckusick books for BSD'isms and read
Stevens books for network programming. Sun also has a high performance
and troubleshooting courses (ST350 is a fun one).
Good luck !
PS do port to OSX ;)
Why would we bother porting Sage to OS X? It already runs on OS X. So
give it a try if you want. Sage runs on
* Linux
* OS X
* Solaris (but difficult to build, only 32-bit and a bit buggy)
There are ports in progress for Windows (sponsored by Microsoft) and
FreeBSD. My attempts to drum up some interest from AIX and HP-UX
people have not had much response. I might one day try the latter two
systems, as I do have computers at home which run AIX, tru64, HP-UX
and IRIX. But the IBM RS6000 which runs AIX uses too much power to
keep it on for long periods. It's also too slow to be used as a
platform for development for somethign as large as Sage. I suspect it
would take several days to compile the source code.
Dave
.
- Follow-Ups:
- Re: Very high load average - nothing appears to use much CPU time
- From: Rob Kouwenberg
- Re: Very high load average - nothing appears to use much CPU time
- References:
- Very high load average - nothing appears to use much CPU time
- From: Dave
- Re: Very high load average - nothing appears to use much CPU time
- From: Greg Andrews
- Re: Very high load average - nothing appears to use much CPU time
- From: Dave
- Re: Very high load average - nothing appears to use much CPU time
- From: Bruce Esquibel
- Re: Very high load average - nothing appears to use much CPU time
- From: Dave
- Re: Very high load average - nothing appears to use much CPU time
- From: Bruce Esquibel
- Re: Very high load average - nothing appears to use much CPU time
- From: Dave
- Re: Very high load average - nothing appears to use much CPU time
- From: Rob Kouwenberg
- Very high load average - nothing appears to use much CPU time
- Prev by Date: Re: sysconf incorrectly reports number of processors supported.
- Next by Date: ****Language Institutes *******
- Previous by thread: Re: Very high load average - nothing appears to use much CPU time
- Next by thread: Re: Very high load average - nothing appears to use much CPU time
- Index(es):
Relevant Pages
|