Re: Very high load average - nothing appears to use much CPU time



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
.



Relevant Pages

  • Re: Can some AIX machines build both 32 and 64 bit binaries?
    ... Sage runs on Linux and OS X, and just about on 32-bit Solaris. ... Would there be any machines that run AIX that would be capable of building both 32 and 64-bit binaries, and therefore an option to select 32 or 64 bits would be desirable? ... In Sage, there is an environment variable SAGE64 which will force a 64-bit build on a platform like Solaris, where the default is to build in 32-bit mode. ... the same question if the native compilers are used. ...
    (comp.unix.aix)
  • Re: Is there any interest in maths software on AIX ?
    ... I am wondering if there is any interest in the AIX community of using maths software on AIX? ... Currently Sage runs on Linux, ... Since I've been working on the Solaris port, I've got rid of a lot of the GNU-isms. ...
    (comp.unix.aix)
  • Re: Another computer algebra system : smib
    ... I do not know if you ever see it, but there was a very good book written by Andrew Tanenbau about Unix, which contained the full source code of a small unix operating system called Minix. ... I have not read any Sage python source code. ... I have offered you access to Sun hardware running Solaris if you want to test on Solaris. ... 'Experts Exchange' take questions posted on the web and try to find ...
    (sci.math.symbolic)
  • Re: Which is the best CAS
    ... and are helping in the Solaris port) or python (I know it's a well respected language, ... Or did something happen in the 8 hours since your previous message, so you are no longer ignorant of Sage or Python? ... I'm just trying to find why libpflll is not building properly on Solaris. ...
    (sci.math.symbolic)
  • Is it safe to copy /usr/ccs/bin/as from old Solaris 10 release to new one?
    ... I'm using a T5240 running Solaris 10 update 4 for some software development - trying to port the maths package Sage to Solaris SPARC. ... I know in general it would not be a good idea to mix things, but I can't actually see it being an issue with an assembler. ... I did this as a quick test, to see if it resolved an issue where things were building properly on my Blade 2000, but not on the T5240. ...
    (comp.unix.solaris)