[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] [RaQ4] Swap File



On Monday 31 March 2003 22:08, William J.A. Brillinger wrote:
> ok I did this:
>
> [root /root]# mkswap /dev/hda5
> Setting up swapspace version 1, size = 41119744 bytes
>
> [root /root]# swapon -a
>
> [root /root]# cat /etc/fstab
> /dev/hda1             /         ext2    defaults                          1
> 1 /dev/hda5             swap      swap    defaults                         
> 0 0 /dev/hda3             /var      ext2    defaults,nosuid                
>   2 2 /dev/hda4             /home     ext2   
> defaults,usrquota,grpquota,grpid  3 3 none                  /proc     proc 
>   defaults                          0 0 none                  /dev/pts 
> devpts  gid=5,mode=0620                   0 0
>
> [root /root]# cat /proc/meminfo
>          total:    used:    free:  shared: buffers:  cached:
> Mem:  529514496 325353472 204161024 230739968 62603264 140709888
> Swap: 41115648        0 41115648
> MemTotal:    517104 kB
> MemFree:     199376 kB
> MemShared:   225332 kB
> Buffers:      61136 kB
> Cached:      137412 kB
> SwapTotal:    40152 kB
> SwapFree:     40152 kB
>
>
> Now I have swap space, but not quite as much as I expected :(
> - Bill

IIRC swap is limited, by the kernel, X number of pages of memory
I am not sure the swap will live through a reboot.
And why swapon -a which reads fstab didin't work?
swapon -a is what will be executed on reboot, so I would guess you won't have 
swap after the reboot.

Gerald
-- 
http://frontstreetnetworks.com | http://store.raqware.com
Front Street Networks LLC      |  Phone: 203-785-0699
229 Front Street, Ste #C, New Haven, CT 06513-3203