Tool/software: Linux
Hello experts,
We are using Beaglbone Black based custom board, with 256MB RAM and 4GB eMMC, with kernel 3.12
I wanted to test swapfile on the board, I followed following steps to create swap file and mount it as swap partition.
Added following lines in /etc/fstab
/var/eventlog/swap/swapfile none swap sw,pri=32767 0 0
Then followed steps.
mkdir -p /var/eventlog/swap/ dd if=/dev/zero of=/var/eventlog/swap/swapfile bs=1M count=256 chmod 0600 /var/eventlog/swap/swapfile mkswap /var/eventlog/swap/swapfile swapon /var/eventlog/swap/swapfile
After that I in free command I see following output
# free
total used free shared buffers
Mem: 251324 132244 119080 0 5668
-/+ buffers: 126576 124748
Swap: 262140 0 262140
Following is output of /proc/swaps
# cat /proc/swaps Filename Type Size Used Priority /var/eventlog/swap/swapfile file 262140 0 -1
So swap seems to be enabled,
Then I ran memory intensive tasks in the system (tar extraction), I see free memory going low but pages are not swapped out to swapfile
I don't know what is going wrong,
Any suggestion, pointer ?
Thank you,
Regards,
Ankur