swap partition made but not working, what do i do?
kde 3.5.9 on slack 12.1.
i made a swap partition when i setup my system but now i notice in the task manager that only my RAM is being used, and next to it is written "No swap space available". how can i begin about diagnosing this problem? it seems massive :( is the swap space declared incorrectly or something along those lines? |
I believe the commands are "makeswap hd<whatever>" then "swapon" But double check with the Gurus.
|
fstab.
After you finish the with the previous post might want to add the swap drive to fstab so the system uses it when it boots.
|
Have a look at
Code:
man mkswap Code:
free |
swap partition made but not working ..
Hello,
You may want to first cat the fstab file and verify there is an entry for swap. ( # cat /etc/fstab ) if there isn't a line for swap, add this line to fstab: /dev/hdxx none swap prepare your partition as a swap file # mkswap /dev/hdxx (use tabs not spaces above) : notes : /dev/hdxx is your swap partition : none is the mount point : swap is file system type : man mkswap for more info on preparing swap file after doing this reboot your linux system - or - type # swapon -a to turn on the swap device Mike |
Hey, very informing, but i have the same problem. I did the commands Mike said but no use. Could it be because i dont have swap support by kernel? /proc/filesystems doesnt show up 'swap'.
Mem: 381892k total, 314304k used, 67588k free, 37012k buffers Swap: 752424k total, 0k used, 752424k free, 198316k cached bash-3.1$ free total used free shared buffers cached Mem: 381892 315236 66656 0 37364 199028 -/+ buffers/cache: 78844 303048 Swap: 752424 0 752424 |
You didn't include the '#' when you typed the commands Mike listed did you? If so, do them again without the '#' as what he listed should have worked.
|
I did (i mean i did them as root). Also modified fstab file and rebooted.
|
Quote:
|
I loaded xmms gimp kword gqview mplayer opera and still 0k... O.o
|
Quote:
It's surprising how efficient linux can be with its memory, unlike vista. Quite how Microsoft get it to use so much memory to do nothing is beyond me. When I had my 1.5GB Ram system, I never saw linux use any swap at all. This 128MB box on the other hand struggles a little bit. ;) |
Ok now its using a bit:
Swap: 752424k total, 1124k used, 751300k free, 169996k cached Thanks for info. |
Quote:
|
All times are GMT -5. The time now is 01:21 PM. |