Swap Space Not Being Used?
Rick Bilonick
rab at nauticom.net
Fri Sep 22 19:03:30 UTC 2006
> Two choices... Change the "LABEL=SWAP-hda6" in your fstab to read
> simply "/dev/hda6" or go back and rebuild the swap again, and this time
> specify the label name using the -L option:
>
> mkswap -L "SWAP-hda6" /dev/hda6
>
> > Rick B.
>
> Mike
OK, I did "/sbin/mkswap -L "SWAP-hda6" /dev/hda6" and the results after
rebooting:
[chippy at ophth-bilora ~]$ dmesg | grep swap
Kernel command line: ro root=/dev/VolGroup00/LogVol00 rhgb quiet
resume2=swap:/dev/hda6
audit(1158951063.679:4): avc: denied { unlink } for pid=1852
comm="swapon" name="blkid.tab.old" dev=dm-0 ino=1733818
scontext=system_u:system_r:fsadm_t tcontext=root:object_r:etc_t
tclass=file
audit(1158951063.791:5): avc: denied { unlink } for pid=1852
comm="swapon" name="blkid.tab.old" dev=dm-0 ino=1733818
scontext=system_u:system_r:fsadm_t tcontext=root:object_r:etc_t
tclass=file
Adding 1028120k swap on /dev/hda6. Priority:-1 extents:1
across:1028120k
[chippy at ophth-bilora ~]$ free -m
total used free shared buffers
cached
Mem: 495 304 190 0 19
169
-/+ buffers/cache: 115 379
Swap: 1004 0 1004
[chippy at ophth-bilora ~]$
At first I was concerned about the dmesg entries but the free command
shows that swap is on so I assume this fixes the problem. I also ran
some programs that are memory hogs and swap is actually used. Thanks!
Rick B.
More information about the fedora-list
mailing list