RAM issue and system freeze

Hi,
I’ve freshly installed LEAP 15.0 on my computer. (Gnome Desktop)
After the boot, when the computer is idle, I’ve noticed there is 1.9GB used (to do almost nothing)
Quickly, when some windows are opened the computer runs out of RAM (4GB installed) and freezes.

I find it weird as LEAP 15.0 spec is only 2GB RAM.
Previously I ran LEAP 42.1 with no problems.
HAs anyone the same issue? what should be the RAM occupation?
Thanks for your help.

Have you run top to see what eats memory??

Fairly standard Gnome install here. I see the following:
some 200MB RAM in “runlevel 3” logged to a console (no Gnome…)
some 1.1 GB with one user logged to the desktop, terminal with “top” running
some 1.4 GB with Gnome System Monitor running.

To reach 1.9 GB used RAM like at this moment:

top - 17:51:59 up 7 min,  2 users,  load average: 0,17, 0,18, 0,10
Tasks: 289 total,   1 running, 288 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0,2 us,  0,0 sy,  0,0 ni, 99,8 id,  0,0 wa,  0,0 hi,  0,0 si,  0,0 st
KiB Mem : 16304628 total, 12954504 free,  **1891200 used**,  1458924 buff/cache
KiB Swap: 16777212 total, 16777212 free,        0 used. 13903456 avail Mem 

I have a terminal, Firefox with 20 tabs open, Evolution, Files, Image Viewer, LibreOffice Calc with a fairly complex spreadsheet open.
So I guess you have a RAM eater somewhere…

Hi,
Thank you all for your reply.
I haven’t succeeded to get clues from top. There are many small consumers, everything seems normal.
Here is the result of top with terminal and firefox (one tab, suse forums). Only one user logged.
Which makes 2.2GB used memory!

top - 17:58:23 up 1 day,  8:12,  3 users,  load average: 0,31, 0,32, 0,15
Tasks: 242 total,   1 running, 241 sleeping,   0 stopped,   0 zombie
%Cpu(s):  1,2 us,  0,3 sy,  0,0 ni, 98,3 id,  0,0 wa,  0,0 hi,  0,1 si,  0,0 st
KiB Mem :  3894244 total,   980412 free,  2295652 used,   618180 buff/cache
KiB Swap:        0 total,        0 free,        0 used.  1415320 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                     
30092 kerinao+  20   0 1895476 243024 148004 S 4,620 6,241   0:17.61 Web Content                                 
30026 kerinao+  20   0 2507532 337176 146344 S 1,320 8,658   0:23.58 firefox                                     
    7 root      20   0       0      0      0 S 0,330 0,000   0:01.06 ksoftirqd/0                                 
 1700 kerinao+  20   0  312284  94432  44260 S 0,330 2,425  15:20.24 X                                           
 2020 kerinao+  20   0 4183024 573920  81440 S 0,330 14,74  18:42.95 gnome-shell                                 
30023 kerinao+  20   0   41396   3988   3372 R 0,330 0,102   0:01.43 top                                         

I wonder what application is “Web Content”? I’ve never seen it before (I never use Gnome). Is this something run in a Firefox tab? If yes, do you have it open always when you have Firefox open?

Yes, “Web Content” is something related to web pages open in Firefox (not sure if multimedia content and/or javascripts) and there may be several running at the same time. Closing and reopening Firefox might temporarily lower the amount of RAM used.

Nothing strange in what you posted, but since the (default) sort column is “%CPU”, try moving the sort column to “%MEM” with the “>” key to see if there is a hidden offender.

Ok Linux does not like non used memory to go unused so it uses that for disk cache which will be used if needed by a program but other wise is used to optimize disk access. So what “you” use is 600 meg less then the 2.2 gig shown as used. so call it 1.6 gig which is not to far from what I’d expect. the 600 meg of cache will become used if needed. and you have about 1.6 gig before you start to seriously start to use cache memory. currently you do not use any cache. Until you do I would not worry.

Sorry, that isn’t correct, it doesn’t add up:

KiB Mem :  3894244 total,   980412 free,  2295652 used,   618180 buff/cache

2295652 used + 618180 cache + 980412 free = 3894244 total
So 2.2GB were actually in use at the time of this snapshot.
I would not worry either, if the OP were not claiming that the system quickly runs out of RAM and freezes…

Are you deliberately NOT using any SWAP or is something wrong in your configuration?
Kernel memory allocation works better when (even a small amount of) SWAP is available and you would not experience a sudden freeze when you run out of physical RAM.

Here are some news.
Sorry for the delay, I have young childrens who don’t care the linux kernel…

TOP
Sorting TOP to %MEM shows me that almost 15% of memory is used by Evolution services that I don’t care actually. Seeking the forums, I haven’t found a way to stop these background services.

SWAP
No SWAP is not a choice. I didn’t change anything in the standard installation. But the partitioning since I install over the old version and start doing it with opensuse 11.2.
When running out of memory, the system slows down, you can hear HDD acces and you need many minutes to move the mouse and close windows. Generally it ends with hard shutdown, I’m not used to unstable system. Actually it is the first time since 11.2 !!

With small memory you really need swap. And 4 gig is small these days

Following your advice I’ve checked the system and noticed the SWAP partition was not mounted.
I corrected that and now the SWAP is in used and the free memory has improved.
If someone finds a way to stop the bloody EVOLUTION, that would just be perfect
Here is now the result of TOP juste after start with no application started

top - 22:43:32 up 2 min,  3 users,  load average: 1,01, 0,75, 0,31
Tasks: 242 total,   2 running, 240 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0,2 us,  0,2 sy,  0,0 ni, 99,6 id,  0,0 wa,  0,0 hi,  0,1 si,  0,0 st
KiB Mem :  3894244 total,  1897900 free,  1451044 used,   545300 buff/cache
KiB Swap:  3152892 total,  3152892 free,        0 used.  2205616 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND              
 1976 kerinao+  20   0 3491516 212064 101164 S 0,993 5,446   0:05.02 gnome-shell          
 1443 gdm       20   0 3371352 185900  97696 S 0,000 4,774   0:03.07 gnome-shell          
 2204 kerinao+  20   0  730260  87412  40760 S 0,000 2,245   0:00.75 gnome-software       
 2203 kerinao+  20   0 1061220  81212  57080 S 0,000 2,085   0:00.48 evolution-alarm      
 2213 kerinao+  20   0 1122892  80940  54172 S 0,000 2,078   0:00.30 evolution-calen      
 2265 kerinao+  20   0 1186808  77172  50580 S 0,000 1,982   0:00.31 evolution-calen      
 2321 kerinao+  20   0 1260556  74816  50408 S 0,000 1,921   0:00.24 evolution-calen      
 2243 kerinao+  20   0  711432  74144  53324 S 0,000 1,904   0:00.62 cairo-dock           
 1656 kerinao+  20   0  281392  74132  43412 S 0,662 1,904   0:02.93 X                    
 2324 kerinao+  20   0  982504  73524  49924 S 0,000 1,888   0:00.21 evolution-addre      
 2352 kerinao+  20   0 1109696  73516  50360 S 0,000 1,888   0:00.20 evolution-addre      
 2256 kerinao+  39  19 1686100  72224  44216 S 0,000 1,855   0:00.36 tracker-extract      
 2006 kerinao+  20   0  932108  69928  46736 S 0,000 1,796   0:00.21 gnome-shell-cal      
 2029 kerinao+  20   0  844212  68300  49936 S 0,000 1,754   0:00.31 evolution-sourc      
 2049 kerinao+  20   0  771844  63060  40424 S 0,000 1,619   0:00.16 goa-daemon           
 1391 gdm       20   0  265156  61312  35108 S 0,000 1,574   0:04.45 X                    
 2246 kerinao+  20   0  935032  61088  40188 S 0,000 1,569   0:00.16 deja-dup-monito      
 2135 kerinao+  20   0  712464  52624  33864 S 0,000 1,351   0:00.19 gsd-color            
 2144 kerinao+  20   0 1182848  50836  33928 S 0,000 1,305   0:00.20 gsd-media-keys       
 2113 kerinao+  20   0  543128  50616  33856 S 0,000 1,300   0:00.19 gsd-xsettings        
 2014 kerinao+  20   0  391320  50248  31960 S 0,000 1,290   0:00.15 ibus-x11             
 2128 kerinao+  20   0  469188  50052  31732 S 0,000 1,285   0:00.17 gsd-a11y-keyboa      
 1540 gdm       20   0  711452  50040  33372 S 0,000 1,285   0:00.18 gsd-color            
 1556 gdm       20   0  977004  49832  33072 S 0,000 1,280   0:00.18 gsd-media-keys       
 1558 gdm       20   0  556040  49696  32940 S 0,000 1,276   0:00.17 gsd-power            
 2097 kerinao+  20   0  630732  49600  32744 S 0,000 1,274   0:00.20 gsd-power            
 1524 gdm       20   0  543016  49552  32996 S 0,000 1,272   0:00.16 gsd-xsettings        
 2112 kerinao+  20   0  475980  48332  31864 S 0,000 1,241   0:00.19 gsd-wacom            
 2141 kerinao+  20   0  540784  47760  31624 S 0,000 1,226   0:00.18 gsd-keyboard         
 1521 gdm       20   0  475496  47544  31172 S 0,000 1,221   0:00.16 gsd-wacom            
 2133 kerinao+  20   0  390964  47432  31408 S 0,000 1,218   0:00.16 gsd-clipboard        
 1503 gdm       20   0  391020  47308  31288 S 0,000 1,215   0:00.14 ibus-x11             
 2137 kerinao+  20   0  486232  47084  28188 S 0,000 1,209   0:00.21 gsd-datetime         
 1547 gdm       20   0  540360  46908  30896 S 0,000 1,205   0:00.16 gsd-keyboard         
 1525 gdm       20   0  468776  46728  30688 S 0,000 1,200   0:00.14 gsd-a11y-keyboa      
 1537 gdm       20   0  390608  46624  30640 S 0,000 1,197   0:00.14 gsd-clipboard        
 2274 kerinao+  20   0  827484  41920  26332 S 0,000 1,076   0:00.07 zeitgeist-datah 

Upgrading the system from a previous version may lead to an unmounted SWAP if the SWAP is reformatted, changing its UUID, and /etc/fstab is not changed as well and uses UUIDs to mount partitions.
With the SWAP in use your RAM usage looks pretty normal now, you should not experience freezes anymore.
I’m using Evolution as a mail client, so I’m not willing to disable it here, but I will come back if I find something useful.

Trying to uninstall Evolution from a virtual machine install I ended up removing the following list of packages:

bijiben-lang
evolution-data-server-lang
evolution-ews-lang
evolution-lang
folks-lang
gnome-contacts-lang
gnome-maps-lang
gnome-shell-calendar
gnome-shell-search-provider-bijiben
gnome-shell-search-provider-contacts
evolution-ews
bijiben
gnome-contacts
gnome-maps
evolution
libfolks-telepathy25
libfolks-eds25
libedataserverui-1_2-2
libfolks25
evolution-data-server
libebook-1_2-19
libedata-book-1_2-25
libedata-cal-1_2-28
libebackend-1_2-10
libecal-1_2-19
libebook-contacts-1_2-2
libedataserver-1_2-23
libcamel-1_2-61

If you can really get without all of them you can uninstall all and spare some 200MB of RAM; I doubt that this is worth the effort, but your system… your choice.
Expect a number of conflicts to be solved before the YaST-Software resolver accepts that list, maybe it is easier to start with the libe* packages.

Thank you for your advice.
With the swap activated, I no longer experience system freeze. well done.
So I think I can accept to lose 200MB RAM, I will probably have more pb by removing all the evolution related packages.

all the more as today I have an other pb : after lost of power supply when resuming from suspend, I no longer have internet connectivity…I’m going to start a new thread :’(