Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* How to allocate more swap space
@ 1994-06-28 15:57 Ayman_Ghanem
  1994-06-28 18:06 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 1 reply; 5+ messages in thread
From: Ayman_Ghanem @ 1994-06-28 15:57 UTC (permalink / raw)


Hi.
When I installed OSF1/2.0 on my alpha station 3000/600 with 32 MB RAM, I
chose the default prtition (b) for the swap space which has 64 MB.
Now, I get the message "Swap Space less than 10% free" very often and
some users can not run programs with many array declarations.
I was wondering if there is a way to increase the swap space on the disk
without having to install the system again.
I have a partion on the disk (partition d) that is between the swap
partition (b) and the /usr file system (g). The (d) partition is about
15 MB and is not used. Can I just simply add that to the (b) partition?.
Thanks in advance.

-Ayman


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

* Re: How to allocate more swap space
  1994-06-28 15:57 How to allocate more swap space Ayman_Ghanem
@ 1994-06-28 18:06 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  1994-06-28 19:47   ` Frank Wortner
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1994-06-28 18:06 UTC (permalink / raw)



In article <2uph9a$knq@vixen.cso.uiuc.edu>, ayman@uiatma.atmos.uiuc.edu (Ayman_Ghanem) writes:
>
>Hi.
>When I installed OSF1/2.0 on my alpha station 3000/600 with 32 MB RAM, I
>chose the default prtition (b) for the swap space which has 64 MB.
>Now, I get the message "Swap Space less than 10% free" very often and
>some users can not run programs with many array declarations.
>I was wondering if there is a way to increase the swap space on the disk
>without having to install the system again.
>I have a partion on the disk (partition d) that is between the swap
>partition (b) and the /usr file system (g). The (d) partition is about
>15 MB and is not used. Can I just simply add that to the (b) partition?.
>Thanks in advance.

If the D partition really doesn't overlap the B or G partitions,
then you can either:

1.  Simply use the swapon command to use D as another swap
    partition.  You'll also want to add a line to /etc/fstab
    so that when swapon is run in the transition from single
    to multi-user mode, the area will be added automatically.

    The paging code will probably want to interleave allocations
    between the two areas.  With both on one disk, this may not
    offer the best performance if you're actually paging.

2.  Boot the standalone system and increase B to use the D area.
    You may be able to do this running single user.

15 MB isn't much more, so eventually you'll probably need to
get a 2nd disk use a larger partition as the additional space.
To keep any one disk from becoming responsible for most of the
paging I/O try to keep swap areas approximately the same size.

>
>-Ayman
>

--
Alan Rollow				alan@nabeth.cxo.dec.com



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

* Re: How to allocate more swap space
  1994-06-28 18:06 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 1994-06-28 19:47   ` Frank Wortner
  0 siblings, 0 replies; 5+ messages in thread
From: Frank Wortner @ 1994-06-28 19:47 UTC (permalink / raw)



In article <2uporp$b14@nntpd2.cxo.dec.com>, alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) writes:
Alan gave some suggestions for how to increase the amount of swap area.
I'm just adding a little more information.

|> 2.  Boot the standalone system and increase B to use the D area.
|>     You may be able to do this running single user.

You can do this reasonably easily with the "-e" option to the disklabel
command.  This option will read the disk partition information from the
disk, write it to a file, invoke an editor on the file, and allow you
to change the partition sizes by changing the ASCII representation of
the partitioning information.  When you write the file back out, disklabel
will offer to write the altered information back as new partition
information.  Be VERY CAREFUL when you do this.  DO A BACKUP FIRST!  It's
all too easy to set up partitions incorrectly and destroy the existing
filesystems.  Good luck!

					Frank


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

* Re: How to allocate more swap space
@ 1994-06-29  5:09 Ayman_Ghanem
  1994-06-29 16:23 ` Frank Wortner
  0 siblings, 1 reply; 5+ messages in thread
From: Ayman_Ghanem @ 1994-06-29  5:09 UTC (permalink / raw)


Thanks for the suggestions posted in reply ro my question about allocating
more swap space.
I have another thought about this. I'll test it after I receive my new
disk, but may be I can get a feedback in advance.
My swap partion now is b with 64MB. When I receive the larger disk, I plan
to make it the system disk by dumping the / and the /usr to the new disk
on the same partion names. Now, if make the b partion on the new disk larger
than 64 MB (say 100MB), then reboot the system from the new disk (I will have
to change the scsi id of the new disk to be that of my old system disk), will
the system recognize the full b partition of the new disk as a swap space or
will it still consider only 64 MB. What I mean is, does the system know that
the b partition is the swap space (regardless of what the partition size
will be), or is the size of the swap space written somewhere in one of the
system files?.
I run /sbin/swapon -s and it showed me the swap as 64 MB on partition b but
I'm not sure if it was reading this from a file or from the b partition on
th disk.
Thanks again.

-Ayman


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

* Re: How to allocate more swap space
  1994-06-29  5:09 Ayman_Ghanem
@ 1994-06-29 16:23 ` Frank Wortner
  0 siblings, 0 replies; 5+ messages in thread
From: Frank Wortner @ 1994-06-29 16:23 UTC (permalink / raw)



In article <2uqvmm$80k@vixen.cso.uiuc.edu>, ayman@uiatma.atmos.uiuc.edu (Ayman_Ghanem) writes:
|> Thanks for the suggestions posted in reply ro my question about allocating
|> more swap space.

|> ... does the system know that
|> the b partition is the swap space (regardless of what the partition size
|> will be), or is the size of the swap space written somewhere in one of the
|> system files?.

The system sizes the swap partitions as they come online.  The size is
set by the information in the partition table; it is not compiled into
the system.

Neither is the exact partition on which the system swaps.  If you want
to swap on the "d" partition for example and use "b" for something else, 
just edit /etc/fstab, change the "swap1" device to reflect that and reboot.
The system will come up and swap on the "d" partition.  Neat, eh?

					Frank


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

end of thread, other threads:[~1994-06-29 16:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-06-28 15:57 How to allocate more swap space Ayman_Ghanem
1994-06-28 18:06 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1994-06-28 19:47   ` Frank Wortner
  -- strict thread matches above, loose matches on Subject: below --
1994-06-29  5:09 Ayman_Ghanem
1994-06-29 16:23 ` Frank Wortner

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