Xlib_shm crashes and uses lots of CPU

A place for discussion of topics that are not specific to ZoneMinder. This could include Linux, Video4Linux, CCTV cameras or any other topic.
Post Reply
craver84
Posts: 96
Joined: Sun Aug 31, 2008 7:35 am

Xlib_shm crashes and uses lots of CPU

Post 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]
craver84
Posts: 96
Joined: Sun Aug 31, 2008 7:35 am

Post 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]
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post 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.
Post Reply