very high CPU usage in Teams for linux

%3CLINGO-SUB%20id%3D%22lingo-sub-1385536%22%20slang%3D%22en-US%22%3Every%20high%20CPU%20usage%20in%20Teams%20for%20linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1385536%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20read%20many%20complaints%20regarding%20high%20CPU%20usage%20in%20Teams%20for%20linux%20but%20everytime%20the%20team%20member%20says%20%22we%20can't%20replicate%20the%20same%20at%20our%20end%22.%3C%2FP%3E%3CP%3EToday%20I%20am%20posting%20my%20screenshots%20for%20high%20CPU%20usage.%3C%2FP%3E%3CP%3E1.%20CPU%20usage%20without%20teams%20running.%3C%2FP%3E%3CP%3E2.%20CPU%20usage%20with%20teams%20running.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%20other%20apps%20were%20running%20in%20background.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOS%20%3A%20Kubuntu%2020.04%20LTS%3C%2FP%3E%3CP%3ERAM%3A%2016GB%3C%2FP%3E%3CP%3ECPU%20%3A%20Intel%20core%20i5-8250U%3CBR%20%2F%3E%3CBR%20%2F%3EFirst%20of%20all%20this%20time%20as%20well%20I%20am%20expecting%20something%20like%20%22We%20can't%20replicate%20the%20high%20usage%20scenario%20on%20our%20end%22.%3CBR%20%2F%3E%3CBR%20%2F%3EAnd%20secondly%2C%20there%20is%20no%20roadmap%20for%20Teams%20Linux%2C%20so%20no%20bugs%20gets%20fixed%2C%20no%20new%20features%20coming%2C%20even%20the%20basic%20feature%20of%20Teams%20which%20are%20present%20in%20windows%20version%20isn't%20present%20in%20Linux%20version%20and%20there%20is%20no%20timeline%20as%20to%20when%20we'll%20get%20those%20features.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1385536%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1410501%22%20slang%3D%22en-US%22%3ERe%3A%20very%20high%20CPU%20usage%20in%20Teams%20for%20linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1410501%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F665938%22%20target%3D%22_blank%22%3E%40pankaj_scanit%3C%2FA%3E%26nbsp%3Bwhat%20action%20are%20you%20executing%20on%20Teams%3F%20Is%20that%20idle%20state%20of%20the%20client%20or%20are%20you%20on%20a%20call%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1411123%22%20slang%3D%22en-US%22%3ERe%3A%20very%20high%20CPU%20usage%20in%20Teams%20for%20linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1411123%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F123722%22%20target%3D%22_blank%22%3E%40Ricardo%20Havranek%20Garcia%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3EIt's%20on%20idle%20with%20just%20Teams%20for%20Linux%20running%20in%20background%20and%20no%20other%20apps%20running.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1417669%22%20slang%3D%22en-US%22%3ERe%3A%20very%20high%20CPU%20usage%20in%20Teams%20for%20linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1417669%22%20slang%3D%22en-US%22%3E%3CP%3EI%20can%20always%20reproduce%20high%20cpu%20usage%20after%20any%20video%20call.%20I%20believe%20this%20has%20been%20discussed%20before%20in%20other%20discussions.%20So%20basically%20my%20workflow%20is%20exit%20and%20restart%20teams%20after%20every%20meeting.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETeams%20for%20Linux%20seems%20to%20have%20been%20released%20and%20abandoned.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1417675%22%20slang%3D%22en-US%22%3ERe%3A%20very%20high%20CPU%20usage%20in%20Teams%20for%20linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1417675%22%20slang%3D%22en-US%22%3E%3CP%3ETrue%3CBR%20%2F%3EThre%20is%20no%20roadMap%20for%20Teams%20Linux%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1474108%22%20slang%3D%22en-US%22%3ERe%3A%20very%20high%20CPU%20usage%20in%20Teams%20for%20linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1474108%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F665938%22%20target%3D%22_blank%22%3E%40pankaj_scanit%3C%2FA%3E%26nbsp%3BGot%20this%20on%20my%20machine%20too.%20Running%20strace%20on%20the%20offending%20process%20and%20found%20that%20it%20was%20checking%20whether%20my%20laptop%20was%20on%20AC%20power%20or%20not%20%3CSTRONG%3E1100%2B%20times%20per%20second%3C%2FSTRONG%3E.%20Obviously%2C%20if%20I%20wasn't%20on%20AC%20power%2C%20I%20would%20have%20to%20be%20with%20this%20kind%20of%20code.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E4665%20%2014%3A51%3A55.971870%20openat(AT_FDCWD%2C%20%22%2Fsys%2Fdevices%2Fsystem%2Fcpu%2Fcpu0%2Fcpufreq%2Fscaling_governor%22%2C%20O_RDONLY)%20%3D%2070%0A4665%20%2014%3A51%3A55.972121%20openat(AT_FDCWD%2C%20%22%2Fsys%2Fclass%2Fpower_supply%2FAC%2Fonline%22%2C%20O_RDONLY)%20%3D%2070%0A4665%20%2014%3A51%3A55.972690%20openat(AT_FDCWD%2C%20%22%2Fsys%2Fdevices%2Fsystem%2Fcpu%2Fcpu0%2Fcpufreq%2Fscaling_governor%22%2C%20O_RDONLY)%20%3D%2070%0A4665%20%2014%3A51%3A55.973029%20openat(AT_FDCWD%2C%20%22%2Fsys%2Fclass%2Fpower_supply%2FAC%2Fonline%22%2C%20O_RDONLY)%20%3D%2070%0A4665%20%2014%3A51%3A55.973620%20openat(AT_FDCWD%2C%20%22%2Fsys%2Fdevices%2Fsystem%2Fcpu%2Fcpu0%2Fcpufreq%2Fscaling_governor%22%2C%20O_RDONLY)%20%3D%2070%0A4665%20%2014%3A51%3A55.973966%20openat(AT_FDCWD%2C%20%22%2Fsys%2Fclass%2Fpower_supply%2FAC%2Fonline%22%2C%20O_RDONLY)%20%3D%2070%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1480752%22%20slang%3D%22de-DE%22%3ERe%3A%20very%20high%20CPU%20usage%20in%20Teams%20for%20linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1480752%22%20slang%3D%22de-DE%22%3E%3CP%3EFacing%20the%20same%20issue%20here%20on%20Thinkpad%20T49s%20and%20Debian%20linux.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EChecking%20CPU%20usage%20with%20%22top%22%2C%20it%20shows%20heavy%20load%20on%20%3CBR%20%2F%3E%3CBR%20%2F%3E%2031962%20root%2020%200%200%200%20I%2077.8%200.0%200%3A16.36%20kworker%2F0%3A2-kacpi_notify%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESounds%20like%20it's%20checking%20AC%20power%20on%20my%20machine%20as%20well.%20But%20I'm%20most%20of%20the%20time%20connected%20with%20power%20supply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20way%20I'm%20not%20able%20to%20join%20a%20team%20meeting%20without%20power%20supply%20...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBro%3C%2FP%3E%3CP%3EAlex%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1583867%22%20slang%3D%22en-US%22%3ERe%3A%20very%20high%20CPU%20usage%20in%20Teams%20for%20linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1583867%22%20slang%3D%22en-US%22%3EExactly%2C%20if%20I%20forget%20to%20restart%20teams%20after%20a%20call%2C%20it%20burns%20CPU%20like%20crazy.%3CBR%20%2F%3E%3CBR%20%2F%3EJust%20scale%20that%20up%20to%20the%20number%20of%20users%2C%20estimate%20the%20amount%20of%20wasted%20energy%2C%20think%20about%20climate%20change%20and%20start%20sweating%20even%20more.%20Irresponsible%20code!%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I have read many complaints regarding high CPU usage in Teams for linux but everytime the team member says "we can't replicate the same at our end".

Today I am posting my screenshots for high CPU usage.

1. CPU usage without teams running.

2. CPU usage with teams running.

 

No other apps were running in background.

 

OS : Kubuntu 20.04 LTS

RAM: 16GB

CPU : Intel core i5-8250U

First of all this time as well I am expecting something like "We can't replicate the high usage scenario on our end".

And secondly, there is no roadmap for Teams Linux, so no bugs gets fixed, no new features coming, even the basic feature of Teams which are present in windows version isn't present in Linux version and there is no timeline as to when we'll get those features.

7 Replies
Highlighted

@pankaj_scanit what action are you executing on Teams? Is that idle state of the client or are you on a call?

Highlighted

@Ricardo Havranek Garcia 
It's on idle with just Teams for Linux running in background and no other apps running.

Highlighted

I can always reproduce high cpu usage after any video call. I believe this has been discussed before in other discussions. So basically my workflow is exit and restart teams after every meeting.

 

Teams for Linux seems to have been released and abandoned.

Highlighted

True
Thre is no roadMap for Teams Linux

Highlighted

@pankaj_scanit Got this on my machine too. Running strace on the offending process and found that it was checking whether my laptop was on AC power or not 1100+ times per second. Obviously, if I wasn't on AC power, I would have to be with this kind of code.

 

4665  14:51:55.971870 openat(AT_FDCWD, "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor", O_RDONLY) = 70
4665  14:51:55.972121 openat(AT_FDCWD, "/sys/class/power_supply/AC/online", O_RDONLY) = 70
4665  14:51:55.972690 openat(AT_FDCWD, "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor", O_RDONLY) = 70
4665  14:51:55.973029 openat(AT_FDCWD, "/sys/class/power_supply/AC/online", O_RDONLY) = 70
4665  14:51:55.973620 openat(AT_FDCWD, "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor", O_RDONLY) = 70
4665  14:51:55.973966 openat(AT_FDCWD, "/sys/class/power_supply/AC/online", O_RDONLY) = 70

 

Highlighted

Facing the same issue here on Thinkpad T49s and Debian linux.

 

Checking CPU usage with "top", it shows heavy load on 

31962 root 20 0 0 0 0 I 77,8 0,0 0:16.36 kworker/0:2-kacpi_notify

 

Sounds like it's checking AC power on my machine as well. But I'm most of the time connected with power supply.

 

That way I'm not able to join a team meeting without power supply ...

 

br,

Alex

 

Highlighted
Exactly, if I forget to restart teams after a call, it burns CPU like crazy.

Just scale that up to the number of users, estimate the amount of wasted energy, think about climate change and start sweating even more. Irresponsible code!