Quantcast
Viewing all articles
Browse latest Browse all 486

Issue using swap

i've noticed swap is not being used on my armbian system (in this case, it is a Banana Pi R1).  I tried to dig deeper and spent several hours looking into a cause and cannot find any way to resolve.

 

I updated everything yesterday to ensure there was no issue with a known bug in a previous package.

 

$ uname -a
Linux raspberrypi 4.9.7-sunxi #1 SMP Thu Feb 2 01:52:06 CET 2017 armv7l GNU/Linux
 
I have my swap located on a 2.5" HD that is attached.  It is on the /u01 mounted partition as a swap file.  I tried creating a second just to eliminate that is a file issue (using mkswap) and trying to activate it.   Both files will activate and show in use, but % swap always remains 0.
 
$ ls -l /u01/swap*
-rw------- 1 root root 1048576000 Apr 13  2016 /u01/swap
-rw-r--r-- 1 root root 1073741824 Feb 19 11:11 /u01/swap2
 
 $ free
             total       used       free     shared    buffers     cached
Mem:       1022748    1000784      21964      20600      12948     802580
-/+ buffers/cache:     185256     837492
Swap:      1023996          0    1023996
 
 
# cat /proc/sys/vm/swappiness
60
 
 
 sysctl -n vm.swappiness 
60
 
# swapon
NAME      TYPE  SIZE USED PRIO
/u01/swap file 1000M   0B   -1
 
 
Yesterday I was getting processes killed because of out of memory.  The system refuses to use the swap.

 


Viewing all articles
Browse latest Browse all 486

Trending Articles