1.24.2, Ubuntu 9.10, open zma/zmc processes

Forum for questions and support relating to the 1.24.x releases only.
Locked
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

1.24.2, Ubuntu 9.10, open zma/zmc processes

Post by coke »

I'm trying to do some testing of various things to speed up capture on my machine, which involves shutting down ZM periodically. I've been using " sudo zmpkg.pl stop" yet there often seem to be things left running. It's been about an hour, so none of these should still be recording any events.

Should I be using something other than zmpkg.pl stop, or is this some other problem? According to htop they're actually using CPU. Checked iotop -p#, they seem to be occasionally writing to disk.

Code: Select all

ps -eaf | grep zm
www-data  3190     1  0 10:11 ?        00:00:04 /usr/local/bin/zmc -m 1
www-data  3199     1  0 10:11 ?        00:00:03 /usr/local/bin/zma -m 2
www-data  3209     1  0 10:11 ?        00:00:03 /usr/local/bin/zma -m 3
www-data  3235     1  0 10:11 ?        00:00:06 /usr/local/bin/zmc -m 8
www-data  3360     1  0 10:11 ?        00:00:03 /usr/local/bin/zmc -m 14
www-data  3365     1  0 10:11 ?        00:00:07 /usr/local/bin/zma -m 14
www-data  3392     1  0 10:11 ?        00:00:19 /usr/local/bin/zmc -m 24
www-data  3452     1  0 10:11 ?        00:00:04 /usr/local/bin/zma -m 28
www-data  3462     1  0 10:11 ?        00:00:00 /usr/bin/perl -wT /usr/local/bin/zmfilter.pl
www-data  3531     1  0 10:11 ?        00:00:03 /usr/local/bin/zma -m 5
www-data  3604     1  0 10:11 ?        00:00:21 /usr/local/bin/zma -m 19
cmadmin  18945 21766  0 10:52 pts/0    00:00:00 grep zm
www-data 19905     1  0 10:21 ?        00:00:13 /usr/local/bin/zmc -m 27
1.24.2, jpeg mmx libs, ffmpeg all built from source.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Post by knight-of-ni »

You know that same question popped in my mind the other day.... just what are other people using to start/stop zm on Ubuntu/Debian machines?

As you probably know, the zm start/stop script that comes with the source code only works out of the box on RedHat/Fedora/CentOS type machines.

One solution I tried on an Ubuntu box running zm 1.23.3 was to roll my own zm script. I noted the functions that the zm script complained about and borrowed those functions from a machine running Fedora.

While this method will likely also work using the latest version of zm, you will probably agree that this is a bit of hack, and a better way to do this would probably be to re-write the zm script to make use of the functions native to the OS which are found here: /lib/lsb/init-functions.

With all that said, I really don't know if this will fix your problem of lingering processes (I haven't noticed that issue myself), but I thought I'd offer you the idea.

Let me know if want to take a look at the modified zm script, and I'll remote in and get it for you.
Locked