I recently setup a swap file on my USB drive (Merlins 384.8_2) and while everything looks okay from the logs:
Jan 6 10:43:39 usb: USB vfat fs at /dev/sda mounted on /tmp/mnt/ASUS.
Jan 6 10:43:40 custom_script: Running /jffs/scripts/post-mount (args: /tmp/mnt/ASUS ) - max timeout = 120s
Jan 6 10:43:40 rc_service: hotplug 1871:notify_rc restart_nasapps
it doesn't appear that the swap file is being recognized:
ASUSWRT-Merlin RT-AC86U 384.8-2 Sat Dec 8 18:21:22 UTC 2018
myrouter:/tmp/home/root# free
total used free shared buffers cached
Mem: 440436 274184 166252 0 72 27324
-/+ buffers/cache: 246788 193648
Swap: 0 0 0
If I manually use this command swapon /tmp/mnt/ASUS/myswap.swp I then see this:
myrouter:/tmp/home/root# free
total used free shared buffers cached
Mem: 440436 275956 164480 0 72 28324
-/+ buffers/cache: 247560 192876
Swap: 262140 0 262140
Since this is the first time I've done this, is this normal behavior until system memory starts to fill up and it starts using the swap location? Many thanks, in advance.
Jan 6 10:43:39 usb: USB vfat fs at /dev/sda mounted on /tmp/mnt/ASUS.
Jan 6 10:43:40 custom_script: Running /jffs/scripts/post-mount (args: /tmp/mnt/ASUS ) - max timeout = 120s
Jan 6 10:43:40 rc_service: hotplug 1871:notify_rc restart_nasapps
it doesn't appear that the swap file is being recognized:
ASUSWRT-Merlin RT-AC86U 384.8-2 Sat Dec 8 18:21:22 UTC 2018
myrouter:/tmp/home/root# free
total used free shared buffers cached
Mem: 440436 274184 166252 0 72 27324
-/+ buffers/cache: 246788 193648
Swap: 0 0 0
If I manually use this command swapon /tmp/mnt/ASUS/myswap.swp I then see this:
myrouter:/tmp/home/root# free
total used free shared buffers cached
Mem: 440436 275956 164480 0 72 28324
-/+ buffers/cache: 247560 192876
Swap: 262140 0 262140
Since this is the first time I've done this, is this normal behavior until system memory starts to fill up and it starts using the swap location? Many thanks, in advance.