[mcclim-devel] CPU usage > 95% when running McCLIM apps

Robert Strandh strandh at labri.fr
Mon Jan 3 16:47:53 UTC 2005


Paolo Amoroso writes:
 > When I run a McCLIM application, according to `top' CPU usage is
 > constantly above 95% or so, and the KDE System Monitor reports about
 > 50% for CPU 1.  Here is a typical `top' entry when running the CLIM
 > Listener:
 > 
 > top - 09:52:31 up 3 min,  1 user,  load average: 0.37, 0.23, 0.10
 > Tasks:  78 total,   2 running,  76 sleeping,   0 stopped,   0 zombie
 > Cpu(s): 14.3% us, 36.0% sy,  0.0% ni, 49.7% id,  0.0% wa,  0.0% hi,  0.0% si
 > Mem:   2075012k total,   301272k used,  1773740k free,    11244k buffers
 > Swap:  2004420k total,        0k used,  2004420k free,   165556k cached
 > 
 >   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 >  2728 paolo     25   0 1284m  37m  45m S 99.9  1.8   0:18.87 cmucl
 > [...]
 > 
 > When only the CMUCL toplevel is running, it is below 1%.  Why is CPU
 > usage so high with McCLIM applications?  Is it real or some sort of
 > measuring artifact?
 > 
 > I use the latest McCLIM CVS sources with CMUCL Snapshot 2004-12 under
 > Slackware Linux 10.0.  My PC is a 2.8 GHz Pentium IV with 2 GB of RAM.

I think it has to do with CMUCL multi process implementation.  I was
told that if you start the idle loop, then this problem will go away. 

-- 
Robert Strandh

---------------------------------------------------------------------
Greenspun's Tenth Rule of Programming: any sufficiently complicated C
or Fortran program contains an ad hoc informally-specified bug-ridden
slow implementation of half of Common Lisp.
---------------------------------------------------------------------



More information about the mcclim-devel mailing list