Page 1 of 1

Xlib_shm crashes and uses lots of CPU

Posted: Mon Nov 24, 2008 9:22 am
by craver84
Hi everyone,
I've Ubuntu 8.04 and ZM 1.23 on a P4 3.0Ghz with 1 gb of RAM.

--> first problem:
when I start xlib_shm the CPU usage goes to 80% (the PC is very slow). Is it normal?

Code: Select all

sudo xlib_shm-gl -m1 -m3 -m4 -m6 -k 0x7a6d0000
--> second problem:
I use cron to switch the zm state

Code: Select all

sudo /usr/bin/zmpkg.pl modect
...
sudo /usr/bin/zmpkg.pl monitor
but after changing the state xlib_shm crashes, I must kill the process and restart it.

Is there another way? how can I solve it?
thanks Paolo[/code]

Posted: Mon Nov 24, 2008 10:10 am
by craver84
the CPU usage is not always 80%, at first (when I start the PC) it's 30-35%, after some time (and some state changing) It increses a lot...

before changing state, I need to kill xlib_shm process because it crashes

Code: Select all

sudo killall -v xlib_shm-gl
maybe this isn't the best way, I don't know[/code]

Posted: Mon Nov 24, 2008 3:44 pm
by Lee Sharp
First, which xlib_shm? There are several version out, and I am using the debs for 0.6.3 You might want to look for xlib-shm-gl_0.6.3.venus-2_i386.deb or mercury for and older Ubuntu version. You will need to manually set the shared memory key with those, as they were compiled for 1.22... However, I have seen very low CPU usage from it.

As to the "crash" you are correct. You can change the script, or put it in a wrapper that kills xlib_shm on stop, and starts it on start.