[SOLVED] Memory loss after every Kernel update

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
zangetsu
Level 2
Level 2
Posts: 56
Joined: Thu Nov 24, 2016 6:12 am
Location: Como, Italy

[SOLVED] Memory loss after every Kernel update

Post by zangetsu »

Hello everyone,

I am on Linux Mint KDE 18.3 and after every Kernel update I lose about 500MB of memory in root partition. I thought that is very strange and also that, If things keep going like this, I will consume all memory in a few Kernel updates...

However, I watched /usr/src/ content and this is what I find out:

Code: Select all

$ ls -l /usr/src/
totale 204
drwxr-xr-x  2 root root 4096 nov 12  2016 bbswitch-0.8
drwxr-xr-x 27 root root 4096 dic 16 22:32 linux-headers-4.10.0-38
drwxr-xr-x  7 root root 4096 dic 16 22:32 linux-headers-4.10.0-38-generic
drwxr-xr-x 27 root root 4096 dic 17 00:16 linux-headers-4.10.0-42
drwxr-xr-x  7 root root 4096 dic 17 00:16 linux-headers-4.10.0-42-generic
drwxr-xr-x 27 root root 4096 gen 15 00:50 linux-headers-4.13.0-26
drwxr-xr-x  7 root root 4096 gen 15 00:51 linux-headers-4.13.0-26-generic
drwxr-xr-x 27 root root 4096 gen 26 00:31 linux-headers-4.13.0-31
drwxr-xr-x  7 root root 4096 gen 26 00:31 linux-headers-4.13.0-31-generic
drwxr-xr-x 27 root root 4096 gen 28 23:59 linux-headers-4.13.0-32
drwxr-xr-x  7 root root 4096 gen 28 23:59 linux-headers-4.13.0-32-generic
drwxr-xr-x 27 root root 4096 feb 26 16:57 linux-headers-4.13.0-36
drwxr-xr-x  7 root root 4096 feb 26 16:57 linux-headers-4.13.0-36-generic
drwxr-xr-x 27 root root 4096 mar 19 00:15 linux-headers-4.13.0-37
drwxr-xr-x  7 root root 4096 mar 19 00:15 linux-headers-4.13.0-37-generic
drwxr-xr-x 27 root root 4096 apr  5 17:06 linux-headers-4.13.0-38
drwxr-xr-x  7 root root 4096 apr  5 17:06 linux-headers-4.13.0-38-generic
drwxr-xr-x 27 root root 4096 apr 26 10:53 linux-headers-4.13.0-39
drwxr-xr-x  7 root root 4096 apr 26 10:53 linux-headers-4.13.0-39-generic
drwxr-xr-x 27 root root 4096 mag 10 21:49 linux-headers-4.13.0-41
drwxr-xr-x  7 root root 4096 mag 10 21:49 linux-headers-4.13.0-41-generic
drwxr-xr-x 27 root root 4096 mag 25 21:27 linux-headers-4.13.0-43
drwxr-xr-x  7 root root 4096 mag 25 21:27 linux-headers-4.13.0-43-generic
drwxr-xr-x 27 root root 4096 set  4  2016 linux-headers-4.4.0-21
drwxr-xr-x  7 root root 4096 set  4  2016 linux-headers-4.4.0-21-generic
drwxr-xr-x 27 root root 4096 nov 12  2016 linux-headers-4.4.0-47
drwxr-xr-x  7 root root 4096 nov 12  2016 linux-headers-4.4.0-47-generic
drwxr-xr-x 27 root root 4096 dic  1  2016 linux-headers-4.4.0-51
drwxr-xr-x  7 root root 4096 dic  1  2016 linux-headers-4.4.0-51-generic
drwxr-xr-x 27 root root 4096 dic  6  2016 linux-headers-4.4.0-53
drwxr-xr-x  7 root root 4096 dic  6  2016 linux-headers-4.4.0-53-generic
drwxr-xr-x 27 root root 4096 dic 21  2016 linux-headers-4.4.0-57
drwxr-xr-x  7 root root 4096 dic 21  2016 linux-headers-4.4.0-57-generic
drwxr-xr-x 27 root root 4096 gen 11  2017 linux-headers-4.4.0-59
drwxr-xr-x  7 root root 4096 gen 11  2017 linux-headers-4.4.0-59-generic
drwxr-xr-x 27 root root 4096 feb  4  2017 linux-headers-4.4.0-62
drwxr-xr-x  7 root root 4096 feb  4  2017 linux-headers-4.4.0-62-generic
drwxr-xr-x 27 root root 4096 feb 21  2017 linux-headers-4.4.0-63
drwxr-xr-x  7 root root 4096 feb 21  2017 linux-headers-4.4.0-63-generic
drwxr-xr-x 27 root root 4096 mar  2  2017 linux-headers-4.4.0-65
drwxr-xr-x  7 root root 4096 mar  2  2017 linux-headers-4.4.0-65-generic
drwxr-xr-x 27 root root 4096 mar  8  2017 linux-headers-4.4.0-66
drwxr-xr-x  7 root root 4096 mar  8  2017 linux-headers-4.4.0-66-generic
drwxr-xr-x 27 root root 4096 apr  5  2017 linux-headers-4.4.0-72
drwxr-xr-x  7 root root 4096 apr  5  2017 linux-headers-4.4.0-72-generic
drwxr-xr-x 27 root root 4096 apr 26  2017 linux-headers-4.4.0-75
drwxr-xr-x  7 root root 4096 apr 26  2017 linux-headers-4.4.0-75-generic
drwxr-xr-x 27 root root 4096 mag  8  2017 linux-headers-4.4.0-77
drwxr-xr-x  7 root root 4096 mag  8  2017 linux-headers-4.4.0-77-generic
drwxr-xr-x  2 root root 4096 gen 25 00:53 ndiswrapper-1.60
drwxr-xr-x  8 root root 4096 gen  9 17:59 nvidia-384-384.111
Are those headers that take all consumed memory?
What can I delete? My current kernel version is the following one:

Code: Select all

$ uname -a
Linux nino-X555UJ 4.13.0-41-generic #46~16.04.1-Ubuntu SMP Thu May 3 10:06:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
How can I take back memory and how can I prevent this mess in future?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
richyrich

Re: Memory loss after every Kernel update

Post by richyrich »

Update Manager > View > Kernels
Use the Update Manager to remove un-used/un-wanted kernels. :-)
zangetsu
Level 2
Level 2
Posts: 56
Joined: Thu Nov 24, 2016 6:12 am
Location: Como, Italy

Re: Memory loss after every Kernel update

Post by zangetsu »

Thank you @richyrich :D

So, every time I'll do a Kernel update will I need to remove manually obsolete Kernels through the Update Manager? :cry:
richyrich

Re: Memory loss after every Kernel update

Post by richyrich »

I personally, always keep one extra kernel that I know works well with my hardware. (and keep that kernel version also updated)
Just in case a new update corrupts the newest one, I have a fallback that I know works. :-)
zangetsu
Level 2
Level 2
Posts: 56
Joined: Thu Nov 24, 2016 6:12 am
Location: Como, Italy

Re: [SOLVED] Memory loss after every Kernel update

Post by zangetsu »

Understood. Thanks for the advice and the help too :D
Locked

Return to “Other topics”