[Zope] Re: Unfair Linux Threads And Python Oh My

Peter Sabaini sabaini@niil.at
Wed, 26 Apr 2000 11:10:19 +0200 (CEST)


On Wed, 26 Apr 2000, Chris McDonough wrote:

:Can a few folks with BSD/Solaris/HPUX/whateverotherthanLinux boxes try
:the script that Tony found and see what it does on their machines?

here on an old sun:

> uname -a
SunOS archiv 5.4 Generic_101945-32 sun4m sparc

tonys script prints one star, after a few (5-10) seconds top output
looks like this:

  ----
last pid: 15721;  load averages:  2.37,  1.18,  0.90
10:30:39
91 processes:  87 sleeping, 2 running, 2 on cpu
Cpu states:  0.0% idle, 93.1% user,  6.9% kernel,  0.0% iowait,  0.0%
swap
Memory: 244M real, 528K free, 242M swap, 85M free swap

  PID USERNAME PRI NICE  SIZE   RES STATE   TIME   WCPU    CPU COMMAND
15700 styria    -5    0 2152K 1088K run     2:46 40.09% 31.36% python
15721 styria   -15    0 2160K  924K run     0:25 13.47% 27.95% python
15720 styria    -4    0 2160K 1488K cpu     0:21 11.63% 23.29% python
15713 styria    -7    0 2184K 1284K cpu     0:15  3.80%  3.82% top

 ----

i then had to stop the experiment; we need that machine and it is
overloaded anyway  ;)

on my linux box the test script printed 131 stars (54 in a second
run) then stops with two python threads eating all the cpu (x86 linux,
kernel 2.2.14)

we have some hpux machines here also but getting python w/ threading
to compile there seems a little difficult.

peter.

-- 

_________________________________________________
peter sabaini, mailto: sabaini@niil.at
-------------------------------------------------