how to reduce cpu load?

Discussions related to the 1.36.x series of ZoneMinder
Cramac1
Posts: 111
Joined: Wed Aug 29, 2018 11:29 am

Re: how to reduce cpu load?

Post by Cramac1 »

how much it hung, did a hard reset. No such problems were observed.
and iotop does not see problems in hdd
Cramac1
Posts: 111
Joined: Wed Aug 29, 2018 11:29 am

Re: how to reduce cpu load?

Post by Cramac1 »

At night, the CPU load drops, then grows again. while the traffic does not drop
chart2.png
chart2.png (65.29 KiB) Viewed 3108 times
chart2 (1).png
chart2 (1).png (97.83 KiB) Viewed 3108 times
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: how to reduce cpu load?

Post by dougmccrary »

What is server kur?
Do you have ecc memory? if not, have you tested it recently?
Do you have video acceleration available?
Is your database in an ssd?
Cramac1
Posts: 111
Joined: Wed Aug 29, 2018 11:29 am

Re: how to reduce cpu load?

Post by Cramac1 »

I have several servers, the base is separate, on ssd.
server kur - problem server.
memory - before: 2*R748G2133U2S-U ; now: 1*KVR26N19D8/32

Code: Select all

Memory Device
        Array Handle: 0x0028
        Error Information Handle: 0x0034
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 32 GB
        Form Factor: DIMM
        Set: None
        Locator: DIMM 1
        Bank Locator: P0 CHANNEL B
        Type: DDR4
        Type Detail: Synchronous Unbuffered (Unregistered)
        Speed: 2667 MT/s
        Manufacturer: Kingston
        Serial Number: 20503ACD
        Asset Tag: Not Specified
        Part Number: 9905734-100.A00G
        Rank: 2
        Configured Memory Speed: 1333 MT/s
        Minimum Voltage: 1.2 V
        Maximum Voltage: 1.2 V
        Configured Voltage: 1.2 V

> Do you have video acceleration available?
no
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: how to reduce cpu load?

Post by dougmccrary »

So not ECC. Just to be sure, I'd run a test like memtest86 a couple passes.
kobold81
Posts: 16
Joined: Fri Jan 11, 2019 4:42 pm

Re: how to reduce cpu load?

Post by kobold81 »

I habve the same problem with 1.36. all 4 Cores are at 100%…with 1.37 ist comes down a bit. I use bullseye. Zm stopped the machine is at 25%, with zm started immedialtely at 100% no matter Cameras are disabled or in Monitor.
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: how to reduce cpu load?

Post by dougmccrary »

Zm stopped the machine is at 25%
That seems high. What's it doing?
kobold81
Posts: 16
Joined: Fri Jan 11, 2019 4:42 pm

Re: how to reduce cpu load?

Post by kobold81 »

Smbd, Openhab,vzlogger,grafana,postgre
When i run shinobi only one Core is at about 80%.
Cramac1
Posts: 111
Joined: Wed Aug 29, 2018 11:29 am

Re: how to reduce cpu load?

Post by Cramac1 »

updated to .19 immediately ate all the memory and the server hung. reverted back to .11
davidma
Posts: 36
Joined: Fri Oct 16, 2015 1:40 am

Re: how to reduce cpu load?

Post by davidma »

Cramac1 wrote: Fri Jun 17, 2022 6:31 am At night, the CPU load drops, then grows again. while the traffic does not drop

chart2.png
chart2 (1).png
Just a shot in the dark but how are your CPU core temperatures in the daytime? Is it throttling due to heat during the day but then cooling off at night?
Cramac1
Posts: 111
Joined: Wed Aug 29, 2018 11:29 am

Re: how to reduce cpu load?

Post by Cramac1 »

It's not about temperature.
chart.png
chart.png (76.52 KiB) Viewed 2969 times
Here is the monthly schedule. After rebooting the server, the cpu became under 100, before that it worked by half.
Cramac1
Posts: 111
Joined: Wed Aug 29, 2018 11:29 am

Re: how to reduce cpu load?

Post by Cramac1 »

it's all about memory. He returned what was standing, the CPU load returned to normal 40-50%. I put a new one, cpu 100%.
photo5301238147763518730.jpg
photo5301238147763518730.jpg (267.24 KiB) Viewed 2940 times
photo5301238147763518731.jpg
photo5301238147763518731.jpg (378.4 KiB) Viewed 2940 times
Cramac1
Posts: 111
Joined: Wed Aug 29, 2018 11:29 am

Re: how to reduce cpu load?

Post by Cramac1 »

the problem was solved by replacing the memory with 2 * R7416G2133U2S-U
CPU usage is back to 40-50%
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: how to reduce cpu load?

Post by dougmccrary »

Yay! :mrgreen:
Post Reply