cpu %

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
fernando
Posts: 240
Joined: Thu Jul 10, 2003 6:00 pm

cpu %

Post by fernando »

1.17.2

top - 16:31:09 up 4:25, 1 user, load average: 0.41, 0.35, 0.34
Tasks: 63 total, 2 running, 61 sleeping, 0 stopped, 0 zombie
Cpu(s): 9.7% us, 0.7% sy, 0.0% ni, 81.7% id, 8.0% wa, 0.0% hi, 0.0% si
Mem: 256120k total, 254080k used, 2040k free, 12672k buffers
Swap: 514040k total, 4716k used, 509324k free, 123060k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3088 apache 15 0 84872 9480 10m S 4.0 3.7 8:34.57 zma
4123 apache 15 0 84872 9480 10m S 3.3 3.7 7:33.03 zma
3144 apache 15 0 89208 9564 14m S 1.0 3.7 6:29.94 zma
4104 apache 15 0 125m 47m 52m S 1.0 19.0 2:00.66 zmc
2993 apache 15 0 84992 9564 10m S 0.7 3.7 5:30.36 zma
1 root 16 0 1580 512 1428 S 0.0 0.2 0:04.65 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
3 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/0
4 root 5 -10 0 0 0 S 0.0 0.0 0:00.52 kblockd/0
5 root 15 0 0 0 0 S 0.0 0.0 0:00.16 kapmd
6 root 15 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
8 root 15 0 0 0 0 S 0.0 0.0 0:01.67 kswapd0
9 root 10 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0
11 root 18 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
15 root 15 0 0 0 0 S 0.0 0.0 0:04.34 kjournald
267 root 16 0 2036 1020 1592 S 0.0 0.4 0:00.43 devfsd
358 root 15 0 0 0 0 S 0.0 0.0 0:00.06 khubd
631 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kjournald

1.18.0

top - 16:41:17 up 4:36, 1 user, load average: 0.38, 0.33, 0.30
Tasks: 59 total, 1 running, 58 sleeping, 0 stopped, 0 zombie
Cpu(s): 5.7% us, 1.3% sy, 0.0% ni, 90.7% id, 2.3% wa, 0.0% hi, 0.0% si
Mem: 256120k total, 249448k used, 6672k free, 14988k buffers
Swap: 514040k total, 480k used, 513560k free, 160880k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
8445 apache 15 0 84636 9216 10m S 2.0 3.6 0:14.34 zma
8471 apache 15 0 84776 9332 10m S 2.0 3.6 0:03.65 zma
8527 apache 15 0 121m 47m 48m S 1.0 19.0 0:00.90 zmc
8501 apache 15 0 84772 9232 10m S 0.7 3.6 0:00.45 zma
8535 apache 15 0 84772 9236 10m S 0.3 3.6 0:00.29 zma
1 root 16 0 1580 512 1428 S 0.0 0.2 0:04.65 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
3 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/0
4 root 5 -10 0 0 0 S 0.0 0.0 0:00.52 kblockd/0
5 root 15 0 0 0 0 S 0.0 0.0 0:00.16 kapmd
6 root 15 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
8 root 15 0 0 0 0 S 0.0 0.0 0:01.68 kswapd0
9 root 10 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0
11 root 18 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
15 root 15 0 0 0 0 S 0.0 0.0 0:04.40 kjournald
267 root 16 0 2036 1020 1592 S 0.0 0.4 0:00.43 devfsd
358 root 15 0 0 0 0 S 0.0 0.0 0:00.06 khubd
631 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kjournald


cpu duron 1300 / 256 ram
4 cameras. bt878 in grey 320*240
cam1 record
cam2 mocord
cam3 modect
cam4 modect
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: cpu %

Post by zoneminder »

Thanks Fernando. Not much change in your installation by the looks of it but then you started off quite low. I'd be interested to see what other pople get.

Phil,
pchan
Posts: 50
Joined: Thu Jan 15, 2004 9:38 pm

Re: cpu %

Post by pchan »

1.17.2

00:32:28 up 6 days, 22:55, 5 users, load average: 0.57, 0.57, 0.54
93 processes: 92 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states: 29.0% user 9.0% system 4.0% nice 0.0% iowait 61.0% idle
CPU1 states: 16.0% user 1.0% system 1.0% nice 0.0% iowait 81.0% idle
Mem: 1164388k av, 1140564k used, 23824k free, 0k shrd, 120120k buff
277192k active, 664112k inactive
Swap: 3004144k av, 0k used, 3004144k free 707032k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
31084 apache 16 0 106M 32M 32888 S 16.9 2.8 622:10 1 zma
11150 root 17 0 4260 1128 3980 R 4.1 0.0 0:00 0 top
7243 pchan 26 10 41832 7104 38532 S N 3.6 0.6 34:40 1 xawtv
29747 root 15 0 68396 24M 46028 S 1.8 2.1 45:24 1 X
9928 apache 15 0 121M 47M 49536 S 1.8 4.1 0:09 0 zmc
1 root 16 0 1380 480 1344 S 0.0 0.0 0:02 0 init
2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0 migration/0
3 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0
4 root RT 0 0 0 0 SW 0.0 0.0 0:00 1 migration/1
5 root 34 19 0 0 0 SWN 0.0 0.0 0:00 1 ksoftirqd/1
6 root 5 -10 0 0 0 SW< 0.0 0.0 0:00 0 events/0
7 root 7 -10 0 0 0 SW< 0.0 0.0 0:00 1 events/1
8 root 5 -10 0 0 0 SW< 0.0 0.0 0:00 0 kblockd/0

1.18.0

00:52:25 up 6 days, 23:15, 7 users, load average: 0.79, 0.46, 0.40
97 processes: 96 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states: 25.1% user 2.1% system 6.1% nice 0.0% iowait 72.0% idle
CPU1 states: 7.3% user 2.3% system 0.1% nice 0.0% iowait 89.1% idle
Mem: 1164388k av, 1148156k used, 16232k free, 0k shrd, 121028k buff
308852k active, 643260k inactive
Swap: 3004144k av, 0k used, 3004144k free 704696k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
12141 apache 15 0 105M 31M 32892 S 11.3 2.7 0:28 0 zma
7243 pchan 26 10 41832 7104 38532 S N 3.4 0.6 35:33 0 xawtv
12136 apache 15 0 121M 47M 49532 S 1.9 4.1 0:05 0 zmc
29747 root 15 0 69936 25M 47568 S 1.5 2.2 45:47 0 X
12206 root 17 0 4264 1144 3980 R 0.7 0.0 0:00 1 top
1 root 16 0 1380 480 1344 S 0.0 0.0 0:02 0 init
2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0 migration/0
3 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0
4 root RT 0 0 0 0 SW 0.0 0.0 0:00 1 migration/1
5 root 34 19 0 0 0 SWN 0.0 0.0 0:00 1 ksoftirqd/1
dave
Posts: 4
Joined: Mon Nov 24, 2003 12:03 am

Re: cpu %

Post by dave »

1.17.2

20:41:43 up 4:32, 2 users, load average: 0.96, 1.06, 1.03
57 processes: 53 sleeping, 4 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 40.3% 0.0% 9.0% 0.0% 0.0% 0.0% 50.6%
Mem: 449848k av, 442012k used, 7836k free, 0k shrd, 82320k buff
169036k active, 139672k inactive
Swap: 192772k av, 768k used, 192004k free 153004k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
4410 apache 16 0 25532 24M 23736 R 13.9 5.6 36:35 0 zma
4328 apache 16 0 25752 24M 23688 S 13.2 5.5 32:27 0 zmc
4461 apache 15 0 25532 24M 23736 S 12.8 5.6 39:57 0 zma
4340 apache 16 0 25328 24M 23688 R 6.9 5.4 16:41 0 zmc
4460 dave 16 0 1184 1184 888 R 1.3 0.2 3:48 0 top
4416 dave 16 0 2132 2128 1940 S 0.1 0.4 0:19 0 sshd
3677 root 20 0 1404 1404 1280 S 0.0 0.3 0:00 0 sshd
3730 root 18 0 1160 1160 1016 S 0.0 0.2 0:00 0 safe_mysqld
3754 mysql 16 0 8116 8116 2388 S 0.0 1.8 1:30 0 mysqld
4309 apache 16 0 5504 4736 2212 R 0.0 1.0 0:01 0 zmdc.pl
4359 apache 17 0 4520 4520 2060 S 0.0 1.0 0:01 0 zmaudit.pl

1.18.1

23:54:15 up 37 min, 1 user, load average: 0.56, 0.56, 0.44
59 processes: 58 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 17.6% 0.0% 9.1% 0.0% 0.0% 0.0% 73.2%
Mem: 449848k av, 220032k used, 229816k free, 0k shrd, 12592k buff
100000k active, 93856k inactive
Swap: 192772k av, 0k used, 192772k free 127468k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
5332 apache 16 0 25768 24M 23680 S 9.1 5.5 1:21 0 zmc
5339 apache 16 0 25332 24M 23680 S 6.2 5.4 0:56 0 zmc
5390 apache 15 0 24596 24M 23680 S 4.6 5.4 0:46 0 zma
5391 apache 15 0 24596 24M 23680 S 3.1 5.4 0:30 0 zma
5554 root 16 0 1096 1096 888 R 1.5 0.2 0:09 0 top
5343 apache 15 0 32948 24M 23680 S 0.3 5.4 0:03 0 zmc
3680 root 16 0 1404 1404 1280 S 0.0 0.3 0:00 0 sshd
3694 root 16 0 1920 1916 1756 S 0.0 0.4 0:00 0 sshd
3766 dave 16 0 2168 2164 1940 S 0.0 0.4 0:02 0 sshd
3770 dave 16 0 1344 1344 1128 S 0.0 0.2 0:00 0 bash
3910 root 16 0 9140 9136 8600 S 0.0 2.0 0:10 0 httpd

cpu Celeron 333 MHz
3 cameras. (1 TV Wonder-HandyCam, 2 USB) colour 320*240
cam1 modect
cam2 monitor cam3 modect
wheelbarrow
Posts: 43
Joined: Sat Feb 21, 2004 7:39 pm

Re: cpu %

Post by wheelbarrow »

1.17.0

top - 10:42:34 up 1:47, 2 users, load average: 0.43, 0.37, 0.36
Tasks: 118 total, 2 running, 116 sleeping, 0 stopped, 0 zombie
Cpu(s): 46.5% user, 2.4% system, 0.0% nice, 51.0% idle
Mem: 515204k total, 494208k used, 20996k free, 23844k buffers
Swap: 506008k total, 0k used, 506008k free, 243800k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5281 apache 15 0 25524 24m 23m R 8.9 5.0 3:40.25 zma
5409 apache 13 0 25524 24m 23m S 7.1 5.0 3:25.04 zma
6799 root 18 0 908 904 692 R 7.1 0.2 0:00.09 top
6404 apache 12 0 25408 24m 23m S 5.3 4.9 0:40.91 zma
5331 apache 10 0 57888 24m 23m S 1.8 4.8 0:14.94 zmc


1.18.1
top - 11:49:45 up 18 min, 2 users, load average: 0.63, 0.45, 0.30
Tasks: 123 total, 2 running, 121 sleeping, 0 stopped, 0 zombie
Cpu(s): 24.1% user, 4.2% system, 0.0% nice, 71.6% idle
Mem: 515204k total, 421852k used, 93352k free, 10132k buffers
Swap: 506008k total, 0k used, 506008k free, 200960k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3025 apache 18 0 24564 23m 23m R 9.6 4.8 0:04.79 zma
3406 root 14 0 912 908 692 R 9.6 0.2 0:00.16 top
3269 apache 10 0 21308 20m 20m S 2.7 4.1 0:02.80 zms
3273 apache 10 0 22624 22m 21m S 2.7 4.4 0:02.62 zms
3139 apache 10 0 57884 24m 23m S 1.4 4.8 0:15.07 zmc


not sure if this shows a big dirreference. But with 1.18.1 i can run 4 steams at 25fps and the user interface is ok. where as with 1.17.0 i had to wait for it to respond.


Regards


Paul
User avatar
fernando
Posts: 240
Joined: Thu Jul 10, 2003 6:00 pm

Re: cpu %

Post by fernando »

its me or the cpu use increase.. allways same machine mdk10 final.. but less monitors

top - 12:08:55 up 36 min, 1 user, load average: 2.63, 3.01, 2.43
Tasks: 58 total, 3 running, 55 sleeping, 0 stopped, 0 zombie
Cpu(s): 14.0% us, 2.3% sy, 0.0% ni, 0.0% id, 83.3% wa, 0.3% hi, 0.0% si
Mem: 256100k total, 253652k used, 2448k free, 71868k buffers
Swap: 1035176k total, 0k used, 1035176k free, 91180k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6218 apache 15 0 98.3m 23m 25m S 6.0 9.6 0:04.22 zma
6255 apache 15 0 85476 9356 10m S 5.7 3.7 0:02.94 zma
6285 apache 15 0 129m 55m 56m S 3.0 22.2 0:01.22 zmc
6293 apache 15 0 85612 9320 10m S 1.0 3.6 0:00.18 zma
4 root 5 -10 0 0 0 S 0.3 0.0 0:01.57 kblockd/0
8 root 15 0 0 0 0 S 0.3 0.0 0:00.21 kswapd0
1 root 16 0 1580 516 1424 S 0.0 0.2 0:02.61 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
3 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/0
5 root 15 0 0 0 0 S 0.0 0.0 0:00.01 kapmd
6 root 15 0 0 0 0 S 0.0 0.0 0:00.21 pdflush
9 root 10 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0
11 root 16 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
15 root 15 0 0 0 0 S 0.0 0.0 0:00.10 kjournald
113 root 16 0 2036 1156 1588 S 0.0 0.5 0:00.45 devfsd
198 root 15 0 0 0 0 S 0.0 0.0 0:00.05 khubd
336 root 15 0 0 0 0 D 0.0 0.0 0:00.66 kjournald
663 root 16 0 1652 544 1480 S 0.0 0.2 0:00.02 ifplugd
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: cpu %

Post by zoneminder »

I don't think you can just look at the load average as your seems to be pretty high even though no processes are really using much, which sort of implies you have lots of intensive but short other activity going on. I've benchmarked by profiling which is not easy to do unless built for it. he most useful measure from 'top' is probably in the TIME column and calculating the used CPU resource over the actual elapsed real-time. However you have to know exactly when you started the process to do this.

Phil,
Locked