Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* SWAP space allocation
@ 1997-09-17  4:00 Chuck Moore
  1997-09-29  4:00 ` Ronald Speth
  0 siblings, 1 reply; 6+ messages in thread
From: Chuck Moore @ 1997-09-17  4:00 UTC (permalink / raw)



Hi,

I have a RZ28D disk which is partitioned as follows:
> disklabel rz3c
... (stuff removed) ...
8 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:   131072        0    unused        0     0         # (Cyl.    0 - 95*)
  b:   401408   131072    unused        0     0         # (Cyl.   95*- 386*)
  c:  4110480        0    unused        0     0         # (Cyl.    0 - 2987*)
  d:  1191936   532480    unused        0     0         # (Cyl.  386*- 1253*)
  e:  1191936  1724416    unused        0     0         # (Cyl. 1253*- 2119*)
  f:  1194128  2916352    unused        0     0         # (Cyl. 2119*- 2987*)
  g:  1787904   532480      swap                        # (Cyl.  386*- 1686*)
  h:  1790096  2320384    unused        0     0         # (Cyl. 1686*- 2987*)

Can I change the swap area to partition 'c' and use the whole disk as swap ? 
(i.e. will I run into problems if I explicitly include cylinder 0 ? )

-- Chuck 






^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SWAP space allocation
  1997-09-17  4:00 SWAP space allocation Chuck Moore
@ 1997-09-29  4:00 ` Ronald Speth
  1997-10-01  4:00   ` Joe Spanicek
  0 siblings, 1 reply; 6+ messages in thread
From: Ronald Speth @ 1997-09-29  4:00 UTC (permalink / raw)



I could be wrong here but I belive that you can use the whole disk for swap
including cylinder 0.  The problem is when you try to use only a portion of the
disk as swap and you start the swap on cylinder 0.

Chuck Moore wrote:

> Hi,
>
> I have a RZ28D disk which is partitioned as follows:
> > disklabel rz3c
> ... (stuff removed) ...
> 8 partitions:
> #        size   offset    fstype   [fsize bsize   cpg]
>   a:   131072        0    unused        0     0         # (Cyl.    0 - 95*)
>   b:   401408   131072    unused        0     0         # (Cyl.   95*- 386*)
>   c:  4110480        0    unused        0     0         # (Cyl.    0 - 2987*)
>   d:  1191936   532480    unused        0     0         # (Cyl.  386*- 1253*)
>   e:  1191936  1724416    unused        0     0         # (Cyl. 1253*- 2119*)
>   f:  1194128  2916352    unused        0     0         # (Cyl. 2119*- 2987*)
>   g:  1787904   532480      swap                        # (Cyl.  386*- 1686*)
>   h:  1790096  2320384    unused        0     0         # (Cyl. 1686*- 2987*)
>
> Can I change the swap area to partition 'c' and use the whole disk as swap ?
> (i.e. will I run into problems if I explicitly include cylinder 0 ? )
>
> -- Chuck






^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SWAP space allocation
  1997-09-29  4:00 ` Ronald Speth
@ 1997-10-01  4:00   ` Joe Spanicek
  1997-10-01  4:00     ` Alexey Reshetov
  0 siblings, 1 reply; 6+ messages in thread
From: Joe Spanicek @ 1997-10-01  4:00 UTC (permalink / raw)



Ronald Speth wrote:
> 
> I could be wrong here but I belive that you can use the whole disk for swap
> including cylinder 0.  The problem is when you try to use only a portion of the
> disk as swap and you start the swap on cylinder 0.
> 
> Chuck Moore wrote:
> 
> > Hi,
> >
> > I have a RZ28D disk which is partitioned as follows:
> > > disklabel rz3c
> > ... (stuff removed) ...
> > 8 partitions:
> > #        size   offset    fstype   [fsize bsize   cpg]
> >   a:   131072        0    unused        0     0         # (Cyl.    0 - 95*)
> >   b:   401408   131072    unused        0     0         # (Cyl.   95*- 386*)
> >   c:  4110480        0    unused        0     0         # (Cyl.    0 - 2987*)
> >   d:  1191936   532480    unused        0     0         # (Cyl.  386*- 1253*)
> >   e:  1191936  1724416    unused        0     0         # (Cyl. 1253*- 2119*)
> >   f:  1194128  2916352    unused        0     0         # (Cyl. 2119*- 2987*)
> >   g:  1787904   532480      swap                        # (Cyl.  386*- 1686*)
> >   h:  1790096  2320384    unused        0     0         # (Cyl. 1686*- 2987*)
> >
> > Can I change the swap area to partition 'c' and use the whole disk as swap ?
> > (i.e. will I run into problems if I explicitly include cylinder 0 ? )
> >
> > -- Chuck

-- 

If you use cylinder 0 for the begining of the swap space it may 
overwrite your disklabel information which also contains the info that
the partition is a swap partition. You can use the whole disk as swap
partition but start it at cylinder 512 to be save - safe than sorry.

Joe



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SWAP space allocation
  1997-10-01  4:00     ` Alexey Reshetov
@ 1997-10-01  4:00       ` Joe Spanicek
  0 siblings, 0 replies; 6+ messages in thread
From: Joe Spanicek @ 1997-10-01  4:00 UTC (permalink / raw)



Alexey Reshetov wrote:
> 
> Joe Spanicek (joe@resptk.bhp.com.au) wrote:
> : Ronald Speth wrote:
> : >
> : > > 8 partitions:
> : > > #        size   offset    fstype   [fsize bsize   cpg]
> : > >   a:   131072        0    unused        0     0         # (Cyl.    0 - 95*)
> : > >   b:   401408   131072    unused        0     0         # (Cyl.   95*- 386*)
> : > >   c:  4110480        0    unused        0     0         # (Cyl.    0 - 2987*)
> : > >   d:  1191936   532480    unused        0     0         # (Cyl.  386*- 1253*)
> : > >   e:  1191936  1724416    unused        0     0         # (Cyl. 1253*- 2119*)
> : > >   f:  1194128  2916352    unused        0     0         # (Cyl. 2119*- 2987*)
> : > >   g:  1787904   532480      swap                        # (Cyl.  386*- 1686*)
> : > >   h:  1790096  2320384    unused        0     0         # (Cyl. 1686*- 2987*)
> : > >
> 
> : If you use cylinder 0 for the begining of the swap space it may
> : overwrite your disklabel information which also contains the info that
> : the partition is a swap partition. You can use the whole disk as swap
> : partition but start it at cylinder 512 to be save - safe than sorry.
> 
> : Joe
> --
> Therefore, root partition on rz?a starting on cylinder 0 will be
> cleaning disklabel? - Such disklabel (root with offset 0) installing
> on default. => disklabel is allocated on different place.
> Regards.
> ____________________________________________________
> Alexey Reshetov
> real@kpbank.ru

The root partition on rz?a which starts on cylinder 0 DOES NOT overwrite
the disklabel information. The system knows to keep away from cyclinder
0 when the file system is created. As for a SWAP partition it is not
considered and the disklabel can be overwritten. In DU V4.x and up, I
believe there was some code put in the kernal system to steer clear
from cyclinder 0 - but not for earlier versions. You can actually see
the code in one of the system kernel files but I can not remember which
one to look at.

Joe



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SWAP space allocation
  1997-10-01  4:00   ` Joe Spanicek
@ 1997-10-01  4:00     ` Alexey Reshetov
  1997-10-01  4:00       ` Joe Spanicek
  0 siblings, 1 reply; 6+ messages in thread
From: Alexey Reshetov @ 1997-10-01  4:00 UTC (permalink / raw)



Joe Spanicek (joe@resptk.bhp.com.au) wrote:
: Ronald Speth wrote:
: > 
: > > 8 partitions:
: > > #        size   offset    fstype   [fsize bsize   cpg]
: > >   a:   131072        0    unused        0     0         # (Cyl.    0 - 95*)
: > >   b:   401408   131072    unused        0     0         # (Cyl.   95*- 386*)
: > >   c:  4110480        0    unused        0     0         # (Cyl.    0 - 2987*)
: > >   d:  1191936   532480    unused        0     0         # (Cyl.  386*- 1253*)
: > >   e:  1191936  1724416    unused        0     0         # (Cyl. 1253*- 2119*)
: > >   f:  1194128  2916352    unused        0     0         # (Cyl. 2119*- 2987*)
: > >   g:  1787904   532480      swap                        # (Cyl.  386*- 1686*)
: > >   h:  1790096  2320384    unused        0     0         # (Cyl. 1686*- 2987*)
: > >

: If you use cylinder 0 for the begining of the swap space it may 
: overwrite your disklabel information which also contains the info that
: the partition is a swap partition. You can use the whole disk as swap
: partition but start it at cylinder 512 to be save - safe than sorry.

: Joe
--
Therefore, root partition on rz?a starting on cylinder 0 will be 
cleaning disklabel? - Such disklabel (root with offset 0) installing
on default. => disklabel is allocated on different place.
Regards.
____________________________________________________
Alexey Reshetov
real@kpbank.ru




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Swap Space Allocation
@ 1998-07-20  4:00 John Allen
  0 siblings, 0 replies; 6+ messages in thread
From: John Allen @ 1998-07-20  4:00 UTC (permalink / raw)


Hi:

I'm running DEC Unix 3.2 on an ALphaStation 400 4/233.

I recently ran a utility named sys_chec which reports 
stats on the system and makes tuning recommendations.

It suggested bumping up swap space from the present 256MB to 
1.5 times my 288MB physical RAM, or 412MB.  I question this
because whenever I do a swapon -s, I'm never using more than 
a couple percent of my available space.  Is this normal?

By the way, I'm running in deferred or over-commitment mode
rather than the default immediate mode.

Thanks.
-- 
John L. Allen
Director of Information Technology

GeoNet Technologies Inc.             (902)887-3170
P.O. Box 3989                        (902)887-2349 fax
Central Bedeque, PEI                 Email: johna@auracom.com
C0B 1G0



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1998-07-20  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-20  4:00 Swap Space Allocation John Allen
  -- strict thread matches above, loose matches on Subject: below --
1997-09-17  4:00 SWAP space allocation Chuck Moore
1997-09-29  4:00 ` Ronald Speth
1997-10-01  4:00   ` Joe Spanicek
1997-10-01  4:00     ` Alexey Reshetov
1997-10-01  4:00       ` Joe Spanicek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox