# KWin high CPU and Memory Use

**URL:** <https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625>\
**Category:** Desktop Environments\
**Created:** [December 22, 2020, 3:59pm UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625 "2020-12-22T15:59:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamis](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/48db29/32.png) [@adamis](https://forum.endeavouros.com/u/adamis)\
**Post date:** [December 22, 2020, 3:59pm UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625/1 "2020-12-22T15:59:58Z")

</div>

My desktop has been up for several days now. Both my wife and I are logged into our respective profiles and we switch between as necessary. I’m experiencing high CPU use and Memory use that seem to be a result of kwin\_x11 (see attached screenshot). Doing some research, it appears that kwin is kind of notorious for high cpu bugs so it is difficult to figure out where to start. This is on Plasma 5.20. All up to date. I have Thunderbird open and Chrome open with about 30 tabs. I am also running an appimage program called xlights that controls our Christmas lights. None of these items however seem to be coming up in the process list as consuming lots of memory or cpu, just kwin. If I restart the computer, everything goes back to normal for a day or two and then this starts creeping up again.

Has anyone else experienced this issues?

![Screenshot_20201222_075130](https://forum.endeavouros.com/uploads/default/original/3X/d/3/d36270bf9ddf97bfd52f24fe373cad57e0d3856b.png)

---

<div class="post-metadata">

**Author:** ![xircon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/xircon/32/9124_2.png) [@xircon](https://forum.endeavouros.com/u/xircon)\
**Post date:** [December 22, 2020, 4:07pm UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625/2 "2020-12-22T16:07:20Z")

</div>

Are you using any plasmoids?

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [December 22, 2020, 4:10pm UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625/3 "2020-12-22T16:10:45Z")

</div>

I would expect it with 30 tabs open. 🤔

---

<div class="post-metadata">

**Author:** ![tlmiller76](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/tlmiller76/32/96350_2.png) [@tlmiller76](https://forum.endeavouros.com/u/tlmiller76)\
**Post date:** [December 22, 2020, 4:13pm UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625/4 "2020-12-22T16:13:31Z")

</div>

But I would be expecting Chrome (Chromium it appears in that shot) to show up with 30 tabs, that shouldn’t cause Kwin to ramp up that badly. Although given what I can see of the list, it does appear Chromium is using much more than kwin in that screenshot.

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [December 22, 2020, 4:14pm UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625/5 "2020-12-22T16:14:35Z")

</div>

No but I would expect it to use more that’s all. Not 32 GB

---

<div class="post-metadata">

**Author:** ![adamis](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/48db29/32.png) [@adamis](https://forum.endeavouros.com/u/adamis)\
**Post date:** [December 22, 2020, 8:42pm UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625/6 "2020-12-22T20:42:59Z")

</div>

So I went and closed everything that I had open and took a new screenshot. The memory consumption went down of course due to closing Chromium. CPU use still is high though and I have 5 process of kwin\_x11 running. ![Screenshot_20201222_123955](https://forum.endeavouros.com/uploads/default/original/3X/b/a/ba553d73db3529ff5d12efc78633e5e3c0f8d410.png)

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [December 22, 2020, 8:45pm UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625/7 "2020-12-22T20:45:52Z")

</div>

I have kde plasma installed also on Ryzen with 32 GB memory. What app is that you are using to check? I will look at mine.

---

<div class="post-metadata">

**Author:** ![adamis](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/48db29/32.png) [@adamis](https://forum.endeavouros.com/u/adamis)\
**Post date:** [December 22, 2020, 9:42pm UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625/8 "2020-12-22T21:42:24Z")

</div>

It is bpytop, just discovered it a couple of days ago and I have been really liking it.

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [December 22, 2020, 10:29pm UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625/9 "2020-12-22T22:29:05Z")

</div>

I have installed it and running idle it uses about 5.62 GB. So then i opened 30 tabs in firefox. It’s not using that much more. It’s close to 6 GB & it probably will go over. It’s only been running for about 3 minutes.

![Screenshot_20201222_172552](https://forum.endeavouros.com/uploads/default/original/3X/a/9/a95d518307d46882da104e5236e5602ef75c4932.png)

Edit: Normal with just Firefox open is 1.59 GB memory which fluctuates a little.

---

<div class="post-metadata">

**Author:** ![adamis](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/48db29/32.png) [@adamis](https://forum.endeavouros.com/u/adamis)\
**Post date:** [December 22, 2020, 10:54pm UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625/10 "2020-12-22T22:54:48Z")

</div>

Just another quick update. I ended up going through and killing about 8 x11\_kwin processes. CPU use finally went back down to something more reasonable. Is it normal for x11\_kwin to spawn so many processes and why can I kill them without any noticeable impact on the system other than my CPU use going down?

![Screenshot_20201222_145207](https://forum.endeavouros.com/uploads/default/original/3X/8/d/8dc02c2d1dd322e4fc26940f3b020de3cfdee1a4.png)

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [December 22, 2020, 11:24pm UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625/11 "2020-12-22T23:24:00Z")

</div>

I think this program is using a lot of resources. 🤔

---

<div class="post-metadata">

**Author:** ![Schlaefer](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/schlaefer/32/11917_2.png) [@Schlaefer](https://forum.endeavouros.com/u/Schlaefer)\
**Post date:** [December 23, 2020, 7:12am UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625/12 "2020-12-23T07:12:09Z")

</div>

> [@adamis](#):
>
> Is it normal for x11\_kwin to spawn so many processes and why can I kill them without any noticeable impact on the system other than my CPU use going down?

You should have one kwin process. I assume kwin crashes, spawns a new instance but the crashed process isn’t properly killed but stays around as 100% CPU zombie.

Try to figure out what you did when an additional 100% kwin process appears (sleep/wake, switching users, starting a particular app, …), also check `journcalctl -b`. What’s your graphic card and driver, is that known to have issues with kde/kwin?

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [December 23, 2020, 7:41am UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625/13 "2020-12-23T07:41:46Z")

</div>

> [@adamis](#):
>
> Is it normal for x11\_kwin to spawn so many processes

Definitely not

---

<div class="post-metadata">

**Author:** ![adamis](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/48db29/32.png) [@adamis](https://forum.endeavouros.com/u/adamis)\
**Post date:** [January 1, 2021, 3:39pm UTC](https://forum.endeavouros.com/t/kwin-high-cpu-and-memory-use/10625/14 "2021-01-01T15:39:47Z")

</div>

More clues to this mystery. I think the issue has to do with Chrome-Remote Desktop. I use it to remote into my machine and I think it might be related to closing the browser tab instead of logging off the remote session. Not positive yet on this but I am leaning that way because the extra kwin processes seem to appear when I am doing remote work.
