Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Confused(swap partitions)
@ 1998-11-19 17:23 Jacek Perry
  1998-11-19 20:16 ` Maurice Hilarius
  1998-11-27 18:45 ` Stephen C. Tweedie
  0 siblings, 2 replies; 13+ messages in thread
From: Jacek Perry @ 1998-11-19 17:23 UTC (permalink / raw)
  To: Alpha Linux

Ok what is the final word on swap.  Is it maximum of 128m as RedHat
book suggests or more as I heard some people say.  Do I really have to
make 8 swap partitions in order to have 1gb of swap space? If I don't
then how do I mount the 1gb partition to be a swap only partition.

Thank you
Jacek Perry




_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

* Re: Confused(swap partitions)
@ 1998-11-19 17:48 Greg Lindahl
  1998-11-19 20:20 ` Maurice Hilarius
  0 siblings, 1 reply; 13+ messages in thread
From: Greg Lindahl @ 1998-11-19 17:48 UTC (permalink / raw)
  To: axp-list

> Ok what is the final word on swap.  Is it maximum of 128m as RedHat
> book suggests or more as I heard some people say.  Do I really have to
> make 8 swap partitions in order to have 1gb of swap space? If I don't
> then how do I mount the 1gb partition to be a swap only partition.

It depends on page size. 128M for i386, 512M for alpha. If you tested
you'd quickly find this out.

If you want more, you can make an ext2fs partition and create several
swap files on it. That avoids eating up gobs of partitions.

-- g


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

* Re: Confused(swap partitions)
  1998-11-19 17:23 Jacek Perry
@ 1998-11-19 20:16 ` Maurice Hilarius
  1998-11-27 18:45 ` Stephen C. Tweedie
  1 sibling, 0 replies; 13+ messages in thread
From: Maurice Hilarius @ 1998-11-19 20:16 UTC (permalink / raw)
  To: axp-list

With regards to your message at 09:23 AM 11-19-98 -0800, Jacek Perry. Where
you stated:
>Ok what is the final word on swap.  Is it maximum of 128m as RedHat
>book suggests or more as I heard some people say.  Do I really have to
>make 8 swap partitions in order to have 1gb of swap space? If I don't
>then how do I mount the 1gb partition to be a swap only partition.
>
Up to 8 swap partitions of 512MB each.


Best regards,

  Maurice W. Hilarius                   Telephone: 01-403-414-9319
  Hard Data Ltd.                      **FAX:       01-403-456-1510
  11060 - 166 Avenue                    email:maurice@harddata.com
  Edmonton, AB, Canada  - T5X 1Y3       http://www.harddata.com
  


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

* Re: Confused(swap partitions)
  1998-11-19 17:48 Greg Lindahl
@ 1998-11-19 20:20 ` Maurice Hilarius
  1998-11-19 21:26   ` Ken Hansen
  1998-11-19 22:40   ` W Darlington
  0 siblings, 2 replies; 13+ messages in thread
From: Maurice Hilarius @ 1998-11-19 20:20 UTC (permalink / raw)
  To: axp-list

With regards to your message at 12:48 PM 11-19-98 -0500, Greg Lindahl.
Where you stated:
>> Ok what is the final word on swap.  Is it maximum of 128m as RedHat
>> book suggests or more as I heard some people say.  Do I really have to
>> make 8 swap partitions in order to have 1gb of swap space? If I don't
>> then how do I mount the 1gb partition to be a swap only partition.
>
>It depends on page size. 128M for i386, 512M for alpha. If you tested
>you'd quickly find this out.
>
>If you want more, you can make an ext2fs partition and create several
>swap files on it. That avoids eating up gobs of partitions.
>
Yes, but partitions dedicated for swap usually run faster. With an extended
partition and many logicals you pay no real penalty for this, other than a
rather large and confusing fdisk table..
Besides just how much swap can you really use?? If you are using a MB of
swap, something is "fishy"..


Best regards,

  Maurice W. Hilarius                   Telephone: 01-403-414-9319
  Hard Data Ltd.                      **FAX:       01-403-456-1510
  11060 - 166 Avenue                    email:maurice@harddata.com
  Edmonton, AB, Canada  - T5X 1Y3       http://www.harddata.com
  


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

* Re: Confused(swap partitions)
  1998-11-19 20:20 ` Maurice Hilarius
@ 1998-11-19 21:26   ` Ken Hansen
  1998-12-15 23:28     ` Huw Davies
  1998-11-19 22:40   ` W Darlington
  1 sibling, 1 reply; 13+ messages in thread
From: Ken Hansen @ 1998-11-19 21:26 UTC (permalink / raw)
  To: axp-list

Maurice Hilarius wrote:
> 
> With regards to your message at 12:48 PM 11-19-98 -0500, Greg Lindahl.
> Where you stated:
<snip>
> >> Do I really have to
> >> make 8 swap partitions in order to have 1gb of swap space? If I don't
> >> then how do I mount the 1gb partition to be a swap only partition.
<snip>
> Yes, but partitions dedicated for swap usually run faster. With an extended
> partition and many logicals you pay no real penalty for this, other than a
> rather large and confusing fdisk table..
> Besides just how much swap can you really use?? If you are using a MB of
> swap, something is "fishy"..

I once supported an application that told users to allocate 2 Gigabytes
of
swap on their Sun server - the server itself had 512 Megabytes of RAM.
Well, one day I got a call from a client that wanted to know why my
company
was telling him to allocate a 2 GB swap file? I went to the developers 
and asked them why they needed that much swap, and the short answer was,
"the common rule of thumb for swap space is 2x actual RAM, 3x for busy
server applications, and since this was a *really* important application
they increased it to 4x actual RAM."  Neither the client nor I liked
that
answer, and the client went with 1x actual RAM and never had a
problem...

The reason the client called was becuase the Sun Field Engineer that was
installing and configuring their RAID hardware couldn't understand why
any application needed 2 gigabytes of swap - in all his years with Sun
he
had never seen such a thing outside of incredible high-end
applications...
The developers, it seems, had a high opinion of their code... 

What the developers never realized was that this "rule of thumb" was
invented when a big server had 128 Meg of RAM!

Thought this might be interesting to some...

Ken
khansen@njcc.com


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

* Re: Confused(swap partitions)
@ 1998-11-19 21:46 Greg Lindahl
  1998-11-19 22:06 ` Danilo Godec
  1998-11-19 23:31 ` Maurice Hilarius
  0 siblings, 2 replies; 13+ messages in thread
From: Greg Lindahl @ 1998-11-19 21:46 UTC (permalink / raw)
  To: axp-list

> Yes, but partitions dedicated for swap usually run faster. With an extended
> partition and many logicals you pay no real penalty for this, other than a
> rather large and confusing fdisk table..

Where's the proof that dedicated partitions for swap are _significantly_
faster? Oft stated mantras aren't necessarily true.

> Besides just how much swap can you really use?? If you are using a MB of
> swap, something is "fishy"..

I _use_ a gigabit of swap, and nothing is fishy. What's the point of
having machines that can take gigabytes of ram if we can't easily have
gigabytes of swap?

-- g


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

* Re: Confused(swap partitions)
  1998-11-19 21:46 Confused(swap partitions) Greg Lindahl
@ 1998-11-19 22:06 ` Danilo Godec
  1998-11-19 23:31 ` Maurice Hilarius
  1 sibling, 0 replies; 13+ messages in thread
From: Danilo Godec @ 1998-11-19 22:06 UTC (permalink / raw)
  To: axp-list

On Thu, 19 Nov 1998, Greg Lindahl wrote:

> Where's the proof that dedicated partitions for swap are _significantly_
> faster? Oft stated mantras aren't necessarily true.

Actually, this makes sense to me, as you avoid one additional driver (the
filesystem driver) usign deditacted partition (I admit, I'm only guessing
here). Though the difference could be small enough to be ignored.

    D.



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

* Re: Confused(swap partitions)
  1998-11-19 20:20 ` Maurice Hilarius
  1998-11-19 21:26   ` Ken Hansen
@ 1998-11-19 22:40   ` W Darlington
  1998-11-19 23:42     ` Maurice Hilarius
  1 sibling, 1 reply; 13+ messages in thread
From: W Darlington @ 1998-11-19 22:40 UTC (permalink / raw)
  To: axp-list

Hi Y'all,

On Thu, Nov 19, 1998 at 01:20:48PM -0700, Maurice Hilarius wrote:
> Yes, but partitions dedicated for swap usually run faster. With an extended
> partition and many logicals you pay no real penalty for this, other than a
> rather large and confusing fdisk table..

I figure that paging is darn slow and even _if_ paging to partitions is a
little faster than to swap files, it's still just the difference between
really really slow and really really really slow. :-)  

Anyway, how would one go about measuring the relative performance of swap 
files and partitions?  In the absence of hard data, perhaps we might be
able to start a war instead? The partitionists versus the swapfileans? ;-)

> Besides just how much swap can you really use?? If you are using a MB of
> swap, something is "fishy"..

We run some fortran 77 codes (with static memory allocation). They tend to
(pre)allocate lots (TM) of memory and while they may never use it all, Linux
won't let them run unless it has at least as much virtual memory as the
process might ever need.

If I watch some of these programs with `top', they might never be seen
to use more than 25% of the memory they asked for at any one time. For
them to take full advantage of (say) a 0.5GB machine they will need
there to be 2GB of swap, at least! 

The joy of fortran 77, eh?

Regards,
Wesley Darlington,
Dept of Applied Maths,            I reboot my linux boxes once a year
Queen's University of Belfast.        whether they need it or not!
(01232) T 273911 F 239182


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

* Re: Confused(swap partitions)
  1998-11-19 21:46 Confused(swap partitions) Greg Lindahl
  1998-11-19 22:06 ` Danilo Godec
@ 1998-11-19 23:31 ` Maurice Hilarius
  1998-11-19 23:52   ` Ken Hansen
  1 sibling, 1 reply; 13+ messages in thread
From: Maurice Hilarius @ 1998-11-19 23:31 UTC (permalink / raw)
  To: axp-list

With regards to your message at 04:46 PM 11-19-98 -0500, Greg Lindahl.
Where you stated:
>> Yes, but partitions dedicated for swap usually run faster. With an extended
>> partition and many logicals you pay no real penalty for this, other than a
>> rather large and confusing fdisk table..
>
>Where's the proof that dedicated partitions for swap are _significantly_
>faster? Oft stated mantras aren't necessarily true.
>
>> Besides just how much swap can you really use?? If you are using a MB of
>> swap, something is "fishy"..
>
>I _use_ a gigabit of swap, and nothing is fishy. What's the point of
>having machines that can take gigabytes of ram if we can't easily have
>gigabytes of swap?
>
I have tried it.
On Red Hat 5.0 machiine, with 64MB of RAM and 5 32MB swap partitions. Ran a
bunch of apps and ate up memory.
Turned on the swap partitions, one at a time, and tried again.
Then tried it with swap files. The files were giving noticably more
sluggish response.
Never did it as a formal benchmark, but you could see the difference..

I think you are right though, _somebody_ should devise and run some formal
benchmarks, just to quantify the difference. Any volunteers?


Best regards,

  Maurice W. Hilarius                   Telephone: 01-403-414-9319
  Hard Data Ltd.                      **FAX:       01-403-456-1510
  11060 - 166 Avenue                    email:maurice@harddata.com
  Edmonton, AB, Canada  - T5X 1Y3       http://www.harddata.com
  


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

* Re: Confused(swap partitions)
  1998-11-19 22:40   ` W Darlington
@ 1998-11-19 23:42     ` Maurice Hilarius
  0 siblings, 0 replies; 13+ messages in thread
From: Maurice Hilarius @ 1998-11-19 23:42 UTC (permalink / raw)
  To: axp-list

With regards to your message at 10:40 PM 11-19-98 +0000, W Darlington.
Where you stated:
>We run some fortran 77 codes (with static memory allocation). They tend to
>(pre)allocate lots (TM) of memory and while they may never use it all, Linux
>won't let them run unless it has at least as much virtual memory as the
>process might ever need.
>
>If I watch some of these programs with `top', they might never be seen
>to use more than 25% of the memory they asked for at any one time. For
>them to take full advantage of (say) a 0.5GB machine they will need
>there to be 2GB of swap, at least! 
>
>The joy of fortran 77, eh?
>
Really!
Well, good news is disks are getting pretty cheap, so to hang another say
4GB disk, and break it up into swap partitions is not the end of the world.. 


Best regards,

  Maurice W. Hilarius                   Telephone: 01-403-414-9319
  Hard Data Ltd.                      **FAX:       01-403-456-1510
  11060 - 166 Avenue                    email:maurice@harddata.com
  Edmonton, AB, Canada  - T5X 1Y3       http://www.harddata.com
  


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

* Re: Confused(swap partitions)
  1998-11-19 23:31 ` Maurice Hilarius
@ 1998-11-19 23:52   ` Ken Hansen
  0 siblings, 0 replies; 13+ messages in thread
From: Ken Hansen @ 1998-11-19 23:52 UTC (permalink / raw)
  To: axp-list

At 04:31 PM 11/19/98 -0700, you wrote:
<snip>
>I have tried it.
>On Red Hat 5.0 machiine, with 64MB of RAM and 5 32MB swap partitions. Ran a
>bunch of apps and ate up memory.
>Turned on the swap partitions, one at a time, and tried again.
>Then tried it with swap files. The files were giving noticably more
>sluggish response.
>Never did it as a formal benchmark, but you could see the difference..

Interesting.

>I think you are right though, _somebody_ should devise and run some formal
>benchmarks, just to quantify the difference. Any volunteers?

I would suggest that what would be important would be the magnitude of the
difference between the swap files and swap partitions, not the actual
numbers... To that end, it *may* be a valid test to simply create a file
access test that reads and writes to both (swap) partitions and (swap) files,
using a repeatable set of operations, and then comparing the times (actual,
system, other?) to see the difference...

Just a thought...

Ken
khansen@njcc.com


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

* Re: Confused(swap partitions)
  1998-11-19 17:23 Jacek Perry
  1998-11-19 20:16 ` Maurice Hilarius
@ 1998-11-27 18:45 ` Stephen C. Tweedie
  1 sibling, 0 replies; 13+ messages in thread
From: Stephen C. Tweedie @ 1998-11-27 18:45 UTC (permalink / raw)
  To: axp-list; +Cc: Stephen Tweedie

Hi,

On Thu, 19 Nov 1998 09:23:05 -0800 (PST), Jacek Perry
<chrobry@yahoo.com> said:

> Ok what is the final word on swap.  Is it maximum of 128m as RedHat
> book suggests or more as I heard some people say.  Do I really have to
> make 8 swap partitions in order to have 1gb of swap space? If I don't
> then how do I mount the 1gb partition to be a swap only partition.

The upper limit is 512m per swap device on Alpha, unless you are
running 2.1 and an uptodate util-linux, in which case it will cope
with 2GB swap partitions quite happily.

--Stephen


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

* Re: Confused(swap partitions)
  1998-11-19 21:26   ` Ken Hansen
@ 1998-12-15 23:28     ` Huw Davies
  0 siblings, 0 replies; 13+ messages in thread
From: Huw Davies @ 1998-12-15 23:28 UTC (permalink / raw)
  To: axp-list

At 04:26 PM 19-11-98 -0500, Ken Hansen wrote:

>What the developers never realized was that this "rule of thumb" was
>invented when a big server had 128 Meg of RAM!

Indeed. Unix folklore goes back a long way. I still type sync; sync; sync
before halting some of our Unix boxes.

Two extremes on swap:

My first linux box (386sx 33) ran for six months or so with a non-enabled
swap partition. I only noticed when I finally ran out running xv....

I doubt that I'll be allocating even 1 x memory size on my new 8400s which
have 6Gb physical ram....


 Huw Davies                      | e-mail: Huw.Davies@latrobe.edu.au
 Information Technology Services | Phone: +61 3 9479 1550  Fax: +61 3 9479 1999
 La Trobe University             | "If God had wanted soccer played in the
 Melbourne Australia 3083        | air, the sky would be painted green"


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

end of thread, other threads:[~1998-12-15 23:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-19 21:46 Confused(swap partitions) Greg Lindahl
1998-11-19 22:06 ` Danilo Godec
1998-11-19 23:31 ` Maurice Hilarius
1998-11-19 23:52   ` Ken Hansen
  -- strict thread matches above, loose matches on Subject: below --
1998-11-19 17:48 Greg Lindahl
1998-11-19 20:20 ` Maurice Hilarius
1998-11-19 21:26   ` Ken Hansen
1998-12-15 23:28     ` Huw Davies
1998-11-19 22:40   ` W Darlington
1998-11-19 23:42     ` Maurice Hilarius
1998-11-19 17:23 Jacek Perry
1998-11-19 20:16 ` Maurice Hilarius
1998-11-27 18:45 ` Stephen C. Tweedie

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