2

I have a problem with system memory cache, i think it is bigger than normals. after 5-10 minute of usage, system become unusable and i must restart my "Asus X451-CA" laptop. this command ran upon user logged in, firefox runed:

free -m
             total       used       free     shared    buffers     cached
Mem:          1821       1552        269        377         34        856
-/+ buffers/cache:        661       1159
Swap:         1932          0       1932

and after a while system will freeze:

free -m
             total       used       free     shared    buffers     cached
Mem:          1821       1649        172        581          0        632
-/+ buffers/cache:       1015        805
Swap:         1932         31       1901

more info:

matrix@matrix-X451CA:~$ sysctl vm.swappiness 
vm.swappiness = 60
matrix@matrix-X451CA:~$ sysctl vm.min_free_kbytes 
vm.min_free_kbytes = 65536

i want more swap space being used and reduce cached memory. i tried:

# sysctl -w vm.swappiness=30
# sysctl -w vm.swappiness=90
# sysctl -w vm.min_free_kbytes=65536
# sysctl -w vm.min_free_kbytes=131072

no changes at all.


edit: while system freezes "kswapd0" have most CPU use. I use Ubuntu 14.04 with 3.13.0-32 kernel.

  • requested info already in are main post... – ma3x Aug 4 '14 at 9:51
  • Ok . Which Ubuntu and which kernel? – Sagar Panchal Aug 4 '14 at 9:54
  • Do you use preload or swapd? – Sagar Panchal Aug 4 '14 at 9:56
  • main post edited. – ma3x Aug 4 '14 at 10:21
  • 1
    I think main issue is "cache become full without swaping". Ubuntu do not utilize swap normally. I had ArchLinux before this and there was no errors. also i had Ubuntu 14.04 before ArchLinux and there was no errors too. Ubuntu must use more swap but does not. I tried higher "vm.swappiness" values but did not helped... :( What to do now?! I have a fast SSD and i have no problems with high swap usage... – ma3x Aug 4 '14 at 13:20

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.