CPU running at 100%?

IAmATeaf

Known around here
Joined
Jan 13, 2019
Messages
3,308
Reaction score
3,293
Location
United Kingdom
What motion detection settings do have set? Don’t forget that a high resolution camera will mean more stream data for BI to analyse if it’s trying to detect motion.
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
On the driveway/frontdoor cams, no motion detection, only continuous recording and "capture alert image" in the trigger menu.

On the cloned driveway/frontdoor cameras that "feed" the AITool:

1594065166230.png1594065181956.png
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
Not sure if this needs to be checked:

1594065302310.png
 

biggen

Known around here
Joined
May 6, 2018
Messages
2,571
Reaction score
2,848
Yes that is the BI proprietary media format. That can stay enabled.
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
Tried changing the algorithms, didn't do much.

Disabled the "cloned" cameras, each uses around 2 - 3% CPU, I assume because they are doing the motion detection vs the main cameras.

If I keep the two cloned cameras hidden or show them on the main screen, it impacts in total around 2% CPU Usage.

Finally, I disabled everything other than the main front door camera (so motion is also off). I then went into that camera and adjusted the bit rate to a max of 256.

1594066642561.png

So before the camera was using 10% CPU at 6144 bitrate, now it is STILL using 8% at 256 bit rate (the lowest it will go).

Which gets me back to the same spot... something in the camera settings in BI must be causing the spike...but I can't seem to find it.


Tried disabling Webserver...didn't do much at all.

1594066903130.png1594066922273.png1594066984754.png

Camera specific:

1594067023925.png1594067045516.png1594067062756.png

1594067079877.png1594067095985.png1594067115867.png1594067132660.png

1594067151569.png1594067167678.png1594067185803.png1594067203788.png
1594067266387.png1594067282353.png
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
256bit rate ain't so nice either! I think the green smudge is grass :)

Surely shouldn't still be using 8% at this bit rate and 15FPS.

1594067399562.png1594067829393.png
 
Last edited:

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
24,955
Reaction score
48,671
Location
USA
That is definitely a head scratcher - only thing I can think now is to try the different Hardware acceleration decoder options - maybe something with that camera and +VPP?

I doubt changing to H265 would do anything, but maybe try that too?
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
Tried every decoder option, did nothing, tried using the NVidia GPU, changed to H265.... nada.

I think I've ruled out a setting in the camera itself (since the bit rates coming through aren't astronomical and even changing the bitrate to the lowest setting barely helps).

I guess I could try another fresh install of Windows...since I'm a pro at it by now and like to hit things with a hammer. But I keep thinking there has to be something in the settings posted above that is causing this.
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
24,955
Reaction score
48,671
Location
USA
What if you drop the resolution on that cam down to 2mp or less - any change?
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
Runs at 6% CPU with this reso:

1594072600635.png
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
Hmmm.... tried to set both the Dahua and Hikvision to the same settings on their respective Cam GUIs:

1594073244548.png

But this is what I get in BI:

1594073269626.png


The Dahua uses ~2% CPU, when enable the Hikvision uses 6% at that setting.

So that, I think, tells me something is up with the two Hikvision cams. Let me plug in a Dahua 5442 and see what happens as it's 4MP.
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
BINGO!

See below. I copied the "FrontDoor" camera (the Hikvision 2CD2347G1-LU) settings to create a new camera setting for the Dahua 5442 (which is named "Backyard"). Except that the Dahua is set to 4MP and not 2MP.

But, the Dahua only draws 2-3% CPU at 4MP while the Hik is consuming 6% in 2.1MP mode, and jumps to 9% in 4MP.

1594073970106.png

Dahua only in 4mp 6144 constant bit rate (2.5% or so CPU Usage for BI)
1594074106843.png

Hikvision only in 4mp 6144 constant bit rate (9% or so CPU Usage for BI)

1594074166314.png



So that is quite interesting. CPU usage is 3.6x times what it is for the Dahua camera, same bitrate.

So the question becomes ... why?

Thinking about it some more, when I had my other cameras all hooked up they were all Hikvision DS-2CD2142FWD-IS, and I was hitting such high CPU usage with them on. Unfortunately I sold all of them a couple days ago so can't check one to see how much it consumed.
 

Attachments

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
Yeah, but I can't wrap my head around why that would be. Especially since I copied the Hikvision BI Settings to create the Dahua, so it's not like there is a setting difference in BI, and if BI is "seeing" ~61 MP/s for both cameras, what could possibly be causing the CPU usage difference??
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
Holy s&%t...I think I at last found the main culprit!

Saw this in my expanded status screen and never noticed it before. The two Hikvision cameras are outputting significantly higher frames or whatever the number means below via webcast, while the Dahua's were not, even though both have the same settings in the Webcast section.

Disabling webcast on those cameras drops the CPU usage to a strange but lower range of 2 - 6% vs the 9-10% before. I have no idea why the Hik is much more volatile.

Couldn't understand while the Dahua's only showed increasing numbers when I ran the BI android app, but once I turned that app off they stopped webcasting while the Hiks continued. Then I remembered that I had set up a sharptools.io dashboard to send video to a smart tablet in my house, and had it set up for all my Hik cameras but had never set it up for the Dahuas.

Man was that a painful exercise! lol

Now to figure out if in fact I am streaming too high a quality and that can be lowered, or I will just use my Raspberry Pi or something like that to do the streaming direct from the cameras vs using my BI server.



1594084424400.png
 

Attachments

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
24,955
Reaction score
48,671
Location
USA
What a thorough troubleshooting exercise you went thru but glad you found it and hopefully helps someone else along the way.

Thanks for sharing all your steps too - it will be valuable to someone.
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
What a thorough troubleshooting exercise you went thru but glad you found it and hopefully helps someone else along the way.

Thanks for sharing all your steps too - it will be valuable to someone.
It was fun in a strange way, thanks to you and others that stayed along for the journey and assisted!
 

SouthernYankee

IPCT Contributor
Joined
Feb 15, 2018
Messages
5,170
Reaction score
5,320
Location
Houston Tx
screen shot of the item you changed to reduce cpu. was it in BI or was it in the camera ?

I am on the road so have not access to my BI console
 

pbc

Getting comfortable
Joined
Jul 11, 2014
Messages
1,024
Reaction score
156
screen shot of the item you changed to reduce cpu. was it in BI or was it in the camera ?

I am on the road so have not access to my BI console
That's just it. Wasn't a BI setting at all. I had a tablet that was taking a stream from the BI webserver via a Sharptools.io action tiles sort of interface. So those two cameras were sending a constant mpeg stream and using a ton of CPU while the Dahua was not.

So for now went back to streaming from Tinycam Pro's webserver functionality and via a raspberry pi.
 

SouthernYankee

IPCT Contributor
Joined
Feb 15, 2018
Messages
5,170
Reaction score
5,320
Location
Houston Tx
You can try running the UI3 web interface on the PI. i believe that it will stream the recorded format. and not have to convert,
@bp2008 can verify this.
 
Top