Hi, Your swap is already ON as it is showing in # free, you dont need to ON the swap again or create swap with mkswap command. Can you tell which Linux you are using and the Kernel version?? Application used? Mubeen.
--- On Tue, 23/12/08, Viket Trivedi <[email protected]> wrote: From: Viket Trivedi <[email protected]> Subject: Re: [LinuxVadaPav] swap is not used by linux To: [email protected] Date: Tuesday, 23 December, 2008, 4:34 PM On Tue, Dec 23, 2008 at 4:32 PM, Viket Trivedi <viket.trivedi@ gmail.com>wrote: > > > On Tue, Dec 23, 2008 at 2:30 PM, suryabhan yadav < > suryabhan_linux@ yahoo.co. in> wrote: > >> Dear Admin, >> >> In my server I have 1 gb ram 2 gb swap, but swap is not used. When ram >> utilisation is more than 1gb system reboots. >> Ram uses always shows 0. How to enable the swap. plz reply me.... >> I used # swapon /dev/sda2 to on the swap. >> >> How to enable the swap. >> >> OUTPUTS:- >> >> [r...@idea ~]# free -m >> total used free shared buffers cached >> Mem: 1010 666 344 0 73 342 >> -/+ buffers/cache: 251 759 >> Swap: 2000 0 2000 >> >> [r...@idea ~]# swapon -s >> Filename Type Size Used Priority >> /dev/sda2 partition 2048276 0 -1 >> >> thanx, >> suryabhan... >> >> Add more friends to your messenger and enjoy! Go to >> http://messenger. yahoo.com/ invite/ >> >> >> > > > Hi suryabhan, > > To stop your system from rebooting due to memory issue, first thing is you > create a pagefile using mkswap. see if it stops your rebooting. > > -- > > Regards, Viket > Follow me on Twitter: http://twitter. com/viket > Once this stops rebooting your system, then do the following. mkswap /dev/'swap partition' swapon -vagedit /etc/fstab UUID='your correct swap UUID' none swap sw 0 0 replace texts in single quote with actuals. when you edit your /etc/fstab file make sure that your swap partition has the new UUID. something sort of that see if that could help -- Regards, Viket Follow me on Twitter: http://twitter. com/viket [Non-text portions of this message have been removed] Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ [Non-text portions of this message have been removed]
