Installation -- create swap file?

Installation -- create swap file?

Post by Steve Kin » Thu, 13 Jan 2000 04:00:00



I'm curious --

Recently, with 9gig+ disks becoming more and more prevalent,
when I install Solaris 2.6 or 7, I'm just creating a root
file system (ie, /dev/dsk/c0t0d0s0), and a file system for
the swap space (ie, /dev/dsk/c0t0d0s1).

Since these machines frequently suffer the "scorched earth" policy,
I don't have to worry about users filling up "/var" or "/opt", etc.,
before it's time for a reinstall. Much nicer.

I wondering, though, what the performance ramifications would
be if I went one step further, and didn't even create a "swap"
filesystem, but just used the "mkfile" command, to create
a 1 gig, or so, swapfile after installation, adding it to
/etc/vfstab?

It's certainly no trouble to give swap its own slice, but is
it necessary/preferable?

Thanks!

Steve

 
 
 

Installation -- create swap file?

Post by Rich Tee » Thu, 13 Jan 2000 04:00:00



Quote:> Recently, with 9gig+ disks becoming more and more prevalent,
> when I install Solaris 2.6 or 7, I'm just creating a root
> file system (ie, /dev/dsk/c0t0d0s0), and a file system for
> the swap space (ie, /dev/dsk/c0t0d0s1).

> Since these machines frequently suffer the "scorched earth" policy,
> I don't have to worry about users filling up "/var" or "/opt", etc.,
> before it's time for a reinstall. Much nicer.

Just out of curiosity, what's a scroched earth policy?

Quote:> I wondering, though, what the performance ramifications would
> be if I went one step further, and didn't even create a "swap"
> filesystem, but just used the "mkfile" command, to create
> a 1 gig, or so, swapfile after installation, adding it to
> /etc/vfstab?

Bare in mind that crash dumps get saved on the primary swap device.
If it's a swap file on a filesystem that can't be mounted, you'll
be knackered!

Personally, I'd stick with your current partitioning scheme,
although there's nothing wrong with having an additional swap
file on another disk (having another swap file on the same disk
makes no sense from a performance point of view).

HTH,

--
Rich Teer

NT tries to do almost everything UNIX does, but fails - miserably.

The use of Windoze cripples the mind; its use should, therefore, be
regarded as a criminal offence.  (With apologies to Edsger W. Dijkstra)

If it ain't analogue, it ain't music.

Voice: +1 (250) 763-6205
WWW: www.rite-group.com

 
 
 

Installation -- create swap file?

Post by William Roede » Thu, 13 Jan 2000 04:00:00



> I'm curious --

> Recently, with 9gig+ disks becoming more and more prevalent,
> when I install Solaris 2.6 or 7, I'm just creating a root
> file system (ie, /dev/dsk/c0t0d0s0), and a file system for
> the swap space (ie, /dev/dsk/c0t0d0s1).

> Since these machines frequently suffer the "scorched earth" policy,
> I don't have to worry about users filling up "/var" or "/opt", etc.,
> before it's time for a reinstall. Much nicer.

> I wondering, though, what the performance ramifications would
> be if I went one step further, and didn't even create a "swap"
> filesystem, but just used the "mkfile" command, to create
> a 1 gig, or so, swapfile after installation, adding it to
> /etc/vfstab?

> It's certainly no trouble to give swap its own slice, but is
> it necessary/preferable?

There is a performance hit going to a filesystem swap.  How much of a hit depends on system load/memory config.
--
   __           _ __               Why is it illegal in Urbana, Illinois
  /  )    /  / ' )  )          /        for a Monster to enter the city
 /~~' *  /  /   /~~' _ _ /> _ /  _  __  limits? --www.dumblaws.com

 
 
 

Installation -- create swap file?

Post by NC » Thu, 13 Jan 2000 04:00:00


Isn't it true that the closer to the edge of the
disk, the faster the filesystem there will be
accessed?  It's not that big of an improvement,
but every little bit helps, especially in the case
of swapping processes in and out of memory
on a heavily loaded server.  swap is not a file-
system, but the physical location in proximity to
the edge of the disk still applies (hence the default
locations of / and swap, s0 and s1 respectively).

I personally would rather have a slice rather than
a swapfile, if at all possible.  You still can't make
a swap partition larger than 2gb on a single slice,
right?  Or is there a patch to fix this?



>> Recently, with 9gig+ disks becoming more and more prevalent,
>> when I install Solaris 2.6 or 7, I'm just creating a root
>> file system (ie, /dev/dsk/c0t0d0s0), and a file system for
>> the swap space (ie, /dev/dsk/c0t0d0s1).

>> Since these machines frequently suffer the "scorched earth" policy,
>> I don't have to worry about users filling up "/var" or "/opt", etc.,
>> before it's time for a reinstall. Much nicer.

>Just out of curiosity, what's a scroched earth policy?

>> I wondering, though, what the performance ramifications would
>> be if I went one step further, and didn't even create a "swap"
>> filesystem, but just used the "mkfile" command, to create
>> a 1 gig, or so, swapfile after installation, adding it to
>> /etc/vfstab?

>Bare in mind that crash dumps get saved on the primary swap device.
>If it's a swap file on a filesystem that can't be mounted, you'll
>be knackered!

>Personally, I'd stick with your current partitioning scheme,
>although there's nothing wrong with having an additional swap
>file on another disk (having another swap file on the same disk
>makes no sense from a performance point of view).

>HTH,

>--
>Rich Teer

>NT tries to do almost everything UNIX does, but fails - miserably.

>The use of Windoze cripples the mind; its use should, therefore, be
>regarded as a criminal offence.  (With apologies to Edsger W. Dijkstra)

>If it ain't analogue, it ain't music.

>Voice: +1 (250) 763-6205
>WWW: www.rite-group.com

 
 
 

Installation -- create swap file?

Post by Steve Kin » Fri, 14 Jan 2000 04:00:00


: Just out of curiosity, what's a scroched earth policy?

That's scorched -- leave nothing standing. :)
It's just a silly term I picked up for the policy of completely
erasing systems or configurations, instead of trying to figure
out what state a machine is in....Start completely fresh.

: Personally, I'd stick with your current partitioning scheme,
: although there's nothing wrong with having an additional swap
: file on another disk (having another swap file on the same disk
: makes no sense from a performance point of view).

Yup. That seems to be the consensus. Thanks to all.

 
 
 

Installation -- create swap file?

Post by Dryas » Fri, 14 Jan 2000 04:00:00


Steve

it is not  necessary/preferable to use a specefic slice
it is a possibility

of course for management purpose it is better to use a slice and not
file

also it is impossivble to calculate today the swap sapce for a machine
for the next 5y .... so when needed ad a file or a slice as a swap
space/file

regards wim de preter


> I'm curious --

> Recently, with 9gig+ disks becoming more and more prevalent,
> when I install Solaris 2.6 or 7, I'm just creating a root
> file system (ie, /dev/dsk/c0t0d0s0), and a file system for
> the swap space (ie, /dev/dsk/c0t0d0s1).

> Since these machines frequently suffer the "scorched earth" policy,
> I don't have to worry about users filling up "/var" or "/opt", etc.,
> before it's time for a reinstall. Much nicer.

> I wondering, though, what the performance ramifications would
> be if I went one step further, and didn't even create a "swap"
> filesystem, but just used the "mkfile" command, to create
> a 1 gig, or so, swapfile after installation, adding it to
> /etc/vfstab?

> It's certainly no trouble to give swap its own slice, but is
> it necessary/preferable?

> Thanks!

> Steve

 
 
 

Installation -- create swap file?

Post by Rich Tee » Fri, 14 Jan 2000 04:00:00



Quote:> That's scorched -- leave nothing standing. :)
> It's just a silly term I picked up for the policy of completely
> erasing systems or configurations, instead of trying to figure
> out what state a machine is in....Start completely fresh.

Ahh!  Makes sense.  That's usually how I set up my servers.

--
Rich Teer

NT tries to do almost everything UNIX does, but fails - miserably.

The use of Windoze cripples the mind; its use should, therefore, be
regarded as a criminal offence.  (With apologies to Edsger W. Dijkstra)

If it ain't analogue, it ain't music.

Voice: +1 (250) 763-6205
WWW: www.rite-group.com

 
 
 

Installation -- create swap file?

Post by William Roede » Fri, 14 Jan 2000 04:00:00



> Isn't it true that the closer to the edge of the
> disk, the faster the filesystem there will be
> accessed?  It's not that big of an improvement,
> but every little bit helps, especially in the case
> of swapping processes in and out of memory
> on a heavily loaded server.  swap is not a file-
> system, but the physical location in proximity to
> the edge of the disk still applies (hence the default
> locations of / and swap, s0 and s1 respectively).

<snip>
FYI: Several years ago I did performance testing with a SGI O2000 and Ciprico Raid sets.  On a empty file system I initially got 85 MB/S but as the disk got full performance dropped steadily to 60 MB/S. A 30% decrease.
--
   __           _ __                    What is the probability that
  /  )    /  / ' )  )          /        something will happen according
 /~~' *  /  /   /~~' _ _ /> _ /  _  __  to the odds?

 
 
 

1. RedHat6.2 Installation Error: "Error creating swap on device hda9"

I make it into the formatting step of the installation and then I get
the error message "Error creating swap on device hda9".

I have a 30GB Maxtor hardrive and 256 MB RAM.

I've tried LINUX MEM=256M, and LINUX HDA=3736,255,63 prior to install.

What are the limitations with swap partitions?
Also this may not be a swap partition problem, I've heard that the swap
partition is the first one created.

I appreciate your help.
Thanks.

2. bttv configuring

3. Creating swap file during install

4. Does ulimit do anything?

5. How to create CD installation from ISO File

6. Reading is much more interesting than TV (1065/1708)

7. rpm binary file created, help in installation needed..

8. creat problem

9. How to create redhat5.2 installation CD from downloaded files?

10. Could not create file sytem! Installation aborted.

11. Creating initrd file for PXE installations

12. Help : Cannot create file system error during installation : linux 7.0 (ULTRA ATA 100 Error ???)

13. MS-DOS Swap File vs. Swap Partition