[5092] in RedHat Linux List
Re: swap space limited?
daemon@ATHENA.MIT.EDU (David Reed)
Mon Nov 18 23:24:10 1996
From: DavidF.Reed@amd.com (David Reed)
To: redhat-list@redhat.com
Date: Mon, 18 Nov 1996 22:18:04 -0600 (CST)
Cc: Jeffery.Short@beast.amd.com
In-Reply-To: <199611190220.UAA14535@babba.cu-online.com> from "Otto Hammersmith" at Nov 18, 96 08:20:52 pm
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
>
> David Reed wrote:
> >
> > Perhaps I am confused; I think there is some size limit on swap which is
> > smaller than I need...
> >
> > I configured hdc (a 490 Meg HD) into 2 partitions; hdc1 and hdc2...
>
> Otto Hammersmith wrote:
>
> You're right... IIRC a single swap partition is limited to 128 megs.
>
> All you have to do is make 4 ~122 meg partitions. Keep in mind that
> swap space should be a multiple of the memory page size (4k on x86,
> donno about others). If you don't use a multiple of the page size,
> you'll have some wasted space... though it's not more than 3k per swap
> partition.
>
> Good luck.
>
> --
> -Otto
>
Otto,
(my favorite uncle shared this name with you)...
thanks! this was exactly it...
old setup:
[root@carrizo /root]# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 48066560 45015040 3051520 26439680 6668288 24551424
Swap: 133885952 0 133885952
MemTotal: 46940 kB
MemFree: 2980 kB
MemShared: 25820 kB
Buffers: 6512 kB
Cached: 23976 kB
SwapTotal: 130748 kB
SwapFree: 130748 kB
then I swapoff'ed the device, fdisk'ed it:
Disk /dev/hdc: 16 heads, 63 sectors, 995 cylinders
Units = cylinders of 1008 * 512 bytes
Device Boot Begin Start End Blocks Id System
/dev/hdc1 1 1 508 256000+ 83 Linux native
/dev/hdc2 509 509 709 101304 82 Linux swap
/dev/hdc3 710 710 910 101304 82 Linux swap
/dev/hdc4 911 911 995 42840 82 Linux swap
Then the fstool to format the 2,3,4 partitions as swap space, and mount them
as swap, giving me (on reboot):
Disk /dev/hdc: 16 heads, 63 sectors, 995 cylinders
Units = cylinders of 1008 * 512 bytes
[root@carrizo /root]# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 48066560 21106688 26959872 19791872 1712128 10371072
Swap: 251326464 0 251326464
MemTotal: 46940 kB
MemFree: 26328 kB
MemShared: 19328 kB
Buffers: 1672 kB
Cached: 10128 kB
SwapTotal: 245436 kB
SwapFree: 245436 kB
[root@carrizo /root]#
and the message as I boot shows it all being mounted!
thanks for the tip; the rest fell into place easily...
cheers
Dave
--
David F. Reed
Senior Member of the Technical Staff
Processor Development
Advanced Micro Devices
tel: (512) 602-5213 email: davidf.reed@amd.com
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null