# Excessive memory usage UB 20.04 after recent updates

**URL:** <https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918>\
**Category:** Budgie Desktop\
**Created:** [July 8, 2020, 1:21pm UTC](https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918 "2020-07-08T13:21:45Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![logb33](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/logb33/32/2214_2.png) [@logb33](https://discourse.ubuntubudgie.org/u/logb33)\
**Post date:** [July 8, 2020, 1:21pm UTC](https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918/1 "2020-07-08T13:21:45Z")

</div>

I don’t know if anyone else has noticed memory-leak type behaviour in UB 20.04 after some updates last week, but I’m seeing rapidly increasing memory usage on three different machines, to the extent that the machines freeze with the disk access light permanently on. The only solution is a hard reset, because the machines are not responsive.  
The machines are not high-end, but have been running UB quite happily for well over a year. I can’t isolate a specif culprit, but it does seem desktop-related rather than an application(s).  
I know this is all a bit vague, but I’m trying to find a direction to look in, rather than just waiting for fresh updates. I installed the new kernel from -Proposed yesterday, which has helped a bit, but that hasn’t solved the problem

---

<div class="post-metadata">

**Author:** ![fossfreedom](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/fossfreedom/32/1405_2.png) [@fossfreedom](https://discourse.ubuntubudgie.org/u/fossfreedom)\
**Post date:** [July 8, 2020, 1:24pm UTC](https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918/2 "2020-07-08T13:24:34Z")

</div>

suggest use htop and look to see what process/processes have a growing % mem usage

---

<div class="post-metadata">

**Author:** ![Coeur-Noir](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/coeur-noir/32/4515_2.png) [@Coeur-Noir](https://discourse.ubuntubudgie.org/u/Coeur-Noir)\
**Post date:** [July 9, 2020, 3:11am UTC](https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918/3 "2020-07-09T03:11:46Z")

</div>

…or cpu usage.

Do you use some Qt or KDE app’s ? Some of these may bring as dependencies a file indexer service ( baloo ) which is often the cause of such slow downs ( ie. gwenview, maybe also calibre ).

---

<div class="post-metadata">

**Author:** ![logb33](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/logb33/32/2214_2.png) [@logb33](https://discourse.ubuntubudgie.org/u/logb33)\
**Post date:** [July 9, 2020, 2:04pm UTC](https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918/4 "2020-07-09T14:04:22Z")

</div>

Funny you should mention that @Coeur-Noir… I’ve had that happen before, but not this time. Also, I haven’t seen high CPU usage, just ever-increasing memory usage.  
@fossfreedom, i haven’t been able to pick up one culprit in htop… it seems that it is a Gnome desktop issue, though. I’ve switched over to KDE plasma in the meantime, and memory usage is now under control again.  
I am still seeing quite a bit of memory associated with gnome-software, though… can’t yet figure out what this is…

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/ubuntubudgie/original/2X/b/b76c49bacfe6c9497bdec5dbdbd446a0cbb5fb4e.png)

---

<div class="post-metadata">

**Author:** ![Coeur-Noir](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/coeur-noir/32/4515_2.png) [@Coeur-Noir](https://discourse.ubuntubudgie.org/u/Coeur-Noir)\
**Post date:** [July 9, 2020, 2:57pm UTC](https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918/5 "2020-07-09T14:57:40Z")

</div>

Are you using many different Desktop Environments on your system(s), under one and same user ?

If yes, then it’s not the best idea ( some shared config’ files may not be accurate from one DE to another ). That may not fully explain the memory usage though.

Next time you’re close to freeze, try to _htop_ again.

Or. Any chance you have something mounted in /tmpfs at start ?  
`cat /etc/fstab`

---

<div class="post-metadata">

**Author:** ![logb33](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/logb33/32/2214_2.png) [@logb33](https://discourse.ubuntubudgie.org/u/logb33)\
**Post date:** [July 9, 2020, 3:26pm UTC](https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918/6 "2020-07-09T15:26:12Z")

</div>

Up to now, I was only running with UB and just my user… fresh install of 20.04. Everything was fine until sometime last week. A set of updates ran… nothing out of the ordinary, but I noticed the change after that. Unfortunately, I can’t pin the change down to one event ☹, but I didn’t install anything new, or change my configuration. I have also seen it on three different PCs, none of which were changed from the installs I did around the end of April (when 20.04 was released). All three machines have been rock-solid stable up to last week  
Nothing mounted in /etc/fstab… I use autofs for NFS4 exports, and again, that has not changed.  
I was watching _htop_ yesterday, and all I could see was the used memory increasing, but no one culprit. The increases I saw also did not correlate with the way the used memory was increasing. At this time, I can only say I am really puzzled 🤨 and a bit sad, because I like Budgie very much

---

<div class="post-metadata">

**Author:** ![Coeur-Noir](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/coeur-noir/32/4515_2.png) [@Coeur-Noir](https://discourse.ubuntubudgie.org/u/Coeur-Noir)\
**Post date:** [July 9, 2020, 4:32pm UTC](https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918/7 "2020-07-09T16:32:42Z")

</div>

Well, I still want to see what’s inside your _fstab_.

Usual pieces of advice here :

```auto
sudo apt update
sudo apt full-upgrade
sudo apt install -f
sudo apt autoremove --purge
sudo apt autoclean
sudo apt clean

```

…just to be sure your system is up-to-date, dependencies complete, without obsolete or unused packages and archive.

If any error message or warning, please post them here.

---

<div class="post-metadata">

**Author:** ![logb33](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/logb33/32/2214_2.png) [@logb33](https://discourse.ubuntubudgie.org/u/logb33)\
**Post date:** [July 9, 2020, 10:04pm UTC](https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918/8 "2020-07-09T22:04:58Z")

</div>

cat /etc/fstab:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/ubuntubudgie/original/2X/0/04a50930396b3763bb948b13c47f84d8ef336cbd.png)  
all _apt_ commands ran without error  
As I said earlier, nothing in my configurations changed, but I’ve been seeing the same behaviour on 3 different systems…

---

<div class="post-metadata">

**Author:** ![fossfreedom](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/fossfreedom/32/1405_2.png) [@fossfreedom](https://discourse.ubuntubudgie.org/u/fossfreedom)\
**Post date:** [July 9, 2020, 11:02pm UTC](https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918/9 "2020-07-09T23:02:31Z")

</div>

```
 top -b -o +%MEM |head -17

```

That will display the top 10 processes running order by memory high-low

Use that occasionally to monitor all processes - you should see the culprit process.

---

<div class="post-metadata">

**Author:** ![Coeur-Noir](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/coeur-noir/32/4515_2.png) [@Coeur-Noir](https://discourse.ubuntubudgie.org/u/Coeur-Noir)\
**Post date:** [July 10, 2020, 1:28am UTC](https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918/10 "2020-07-10T01:28:59Z")

</div>

I can’t say if it’s related to memory usage but it looks like you have no _swapfile_ ( its line is commented ) neither _swap partition_.

So your system when RAM gets full, has no exit for it. Is this configuration intended for any reason ?

Did you run the commands I suggest ?

_By the way you may only copy the text output from your terminal and paste it here between like this :_

![3xaltgr7](https://canada1.discourse-cdn.com/flex035/uploads/ubuntubudgie/original/2X/6/6ec1660a8b6fdc45d534edacccead225cb3c63cc.png)  
_here the output text_  
_from your terminal_  
_that will get formatted._  
 ![3xaltgr7](https://canada1.discourse-cdn.com/flex035/uploads/ubuntubudgie/original/2X/6/6ec1660a8b6fdc45d534edacccead225cb3c63cc.png)

_Use [shift] + [ctrl] + [C] to copy what’s selected in terminal._  
_Or right-click, copy_

Anyway, best catch indeed would be to narrow down the culprit in memory usage.

---

<div class="post-metadata">

**Author:** ![logb33](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/logb33/32/2214_2.png) [@logb33](https://discourse.ubuntubudgie.org/u/logb33)\
**Post date:** [July 10, 2020, 8:46am UTC](https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918/11 "2020-07-10T08:46:58Z")

</div>

You’re correct… I don’t have a swapfile by intention. I have 8GB of RAM, and generally my usage has hovered around the 3GB mark, so I don’t see a need, and I haven’t generally noticed any performance issues. A few years ago, I had an issue where Chrome was sucking up all the memory, and even with a swapfile (actually, a swap partition at that time), it didn’t help and the machine locked solid. Since then, I’ve been running with no swapfile, with no issues. My clean UB install in April was done the same way, and it had been running stably with no issues up until recently.  
I ran all the _apt_ commands you suggested, and they all came back with no errors. I run them very regularly in normal use.  
Here’s the output again from _cat /etc/fstab_ apologies for the previous formatting… I’m still learning how to format the posts here

```auto

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=6e50b062-5924-4fe5-b4ff-66e55b2fa01a / ext4 errors=remount-ro 0 1
## /swapfile none swap sw 0 0

```

---

<div class="post-metadata">

**Author:** ![logb33](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/logb33/32/2214_2.png) [@logb33](https://discourse.ubuntubudgie.org/u/logb33)\
**Post date:** [July 10, 2020, 8:47am UTC](https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918/12 "2020-07-10T08:47:40Z")

</div>

Sorry, still haven’t got the formatting right… will have to try later again 🙄

---

<div class="post-metadata">

**Author:** ![logb33](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/logb33/32/2214_2.png) [@logb33](https://discourse.ubuntubudgie.org/u/logb33)\
**Post date:** [July 10, 2020, 8:48am UTC](https://discourse.ubuntubudgie.org/t/excessive-memory-usage-ub-20-04-after-recent-updates/3918/13 "2020-07-10T08:48:46Z")

</div>

Thank you… I’ll try this with the Budgie desktop as soon as I have a gap, and see if I can find anything
