Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU usage goes through the roof #777

Open
germain-gg opened this issue Jul 26, 2022 · 12 comments
Open

CPU usage goes through the roof #777

germain-gg opened this issue Jul 26, 2022 · 12 comments

Comments

@germain-gg
Copy link

This Issue tracker is only for reporting bugs and tracking code related issues.

Before posting, please make sure you check community.jitsi.org to see if the same or similar bugs have already been discussed. General questions, installation help, and feature requests can also be posted to community.jitsi.org.

Description


My mac is unusable whilst being on a Jitsi call after a little while

Current behavior


CPU usage goes crazy on mac OS

Expected Behavior


Normal level of CPU usage

Possible Solution


I don't know

Steps to reproduce


Joining a video call... and waiting

Environment details


macOS Monterey. Using the Jitsi electron app, on in browser (chrome, firefox, ...)

@saghul
Copy link
Member

saghul commented Jul 26, 2022

What webcam are you using?

@germain-gg
Copy link
Author

I'm using the HIIEVPU 2k webcam

@saghul
Copy link
Member

saghul commented Jul 26, 2022

When you hover over the local "GSM bars" do you see 60fps? Also, can you take a screenshot of activity monitor, sorted by CPU usage, descending?

Last, do you observe the same CPU usage with the mac's builtin camera?

@germain-gg
Copy link
Author

germain-gg commented Jul 26, 2022

It's actually quite hard to do any task during a call when the CPU is maxed out.

It looks like the video frames encoding on my side is laggy and there's a lot of lipsync for other participants looking at my feed but the same applies to me when looking at the local mirrored video feed.

I don't know what the GSM bars are, but I can tell you that I am far from 60 fps. There's a multi second lag between clicking any button and receiving the feedback

I can not recall whether this issue happened with the mac camera or not. What I can say is that I've been using this setup for 1.5 years and this has only recently been problematic

@saghul
Copy link
Member

saghul commented Jul 26, 2022

You haven't answered any of my questions, please try to.

There is a macOS bug starting with Monterey that triggers high CPU usage with certain cameras, that's what I'm trying to figure out here, if you are in that situation or not.

@saghul
Copy link
Member

saghul commented Jul 26, 2022

Screenshot 2022-07-26 at 14 56 01

This is the GSM bars, in your local view. What value do you get for fps?

@germain-gg
Copy link
Author

I have not yet tested without the external camera, but what I can tell you is that if I turn my camera off altogether, the CPU usage does not go down

Screen Shot 2022-07-26 at 14 17 07

Screen Shot 2022-07-26 at 14 17 19

PS: You'll see a lot of Element processes here as I was using an embedded Jitsi, but the problem is exactly the same when using Jitsi Meet, Element embeded Jitsi, Chrome or Firefox

@saghul
Copy link
Member

saghul commented Jul 26, 2022

That's odd, you don't even have a high resolution!

The kernel_task high CPU usage suggests your computer is struggling with high temperature and throttling down below its capabilities: https://support.apple.com/en-us/HT207359

Meetings are a moderately high CPU task, but 5 cores are taken away from you by the kernel, which doesn't sound right.

@germain-gg
Copy link
Author

That's odd, you don't even have a high resolution!

I fiddled with that setting to see whether it was the frame encoding/decoding that was difficult or not.

Yes the kernel_task does suggest high temperatures, I've tried all the common tricks you can see online like charging your mac using the right hand side ports, resetting the SMC, ...

Are there any extra piece of information that could help you investigate this further? I'm happy to help and dig info as I currently have to take all meetings from my phone

@saghul
Copy link
Member

saghul commented Jul 28, 2022

What kind of mac is that?

@germain-gg
Copy link
Author

MacBook Pro (16-inch, 2019), i7, 16gb of RAM.

I have just taken a call without an external monitor nor the camera plugged in and the problem did not occur. I'll see if the problem occurs with just the webcam and no external monitor to narrow it down further.

@saghul
Copy link
Member

saghul commented Aug 1, 2022

Thanks!

Can you also please do the following? When you reproduce it, open dev tools (same key combo as chrome) and take a profile measurement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants