macsat.com OpenWrt and ASUS WL Forum

OpenWrt (White Russian) => OpenWRT => Topic started by: gixie on February 06, 2008, 16:53:00 PM



Title: Swap file?
Post by: gixie on February 06, 2008, 16:53:00 PM
Hi all,

I have configured a swap file on a separate +256M partition...
It is loaded at startup, but when I issue free it shows that it is not used at all (all of it is free)
Why is that?


Title: Re: Swap file?
Post by: macsat on February 07, 2008, 10:58:26 AM

Could be there is no need to use it currently :-)

The system only uses swap when the running processes cannot fit into the physical memory. Swap is way slower than real memory.


Title: Re: Swap file?
Post by: schufti on February 07, 2008, 16:05:21 PM
Hi,

if you have a large hd (120 or 160 GB) then you can test if swap is working by starting a e2fsck /dev/hda1. Without swap this crashes after some time ...

schufti