Peppermint OS

Support => New Users => Topic started by: mefibo on June 20, 2019, 02:38:46 pm

Title: RAM fills up (SOLVED)
Post by: mefibo on June 20, 2019, 02:38:46 pm
My system is a HP Stream 11 Notebook, 2GB RAM, 28GB SSD. Linux Peppermint 10 64bit. I am reading everywhere that it is just cache but my system freezes with full capacity RAM occupied. Using HTop and free -m shows there is virtually no memory available. At startup the system only uses about 475MB; then it slowly moves up using all free RAM.
Title: Re: RAM fills up
Post by: scifidude79 on June 20, 2019, 02:56:21 pm
Moved to appropriate board.

In the terminal, please run this command:

Code: [Select]
inxi -Fz
When it's done, please copy, paste and post the output here.
Title: Re: RAM fills up
Post by: PCNetSpec on June 20, 2019, 02:59:20 pm
Watching htop, which process has a continually climbing memory usage ?
Title: Re: RAM fills up
Post by: mefibo on June 20, 2019, 03:02:39 pm
This is what I get:

Code: [Select]
System:    Host: mefibo-HP-Stream-Notebook-PC-11 Kernel: 4.18.0-22-generic x86_64
           bits: 64
           Desktop: N/A Distro: Peppermint Ten
Machine:   Device: laptop System: Hewlett-Packard product: HP Stream Notebook PC 11 v: Type1 - ProductConfigId serial: N/A
           Mobo: Hewlett-Packard model: 8023 v: 54.12 serial: N/A
           UEFI: Insyde v: F.0A date: 07/22/2016
Battery    BAT0: charge: 33.2 Wh 100.0% condition: 33.2/33.2 Wh (100%)
CPU:       Dual core Intel Celeron N2840 (-MCP-) cache: 1024 KB
           clock speeds: max: 2582 MHz 1: 897 MHz 2: 1424 MHz
Graphics:  Card: Intel Atom Processor Z36xxx/Z37xxx Series Graphics & Display
           Display Server: x11 (X.Org 1.20.1 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.07hz
           OpenGL: renderer: Mesa DRI Intel Bay Trail version: 4.2 Mesa 18.2.8
Audio:     Card Intel Atom Processor Z36xxx/Z37xxx Series High Def. Audio Controller
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.18.0-22-generic
Network:   Card: Realtek RTL8723BE PCIe Wireless Network Adapter driver: rtl8723be
           IF: wlp1s0 state: up mac: <filter>
Drives:    HDD Total Size: 31.1GB (34.1% used)
           ID-1: /dev/mmcblk0 model: N/A size: 31.3GB
           ID-2: USB /dev/sda model: SD/MMC/MS_PRO size: 31.1GB
Partition: ID-1: / size: 29G used: 9.9G (38%) fs: ext4 dev: /dev/mmcblk0p2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 43.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 175 Uptime: 1:46 Memory: 1217.7/1884.6MB
           Client: Shell (bash) inxi: 2.3.56
Title: Re: RAM fills up
Post by: mefibo on June 20, 2019, 03:06:39 pm
There is one program maybe using up RAM - 847MB - nordvpn. In HTop  /usr/sbin/nordvpnd
Title: Re: RAM fills up
Post by: PCNetSpec on June 20, 2019, 04:59:00 pm
kill nordvpn, and see if your memory still climbs
Title: Re: RAM fills up
Post by: zebedeeboss on June 20, 2019, 10:34:15 pm
Hi mefibo,

You need to encapsulate the terminal output with the Insert, Code # function.  For extra long outputs, please use the Spoiler, Sp function.  If you’re a Chromium Browser and/or a Google Chrome user, please don't combine these functions.  For some reason, they don’t work well together with these browsers.  The formatting gets all goofed up.  Only use one or the other  ;).  These forum functions preserve the original format of the output.  This makes it easier for future visitors to relate to their own issues.  These functions are found in the forum editor, above the,  :-[ Embarrassed and  the :'( Cry emoticon respectively.  Use the Preview button to check how it'll look after you post it to forum.  I have done it for you this time, I hope this helps  ;).

Regards Zeb...
Title: Re: RAM fills up
Post by: mefibo on June 21, 2019, 07:48:36 am
Killing nordvpn did not solve the problem
Title: Re: RAM fills up
Post by: PCNetSpec on June 21, 2019, 12:39:55 pm
So keep an eye on htop and figure out what's using all the memory ? .. we can't guess what's using it ;)

and what's the output from:
Code: [Select]
free -m


And maybe see here:
https://askubuntu.com/questions/41778/computer-freezing-on-almost-full-ram-possibly-disk-cache-problem
Title: Re: RAM fills up
Post by: mefibo on June 22, 2019, 06:44:43 am
The link does not seem to reflect my problem; it is not cache that eats up my RAM, I think.
Free -m output, starting after boot and with 1 hour intervals; opened and closed Peppermint Forum, Text-editor and File manager, opened and  left opened Htop and Terminal. Apart from that I did nothing:

Code: [Select]
mefibo@mefibo-HP-Stream-Notebook-PC-11 ~ $ free -m
              total        used        free      shared  buff/cache   available
Mem:           1884         429         455          36         999        1265
Swap:          1359           0        1359
mefibo@mefibo-HP-Stream-Notebook-PC-11 ~ $ free -m
              total        used        free      shared  buff/cache   available
Mem:           1884         773          69          40        1042         930
Swap:          1359           0        1359
mefibo@mefibo-HP-Stream-Notebook-PC-11 ~ $ free -m
              total        used        free      shared  buff/cache   available
Mem:           1884        1087          76          40         720         628
Swap:          1359           0        1359
mefibo@mefibo-HP-Stream-Notebook-PC-11 ~ $ free -m
              total        used        free      shared  buff/cache   available
Mem:           1884        1404          77          41         402         308
Swap:          1359           5        1354

In 1 or two hours my system will freeze and eventually black screen and totally unresponsive. Have t use the physical on/off button.

I will keep monitoring memory usage, but at first glance nothing stands out.
Am I looking at the right column in Htop - SHR residant memory?
Title: Re: RAM fills up
Post by: mefibo on June 22, 2019, 07:06:32 am
I am sorry, I meant monitoring RES, not SHR
Title: Re: RAM fills up
Post by: mefibo on June 22, 2019, 07:50:56 am
Would it help if I made a screen-recording of Htop running?
Title: Re: RAM fills up
Post by: PCNetSpec on June 22, 2019, 01:31:16 pm
Start htop with this command
Code: [Select]
htop -s PERCENT_MEMthat should show the top processes listed by memory usage .. then just leave it running and see what what rises to the top.
Title: Re: RAM fills up
Post by: mefibo on June 22, 2019, 04:38:32 pm
Does ¨WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option¨ mean anything; am I doing something wrong?
Title: Re: RAM fills up
Post by: PCNetSpec on June 22, 2019, 04:46:21 pm
No, it's just a kinda Linux joke in my forum signature :))
Title: Re: RAM fills up
Post by: mefibo on June 22, 2019, 05:38:42 pm
Now I really feel like a newbee
Title: Re: RAM fills up
Post by: PCNetSpec on June 22, 2019, 08:07:14 pm
Don't feel too bad, you're not the first to ask :)
Title: Re: RAM fills up
Post by: alynur on June 23, 2019, 08:42:30 am
Hi mefibo, welcome to Peppermint. Have a look at this post (https://forum.peppermintos.com/index.php/topic,6204.0.html), especially starting with reply #5.  I had the same problem but not as severe as yours, just affecting my browser speed and got good help here. Now I install the cronjob with every Peppermint version I upgrade to. Good luck.
Title: Re: RAM fills uphe co
Post by: mefibo on June 24, 2019, 04:37:31 am
First of all, thank you everybody for the offered help. In reply of the last post; the command
Code: [Select]
sync && echo 3 | sudo tee /proc/sys/vm/drop_cachesdoes nothing to either memory, including RES. I have tried it as user mefibo as well as root. So making it a cronjob is no solution. I am beginning to feel a bit desperate.
Title: Re: RAM fills up
Post by: PCNetSpec on June 24, 2019, 08:36:01 am
That will only clear caches .. it will not release memory being used (or leaked) by an application.

But you still haven't said what
Code: [Select]
htop -s PERCENT_MEMdiscovered was progressively using more memory
Title: Re: RAM fills up
Post by: mefibo on June 24, 2019, 09:11:23 am
The problem is, there does not seem to be a process that progressively occupies RAM. At the top are 3 process PID of python3, and 12 of nordvpn. But the usage does not increase.
I do not like to, cause it has cost me quite some effort to install programs, setup my wireless printer and all, but if I have to - I could perform a clean install and monitor the system after each program I install?
Title: Re: RAM fills up
Post by: PCNetSpec on June 24, 2019, 09:20:22 am
Well EITHER some process (or a bunch of them) are progressively using memory.

OR

Something is caching a lot to memory .. which usually wouldn't be an issue in and of itself because if something requires real memory the caches would be dropped automatically to free enough space.

But currently you seem to be saying:-

a) nothing is progressively using real memory
AND
b) manually flushing the caches has no effect (so it's not caches)

So if there's nothing eating real memory, and nothing being loaded into caches, what makes you think this is a memory problem ?

Let's try this ..

Reboot your PC then post the output from
Code: [Select]
free -mthen run your PC for a while, and when you think memory is filling up, post the output from:
Code: [Select]
free -magain.

This won't tell us "what" is using the memory, but it should give us an indication of whether it's caches or real memory being used.
Title: Re: RAM fills up
Post by: spence on June 24, 2019, 10:38:55 am
following along here, for me it's all about Firefox...


  (https://imgur.com/AbYXc9Cl.png)
 (https://i.imgur.com/AbYXc9C.png)

 >:(
Title: Re: RAM fills up
Post by: mefibo on June 24, 2019, 11:40:50 am
As I posted before, starting directly after boot and with intervals of 1 hour:

Code: [Select]
mefibo@mefibo-HP-Stream-Notebook-PC-11 ~ $ free -m
              total        used        free      shared  buff/cache   available
Mem:           1884         429         455          36         999        1265
Swap:          1359           0        1359
mefibo@mefibo-HP-Stream-Notebook-PC-11 ~ $ free -m
              total        used        free      shared  buff/cache   available
Mem:           1884         773          69          40        1042         930
Swap:          1359           0        1359
mefibo@mefibo-HP-Stream-Notebook-PC-11 ~ $ free -m
              total        used        free      shared  buff/cache   available
Mem:           1884        1087          76          40         720         628
Swap:          1359           0        1359
mefibo@mefibo-HP-Stream-Notebook-PC-11 ~ $ free -m
              total        used        free      shared  buff/cache   available
Mem:           1884        1404          77          41         402         308
Swap:          1359           5        1354

Will screenshots of Htop help? How do I include an image; png jpg or gif in a post?

Firefox consumes lots of memory but that is freed after closing the app.
Title: Re: RAM fills up
Post by: mefibo on June 24, 2019, 11:49:26 am
Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

I am running out of  patience and I am definitely in pain. Waiting for enlightenment but leaning to a fresh install. Should I try an older version?
And when I install programs, should I get the most recent from the developers website or install an - older - version in the Program-manager coming with Peppermint? The first option I chose for my current installation.
Title: Re: RAM fills up
Post by: mefibo on June 24, 2019, 12:12:20 pm
I am gonna perform a clean install. See you after completion.
Title: Re: RAM fills up
Post by: PCNetSpec on June 24, 2019, 12:14:32 pm
Well SOMETHING is taking up 'actual' memory (not just caches) because it steadily climbs from 429 --> 773 --> 1087 --> 1404
(with the caches actually shrinking to make room as they should)

You need to use htop to figure out what it is.
Code: [Select]
htop -s PERCENT_MEMshould help.

[EDIT]

Your call about the reinstall ;)
Title: Re: RAM fills up
Post by: mefibo on June 24, 2019, 12:18:52 pm
I have watched about everything in Htop; NOTHING IS INCREASING. I don´t know what else to do but a clean install

The Htop command you are suggesting MEM% etc. I have used; shows Python3 at 3 PIDs, nordvpn at 12 PIDs, NOT INCREASING
Title: Re: RAM fills up
Post by: PCNetSpec on June 24, 2019, 01:22:58 pm
You understand how top and htop work right ?

htop (when started with that command) dynamically displays the processes CURRENTLY using the most memory. whatever is eating the RAM may not have moved up the list to the top yet .. but the ONLY way to figure out what's using the memory is by process monitoring.

You can always use the down arrow key to look at processes that haven't risen into the top ten or so yet .. but only you can monitor those processes in real time and keep an eye out for errant processes.
Title: Re: RAM fills up
Post by: spence on June 25, 2019, 06:19:16 pm
Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

I am running out of  patience and I am definitely in pain. Waiting for enlightenment but leaning to a fresh install. Should I try an older version?
And when I install programs, should I get the most recent from the developers website or install an - older - version in the Program-manager coming with Peppermint? The first option I chose for my current installation.

 :-\ you quoted my tagline @mefibo... which is appended on ALL of my posts just as PCNetSpec's is... neither of which are directed towards any individual user. Taglines are merely phrases or sayings we find pertinent or amusing, a lingering artifact of the days when support was provided via newsgroups and everyone collected taglines... 

Complete reinstalls are not always the answer, but please do let us know how you get on.    ;)
Title: Re: RAM fills up
Post by: mefibo on June 26, 2019, 05:12:47 am
After reinstalling, same problem occurs. Htop shows, at the top:

Code: [Select]
python /usr/lib/linuxmint/mintUpdate/mintUpdate.py show2.7% MEM, 3 PIDs

Code: [Select]
nemo-desktop2.3% MEM, 4 PIDs

Both not increasing. The next process increases and decreases over time and is constantly running:

Code: [Select]
/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -notulisten tcp vt72.0% MEM, 4PIDs

Next process:

Code: [Select]
/usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/1.7% MEM, 6 PIDs

I have tried Linux Mint also; no problem. But I like the Peppermint distro better and bluetooth did not work.

Title: Re: RAM fills up
Post by: mefibo on June 26, 2019, 07:45:20 am
I am sorry, have found out that the processes I entered are not complete. However, I have killed all but the one with tcp vt7; this ends withh -novtswich. I can only kill this one as user root, then I get the login screen.
Did not stop the memory filling up.
Title: Re: RAM fills up
Post by: mefibo on June 26, 2019, 10:43:36 am
Is there a way to download an older version of peppermint? I cannot seem to find it. I have seen an older version to work properly with other OSs
Title: Re: RAM fills up
Post by: pin on June 26, 2019, 01:11:13 pm
Yes, go to the bottom of the main page and you should find the links to earlier versions.
Title: Re: RAM fills up
Post by: mefibo on June 26, 2019, 06:08:39 pm
Problem solved! I have installed Peppermint 9 and memory usage is stable.
Title: Re: RAM fills up
Post by: mefibo on June 26, 2019, 06:15:27 pm
I am content with this solution; I will mark this subject as solved because I no longer have 10. One last question: Is there something I should do to prevent the system to update to Peppermint 10?
Title: Re: RAM fills up
Post by: mefibo on June 26, 2019, 07:25:32 pm
No joy, bluetooth does not work. Cannot find JBL2 Speaker. Can I solve this problem in Peppermint 9? Should I open a new topic?
Title: Re: RAM fills up
Post by: pin on June 26, 2019, 08:57:55 pm
I am content with this solution; I will mark this subject as solved because I no longer have 10. One last question: Is there something I should do to prevent the system to update to Peppermint 10?

No, Peppermint only does stable releases. You will stay on PM9, unless you manually update it.
Support for PM9 ends 2023, so enjoy and don't be afraid of updates  :)
Title: Re: RAM fills up
Post by: pin on June 26, 2019, 09:00:31 pm
No joy, bluetooth does not work. Cannot find JBL2 Speaker. Can I solve this problem in Peppermint 9? Should I open a new topic?

Yes, please. Also, when you do provide the output of
Code: [Select]
lspci
Title: Re: RAM fills up
Post by: mefibo on June 27, 2019, 10:02:42 am
Though technically the problem is not solved; but I am staying with Peppermint 9 even when I cannot connect the bluetooth speaker. So I will mark this topic as SOLVED.
I posted a new topic Bluetooth speaker not found.
Thank you all for the help.
Title: Re: RAM fills up (SOLVED)
Post by: PCNetSpec on July 01, 2019, 04:40:10 am
For anyone reading this .. the answer to this problem turned out to be a kernel regression on this specific hardware.

Upgrading either Peppermint 9 to the hwe-18.04-edge track with
Code: [Select]
sudo apt-get install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04then
Code: [Select]
sudo apt-get install --install-recommends linux-generic-hwe-18.04-edgeor Peppermint 10 to the hwe-18.04-edge track with just
Code: [Select]
sudo apt-get install --install-recommends linux-generic-hwe-18.04-edgefixed the issue by moving to the 5.0 kernel, as can be seen here:
https://forum.peppermintos.com/index.php/topic,8605.msg88206.html#msg88206