* What's the maximum swap space?
@ 2000-11-28 21:35 s-luppescu
2000-11-28 18:25 ` Reto Baettig
2000-11-28 22:46 ` Matt Wilson
0 siblings, 2 replies; 23+ messages in thread
From: s-luppescu @ 2000-11-28 21:35 UTC (permalink / raw)
To: Alpha List
We are considering buying an alpha to do some very extensive numerical
calculations, some of which would require inverting matrices up to 15,000 x
15,000 in size. We figure this will take up to 40 GB of virtual memory. I have
looked all over the place, but can't find a definitive answer about what's the
maximum amount of swap space I can have on an alpha machine. man mkswap (on my
intel RedHat machine) says,
| In the new
| style swap area this is precisely what is done. The maximum useful size of
| a swap area now depends on the architecture. It is roughly 2GiB on i386,
| PPC, m68k, ARM, 1GiB on sparc, 512MiB on mips, 128GiB on alpha and
| 3TiB on sparc64.
|
| Note that before 2.1.117 the kernel allocated one byte for each page, while
| it now allocates two bytes, so that taking a swap area of 2 GiB in use might
| require 2 MiB of kernel memory.
|
| Presently, Linux allows 8 swap areas. The areas in use can be seen in
| the file /proc/swaps (since 2.1.25).
This is still very confusing to me. Is ``a swap area'' the same as a
partition with type ``swap''? More than the size of the swap space, isn't
there a limit on the size of the partition? (Someone told me 2 GB per swap
partition. This would put a limit of 16 GB on the total amount of swap.)
If some knowledgeable person can clear up my confusion, I'd be very thankful.
______________________________________________________________________
Stuart Luppescu -=-=- University of Chicago
^[$B:MJ8$HCRF`H~$NIc^[(B -=-=- s-luppescu@uchicago.edu
http://www.consortium-chicago.org/people/sl/sl.html
PGP Public Key: www.consortium-chicago.org/people/sl/pubkey.asc
ICQ #21172047 AIM: psycho7070
Small change can often be found under seat cushions.
-- One of Lazarus Long's most penetrating insights
>> Sent on 28-Nov-2000 at 16:24:05 with xfmail
^ permalink raw reply [flat|nested] 23+ messages in thread* Re: What's the maximum swap space?
2000-11-28 21:35 What's the maximum swap space? s-luppescu
@ 2000-11-28 18:25 ` Reto Baettig
2000-11-29 15:20 ` s-luppescu
2000-11-28 22:46 ` Matt Wilson
1 sibling, 1 reply; 23+ messages in thread
From: Reto Baettig @ 2000-11-28 18:25 UTC (permalink / raw)
To: axp-list
Hi
Why do you need 40GB of virtual memory for the inversion of a 15k^2
matrix?
15k*15k*8Bytes = 1.676GB. Even if you have a complex matrix, it's only
~3GB.
You probably would like to keep the matrix in RAM because if you swap it
out, your performance will probably only depend on the speed of your
disks and not on the speed of the processor ;-)
Or do you have a good implementation of a matrix inversion which deals
with these problems?
Reto
s-luppescu@uchicago.edu wrote:
>
> We are considering buying an alpha to do some very extensive numerical
> calculations, some of which would require inverting matrices up to 15,000 x
> 15,000 in size. We figure this will take up to 40 GB of virtual memory. I have
> looked all over the place, but can't find a definitive answer about what's the
> maximum amount of swap space I can have on an alpha machine. man mkswap (on my
> intel RedHat machine) says,
>
> | In the new
> | style swap area this is precisely what is done. The maximum useful size of
> | a swap area now depends on the architecture. It is roughly 2GiB on i386,
> | PPC, m68k, ARM, 1GiB on sparc, 512MiB on mips, 128GiB on alpha and
> | 3TiB on sparc64.
> |
> | Note that before 2.1.117 the kernel allocated one byte for each page, while
> | it now allocates two bytes, so that taking a swap area of 2 GiB in use might
> | require 2 MiB of kernel memory.
> |
> | Presently, Linux allows 8 swap areas. The areas in use can be seen in
> | the file /proc/swaps (since 2.1.25).
>
> This is still very confusing to me. Is ``a swap area'' the same as a
> partition with type ``swap''? More than the size of the swap space, isn't
> there a limit on the size of the partition? (Someone told me 2 GB per swap
> partition. This would put a limit of 16 GB on the total amount of swap.)
>
> If some knowledgeable person can clear up my confusion, I'd be very thankful.
> ______________________________________________________________________
> Stuart Luppescu -=-=- University of Chicago
> ^[$B:MJ8$HCRF`H~$NIc^[(B -=-=- s-luppescu@uchicago.edu
> http://www.consortium-chicago.org/people/sl/sl.html
> PGP Public Key: www.consortium-chicago.org/people/sl/pubkey.asc
> ICQ #21172047 AIM: psycho7070
> Small change can often be found under seat cushions.
> -- One of Lazarus Long's most penetrating insights
> >> Sent on 28-Nov-2000 at 16:24:05 with xfmail
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: What's the maximum swap space?
2000-11-28 18:25 ` Reto Baettig
@ 2000-11-29 15:20 ` s-luppescu
2000-11-29 17:01 ` Maurice Hilarius
0 siblings, 1 reply; 23+ messages in thread
From: s-luppescu @ 2000-11-29 15:20 UTC (permalink / raw)
To: axp-list
On 28-Nov-2000 Reto Baettig wrote:
> Hi
>
> Why do you need 40GB of virtual memory for the inversion of a 15k^2
> matrix?
> 15k*15k*8Bytes = 1.676GB. Even if you have a complex matrix, it's only
> ~3GB.
>
> You probably would like to keep the matrix in RAM because if you swap it
> out, your performance will probably only depend on the speed of your
> disks and not on the speed of the processor ;-)
>
> Or do you have a good implementation of a matrix inversion which deals
> with these problems?
No, it's a real-number matrix only. I only know what our developer tells me. He
says he needs up to 40 GB of virtual memory. Perhaps he has multiple matrices to
invert, or he needs to keep intermediate values in memory. I'm not sure.
______________________________________________________________________
Stuart Luppescu -=-=- University of Chicago
^[$(B:MJ8$HCRF`H~$NIc^[(B -=-=- s-luppescu@uchicago.edu
http://www.consortium-chicago.org/people/sl/sl.html
PGP Public Key: www.consortium-chicago.org/people/sl/pubkey.asc
ICQ #21172047 AIM: psycho7070
There's a way out of any cage.
-- Captain Christopher Pike, "The Menagerie" ("The Cage"),
stardate unknown.
>> Sent on 29-Nov-2000 at 10:17:49 with xfmail
^ permalink raw reply [flat|nested] 23+ messages in thread* Re: What's the maximum swap space?
2000-11-29 15:20 ` s-luppescu
@ 2000-11-29 17:01 ` Maurice Hilarius
2000-11-29 18:13 ` s-luppescu
0 siblings, 1 reply; 23+ messages in thread
From: Maurice Hilarius @ 2000-11-29 17:01 UTC (permalink / raw)
To: axp-list
With regards to your message at 08:20 AM 11/29/00, s-luppescu@uchicago.edu.
Where you stated:
> > Or do you have a good implementation of a matrix inversion which deals
> > with these problems?
>
>No, it's a real-number matrix only. I only know what our developer tells
>me. He
>says he needs up to 40 GB of virtual memory. Perhaps he has multiple
>matrices to
>invert, or he needs to keep intermediate values in memory. I'm not sure.
Have you considered using a solid-state disk for this, or possibly a SCSI
RAID array?
It would give you infinitely better swap performance in either scenario.
With our best regards,
Maurice W. Hilarius Telephone: 01-780-456-9771
Hard Data Ltd. FAX: 01-780-456-9772
11060 - 166 Avenue mailto:maurice@harddata.com
Edmonton, AB, Canada http://www.harddata.com/
T5X 1Y3
^ permalink raw reply [flat|nested] 23+ messages in thread* Re: What's the maximum swap space?
2000-11-29 17:01 ` Maurice Hilarius
@ 2000-11-29 18:13 ` s-luppescu
2000-11-29 18:23 ` Maurice Hilarius
0 siblings, 1 reply; 23+ messages in thread
From: s-luppescu @ 2000-11-29 18:13 UTC (permalink / raw)
To: axp-list
On 29-Nov-2000 Maurice Hilarius wrote:
> With regards to your message at 08:20 AM 11/29/00, s-luppescu@uchicago.edu.
> Where you stated:
>> > Or do you have a good implementation of a matrix inversion which deals
>> > with these problems?
>>
>>No, it's a real-number matrix only. I only know what our developer tells
>>me. He
>>says he needs up to 40 GB of virtual memory. Perhaps he has multiple
>>matrices to
>>invert, or he needs to keep intermediate values in memory. I'm not sure.
>
> Have you considered using a solid-state disk for this, or possibly a SCSI
> RAID array?
> It would give you infinitely better swap performance in either scenario.
A solid-state disk would be prohibitively expensive, but RAID seems like a good
idea. But, ``infinitely better swap performance''? Methinks you exaggerate a
bit:-}
______________________________________________________________________
Stuart Luppescu -=-=- University of Chicago
^[$(B:MJ8$HCRF`H~$NIc^[(B -=-=- s-luppescu@uchicago.edu
http://www.consortium-chicago.org/people/sl/sl.html
PGP Public Key: www.consortium-chicago.org/people/sl/pubkey.asc
ICQ #21172047 AIM: psycho7070
Nostalgia isn't what it used to be.
>> Sent on 29-Nov-2000 at 12:12:29 with xfmail
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: What's the maximum swap space?
2000-11-29 18:13 ` s-luppescu
@ 2000-11-29 18:23 ` Maurice Hilarius
2000-11-29 19:17 ` What's the maximum swap space? [OT] Reto Baettig
2000-11-29 22:52 ` What's the maximum swap space? s-luppescu
0 siblings, 2 replies; 23+ messages in thread
From: Maurice Hilarius @ 2000-11-29 18:23 UTC (permalink / raw)
To: axp-list
With regards to your message at 11:13 AM 11/29/00, s-luppescu@uchicago.edu.
Where you stated:
> > Have you considered using a solid-state disk for this, or possibly a SCSI
> > RAID array?
> > It would give you infinitely better swap performance in either scenario.
>
>A solid-state disk would be prohibitively expensive, but RAID seems like a
>good
>idea. But, ``infinitely better swap performance''? Methinks you exaggerate a
>bit:-}
Yes, the term "infinitely" is a bit laden with exaggeration, I agree.
Probably better by an order of magnitude would be more likely.
Bottom line:
The fastest disk drive on the market is the Seagate Cheetah15K with about
an average real transfer rate (media to heads) of about 30+ MB/sec.
A decent RAID array with striping, but no redundancy is likely to give you
about a sustained rate of between 120MB/sec and 200MB/sec, depending on the
disks and interface types.
Next limiting factor is your PCI bus, which, with a 64 bit, 33MHz SCSI card
is limiting you to about 230MB/sec, maximum theoretical, with around
200MB/sec actual.
6 to 7 times faster than a single disk, and 3 to 6 times faster than a
software RAID or similar striping of swap across multiple disks.
Does that seem fair enough?
With our best regards,
Maurice W. Hilarius Telephone: 01-780-456-9771
Hard Data Ltd. FAX: 01-780-456-9772
11060 - 166 Avenue mailto:maurice@harddata.com
Edmonton, AB, Canada http://www.harddata.com/
T5X 1Y3
^ permalink raw reply [flat|nested] 23+ messages in thread* Re: What's the maximum swap space? [OT]
2000-11-29 18:23 ` Maurice Hilarius
@ 2000-11-29 19:17 ` Reto Baettig
2000-11-29 22:52 ` What's the maximum swap space? s-luppescu
1 sibling, 0 replies; 23+ messages in thread
From: Reto Baettig @ 2000-11-29 19:17 UTC (permalink / raw)
To: axp-list
Maurice,
We are looking for a RAID system which delivers the performance you
describe. Have you actually seen these numbers on a linux system?
(sustained (raw) rate >150MB/s per raid array).
Which raid adapter(s) do you know that can do this?
(I'd like to plug 2 of those into an ES40 and have >300MB/s disk I/O
:-))))
Reto
Maurice Hilarius wrote:
>
> With regards to your message at 11:13 AM 11/29/00, s-luppescu@uchicago.edu.
> Where you stated:
> > > Have you considered using a solid-state disk for this, or possibly a SCSI
> > > RAID array?
> > > It would give you infinitely better swap performance in either scenario.
> >
> >A solid-state disk would be prohibitively expensive, but RAID seems like a
> >good
> >idea. But, ``infinitely better swap performance''? Methinks you exaggerate a
> >bit:-}
> Yes, the term "infinitely" is a bit laden with exaggeration, I agree.
> Probably better by an order of magnitude would be more likely.
> Bottom line:
> The fastest disk drive on the market is the Seagate Cheetah15K with about
> an average real transfer rate (media to heads) of about 30+ MB/sec.
> A decent RAID array with striping, but no redundancy is likely to give you
> about a sustained rate of between 120MB/sec and 200MB/sec, depending on the
> disks and interface types.
> Next limiting factor is your PCI bus, which, with a 64 bit, 33MHz SCSI card
> is limiting you to about 230MB/sec, maximum theoretical, with around
> 200MB/sec actual.
> 6 to 7 times faster than a single disk, and 3 to 6 times faster than a
> software RAID or similar striping of swap across multiple disks.
>
> Does that seem fair enough?
>
> With our best regards,
>
> Maurice W. Hilarius Telephone: 01-780-456-9771
> Hard Data Ltd. FAX: 01-780-456-9772
> 11060 - 166 Avenue mailto:maurice@harddata.com
> Edmonton, AB, Canada http://www.harddata.com/
> T5X 1Y3
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: What's the maximum swap space?
2000-11-29 18:23 ` Maurice Hilarius
2000-11-29 19:17 ` What's the maximum swap space? [OT] Reto Baettig
@ 2000-11-29 22:52 ` s-luppescu
2000-11-29 23:45 ` Rich Payne
1 sibling, 1 reply; 23+ messages in thread
From: s-luppescu @ 2000-11-29 22:52 UTC (permalink / raw)
To: axp-list
On 29-Nov-2000 Maurice Hilarius wrote:
> With regards to your message at 11:13 AM 11/29/00, s-luppescu@uchicago.edu.
> Where you stated:
>> > Have you considered using a solid-state disk for this, or possibly a SCSI
>> > RAID array?
>> > It would give you infinitely better swap performance in either scenario.
>>
>>A solid-state disk would be prohibitively expensive, but RAID seems like a
>>good
>>idea. But, ``infinitely better swap performance''? Methinks you exaggerate a
>>bit:-}
> Yes, the term "infinitely" is a bit laden with exaggeration, I agree.
> Probably better by an order of magnitude would be more likely.
> Bottom line:
> The fastest disk drive on the market is the Seagate Cheetah15K with about
> an average real transfer rate (media to heads) of about 30+ MB/sec.
> A decent RAID array with striping, but no redundancy is likely to give you
> about a sustained rate of between 120MB/sec and 200MB/sec, depending on the
> disks and interface types.
> Next limiting factor is your PCI bus, which, with a 64 bit, 33MHz SCSI card
> is limiting you to about 230MB/sec, maximum theoretical, with around
> 200MB/sec actual.
> 6 to 7 times faster than a single disk, and 3 to 6 times faster than a
> software RAID or similar striping of swap across multiple disks.
>
> Does that seem fair enough?
Yeah! Six to 7 times is pretty close to ``infinite'' in my book! :-}
______________________________________________________________________
Stuart Luppescu -=-=- University of Chicago
^[$(B:MJ8$HCRF`H~$NIc^[(B -=-=- s-luppescu@uchicago.edu
http://www.consortium-chicago.org/people/sl/sl.html
PGP Public Key: www.consortium-chicago.org/people/sl/pubkey.asc
ICQ #21172047 AIM: psycho7070
It is now pitch dark. If you proceed, you will likely fall into a pit.
>> Sent on 29-Nov-2000 at 16:50:30 with xfmail
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: What's the maximum swap space?
2000-11-29 22:52 ` What's the maximum swap space? s-luppescu
@ 2000-11-29 23:45 ` Rich Payne
2000-11-29 23:57 ` Maurice Hilarius
2000-11-30 0:56 ` Michal Jaegermann
0 siblings, 2 replies; 23+ messages in thread
From: Rich Payne @ 2000-11-29 23:45 UTC (permalink / raw)
To: axp-list
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 2407 bytes --]
Correct me if I'm wrong, but doesn't Linux already use all the available
swap partitions in a RAID like sceme? In other words it balances them out
instead of waiting for one to fill, then starting on the next.
--rdp
On Wed, 29 Nov 2000 s-luppescu@uchicago.edu wrote:
> On 29-Nov-2000 Maurice Hilarius wrote:
> > With regards to your message at 11:13 AM 11/29/00, s-luppescu@uchicago.edu.
> > Where you stated:
> >> > Have you considered using a solid-state disk for this, or possibly a SCSI
> >> > RAID array?
> >> > It would give you infinitely better swap performance in either scenario.
> >>
> >>A solid-state disk would be prohibitively expensive, but RAID seems like a
> >>good
> >>idea. But, ``infinitely better swap performance''? Methinks you exaggerate a
> >>bit:-}
> > Yes, the term "infinitely" is a bit laden with exaggeration, I agree.
> > Probably better by an order of magnitude would be more likely.
> > Bottom line:
> > The fastest disk drive on the market is the Seagate Cheetah15K with about
> > an average real transfer rate (media to heads) of about 30+ MB/sec.
> > A decent RAID array with striping, but no redundancy is likely to give you
> > about a sustained rate of between 120MB/sec and 200MB/sec, depending on the
> > disks and interface types.
> > Next limiting factor is your PCI bus, which, with a 64 bit, 33MHz SCSI card
> > is limiting you to about 230MB/sec, maximum theoretical, with around
> > 200MB/sec actual.
> > 6 to 7 times faster than a single disk, and 3 to 6 times faster than a
> > software RAID or similar striping of swap across multiple disks.
> >
> > Does that seem fair enough?
>
> Yeah! Six to 7 times is pretty close to ``infinite'' in my book! :-}
> ______________________________________________________________________
> Stuart Luppescu -=-=- University of Chicago
> ^[$(B:MJ8$HCRF`H~$NIc^[(B -=-=- s-luppescu@uchicago.edu
> http://www.consortium-chicago.org/people/sl/sl.html
> PGP Public Key: www.consortium-chicago.org/people/sl/pubkey.asc
> ICQ #21172047 AIM: psycho7070
> It is now pitch dark. If you proceed, you will likely fall into a pit.
> >> Sent on 29-Nov-2000 at 16:50:30 with xfmail
>
>
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
>
--
Rich Payne
rpayne@alphalinux.org www.alphalinux.org
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: What's the maximum swap space?
2000-11-29 23:45 ` Rich Payne
@ 2000-11-29 23:57 ` Maurice Hilarius
2000-11-29 23:58 ` Rich Payne
` (2 more replies)
2000-11-30 0:56 ` Michal Jaegermann
1 sibling, 3 replies; 23+ messages in thread
From: Maurice Hilarius @ 2000-11-29 23:57 UTC (permalink / raw)
To: axp-list
With regards to your message at 04:45 PM 11/29/00, Rich Payne. Where you
stated:
>Correct me if I'm wrong, but doesn't Linux already use all the available
>swap partitions in a RAID like sceme? In other words it balances them out
>instead of waiting for one to fill, then starting on the next.
Yes, but in a single sequential stream.
Ultimately we hit the wall with the bottleneck on the head/media interface.
With our best regards,
Maurice W. Hilarius Telephone: 01-780-456-9771
Hard Data Ltd. FAX: 01-780-456-9772
11060 - 166 Avenue mailto:maurice@harddata.com
Edmonton, AB, Canada http://www.harddata.com/
T5X 1Y3
^ permalink raw reply [flat|nested] 23+ messages in thread* Re: What's the maximum swap space?
2000-11-29 23:57 ` Maurice Hilarius
@ 2000-11-29 23:58 ` Rich Payne
2000-11-30 1:15 ` Mike Tibor
[not found] ` <Pine.LNX.4.10.10011291608550.2493-100000@asimov.lib.uaa.al aska.edu>
2 siblings, 0 replies; 23+ messages in thread
From: Rich Payne @ 2000-11-29 23:58 UTC (permalink / raw)
To: axp-list
Hmmm...I see your point. Basically mutiple raid partitions of swap....if
only I was playing with hardware big enough to worry about that :)
--rdp
On Wed, 29 Nov 2000, Maurice Hilarius wrote:
> With regards to your message at 04:45 PM 11/29/00, Rich Payne. Where you
> stated:
>
> >Correct me if I'm wrong, but doesn't Linux already use all the available
> >swap partitions in a RAID like sceme? In other words it balances them out
> >instead of waiting for one to fill, then starting on the next.
> Yes, but in a single sequential stream.
> Ultimately we hit the wall with the bottleneck on the head/media interface.
>
>
> With our best regards,
>
> Maurice W. Hilarius Telephone: 01-780-456-9771
> Hard Data Ltd. FAX: 01-780-456-9772
> 11060 - 166 Avenue mailto:maurice@harddata.com
> Edmonton, AB, Canada http://www.harddata.com/
> T5X 1Y3
>
>
>
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
>
--
Rich Payne
rpayne@alphalinux.org www.alphalinux.org
^ permalink raw reply [flat|nested] 23+ messages in thread* Re: What's the maximum swap space?
2000-11-29 23:57 ` Maurice Hilarius
2000-11-29 23:58 ` Rich Payne
@ 2000-11-30 1:15 ` Mike Tibor
2000-11-30 1:28 ` Jeff Sturm
[not found] ` <Pine.LNX.4.10.10011291608550.2493-100000@asimov.lib.uaa.al aska.edu>
2 siblings, 1 reply; 23+ messages in thread
From: Mike Tibor @ 2000-11-30 1:15 UTC (permalink / raw)
To: axp-list
On Wed, 29 Nov 2000, Maurice Hilarius wrote:
> With regards to your message at 04:45 PM 11/29/00, Rich Payne. Where you
> stated:
>
> >Correct me if I'm wrong, but doesn't Linux already use all the available
> >swap partitions in a RAID like sceme? In other words it balances them out
> >instead of waiting for one to fill, then starting on the next.
> Yes, but in a single sequential stream.
> Ultimately we hit the wall with the bottleneck on the head/media interface.
Given the following from fstab on one of my systems:
/dev/sda1 swap swap defaults,pri=0 0 0
/dev/sdb1 swap swap defaults,pri=0 0 0
/dev/sdc1 swap swap defaults,pri=0 0 0
/dev/sdd1 swap swap defaults,pri=0 0 0
/dev/sde1 swap swap defaults,pri=0 0 0
/dev/sdf1 swap swap defaults,pri=0 0 0
Are you saying that swapping is *not* striped across all those partitions
similar to RAID0, given that they're at the same priority?
Mike
--
Mike Tibor Univ. of Alaska Anchorage (907) 786-1001 voice
Network Technician Consortium Library (907) 786-6050 fax
tibor@lib.uaa.alaska.edu http://www.lib.uaa.alaska.edu/~tibor/
http://www.lib.uaa.alaska.edu/~tibor/pgpkey for PGP public key
^ permalink raw reply [flat|nested] 23+ messages in thread* Re: What's the maximum swap space?
2000-11-30 1:15 ` Mike Tibor
@ 2000-11-30 1:28 ` Jeff Sturm
0 siblings, 0 replies; 23+ messages in thread
From: Jeff Sturm @ 2000-11-30 1:28 UTC (permalink / raw)
To: axp-list
Mike Tibor wrote:
> Given the following from fstab on one of my systems:
>
> /dev/sda1 swap swap defaults,pri=0 0 0
> /dev/sdb1 swap swap defaults,pri=0 0 0
> /dev/sdc1 swap swap defaults,pri=0 0 0
> /dev/sdd1 swap swap defaults,pri=0 0 0
> /dev/sde1 swap swap defaults,pri=0 0 0
> /dev/sdf1 swap swap defaults,pri=0 0 0
>
> Are you saying that swapping is *not* striped across all those partitions
> similar to RAID0, given that they're at the same priority?
You might double-check those priorities with "cat /proc/swaps". (I've
had trouble at times getting swap to honor the declared priorities.)
Jeff
^ permalink raw reply [flat|nested] 23+ messages in thread
[parent not found: <Pine.LNX.4.10.10011291608550.2493-100000@asimov.lib.uaa.al aska.edu>]
* Re: What's the maximum swap space?
[not found] ` <Pine.LNX.4.10.10011291608550.2493-100000@asimov.lib.uaa.al aska.edu>
@ 2000-11-30 3:32 ` Maurice Hilarius
0 siblings, 0 replies; 23+ messages in thread
From: Maurice Hilarius @ 2000-11-30 3:32 UTC (permalink / raw)
To: axp-list
With regards to your message at 06:15 PM 11/29/00, Mike Tibor. Where you
stated:
>Given the following from fstab on one of my systems:
>
>/dev/sda1 swap swap defaults,pri=0 0 0
>/dev/sdb1 swap swap defaults,pri=0 0 0
>/dev/sdc1 swap swap defaults,pri=0 0 0
>/dev/sdd1 swap swap defaults,pri=0 0 0
>/dev/sde1 swap swap defaults,pri=0 0 0
>/dev/sdf1 swap swap defaults,pri=0 0 0
>
>Are you saying that swapping is *not* striped across all those partitions
>similar to RAID0, given that they're at the same priority?
I don't doubt it is striped.
Is it written to simultaneously, though?
Or sequentially??
With our best regards,
Maurice W. Hilarius Telephone: 01-780-456-9771
Hard Data Ltd. FAX: 01-780-456-9772
11060 - 166 Avenue mailto:maurice@harddata.com
Edmonton, AB, Canada http://www.harddata.com/
T5X 1Y3
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: What's the maximum swap space?
2000-11-29 23:45 ` Rich Payne
2000-11-29 23:57 ` Maurice Hilarius
@ 2000-11-30 0:56 ` Michal Jaegermann
1 sibling, 0 replies; 23+ messages in thread
From: Michal Jaegermann @ 2000-11-30 0:56 UTC (permalink / raw)
To: axp-list
On Wed, Nov 29, 2000 at 06:45:41PM -0500, Rich Payne wrote:
>
> Correct me if I'm wrong, but doesn't Linux already use all the available
> swap partitions in a RAID like sceme? In other words it balances them out
> instead of waiting for one to fill, then starting on the next.
Not by a default. If you have many swap partitions then for the
effect you are talking about you have to set priorities properly.
Which is trivial - 'man 8 swapon' and 'man mount'.
Michal
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: What's the maximum swap space?
2000-11-28 21:35 What's the maximum swap space? s-luppescu
2000-11-28 18:25 ` Reto Baettig
@ 2000-11-28 22:46 ` Matt Wilson
2000-11-29 15:17 ` s-luppescu
1 sibling, 1 reply; 23+ messages in thread
From: Matt Wilson @ 2000-11-28 22:46 UTC (permalink / raw)
To: axp-list
On Alpha the maximum swap partition size is 128 GB. You can have both
swap files (on filesystems) and swap partitions (on block devices).
Together these are "swap areas". The default maximum number of swap
is 8.
Matt
On Tue, Nov 28, 2000 at 04:35:45PM -0500, s-luppescu@uchicago.edu wrote:
> We are considering buying an alpha to do some very extensive numerical
> calculations, some of which would require inverting matrices up to 15,000 x
> 15,000 in size. We figure this will take up to 40 GB of virtual memory. I have
> looked all over the place, but can't find a definitive answer about what's the
> maximum amount of swap space I can have on an alpha machine. man mkswap (on my
> intel RedHat machine) says,
>
> | In the new
> | style swap area this is precisely what is done. The maximum useful size of
> | a swap area now depends on the architecture. It is roughly 2GiB on i386,
> | PPC, m68k, ARM, 1GiB on sparc, 512MiB on mips, 128GiB on alpha and
> | 3TiB on sparc64.
> |
> | Note that before 2.1.117 the kernel allocated one byte for each page, while
> | it now allocates two bytes, so that taking a swap area of 2 GiB in use might
> | require 2 MiB of kernel memory.
> |
> | Presently, Linux allows 8 swap areas. The areas in use can be seen in
> | the file /proc/swaps (since 2.1.25).
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: What's the maximum swap space?
2000-11-28 22:46 ` Matt Wilson
@ 2000-11-29 15:17 ` s-luppescu
2000-11-29 17:03 ` Maurice Hilarius
0 siblings, 1 reply; 23+ messages in thread
From: s-luppescu @ 2000-11-29 15:17 UTC (permalink / raw)
To: axp-list
On 28-Nov-2000 Matt Wilson wrote:
> On Alpha the maximum swap partition size is 128 GB. You can have both
> swap files (on filesystems) and swap partitions (on block devices).
> Together these are "swap areas". The default maximum number of swap
> is 8.
>
> Matt
Does this mean that I could get 8 * 128 GB = 1 TB of total swap space? (Not
that I really need it, but....) More realistically, does this mean that I can
devote a full 36 GB drive in a single partition to swap? In terms of
efficiency, what would be the optimum allocation of swap to partitions? E.g.,
would it be better to divide up a 36 GB drive into 8 swap partitions, or
perhaps two 18 GB drives into 4 swap partitions each? Or what?
______________________________________________________________________
Stuart Luppescu -=-=- University of Chicago
^[$(B:MJ8$HCRF`H~$NIc^[(B -=-=- s-luppescu@uchicago.edu
http://www.consortium-chicago.org/people/sl/sl.html
PGP Public Key: www.consortium-chicago.org/people/sl/pubkey.asc
ICQ #21172047 AIM: psycho7070
Yevtushenko has... an ego that can crack crystal at a distance of twenty feet.
-- John Cheever
>> Sent on 29-Nov-2000 at 10:12:17 with xfmail
^ permalink raw reply [flat|nested] 23+ messages in thread* Re: What's the maximum swap space?
2000-11-29 15:17 ` s-luppescu
@ 2000-11-29 17:03 ` Maurice Hilarius
0 siblings, 0 replies; 23+ messages in thread
From: Maurice Hilarius @ 2000-11-29 17:03 UTC (permalink / raw)
To: axp-list
With regards to your message at 08:17 AM 11/29/00, s-luppescu@uchicago.edu.
Where you stated:
>Does this mean that I could get 8 * 128 GB = 1 TB of total swap space? (Not
>that I really need it, but....) More realistically, does this mean that I can
>devote a full 36 GB drive in a single partition to swap? In terms of
>efficiency, what would be the optimum allocation of swap to partitions? E.g.,
>would it be better to divide up a 36 GB drive into 8 swap partitions, or
>perhaps two 18 GB drives into 4 swap partitions each? Or what?
You would be best to use 3 or more disks, and do some optimization.
Look at the man pages for swap and it will give some examples.
Effectively you would be "striping" the swap file access.
Better yet might be to use either software or hardware RAID.
With our best regards,
Maurice W. Hilarius Telephone: 01-780-456-9771
Hard Data Ltd. FAX: 01-780-456-9772
11060 - 166 Avenue mailto:maurice@harddata.com
Edmonton, AB, Canada http://www.harddata.com/
T5X 1Y3
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: What's the maximum swap space?
@ 2000-11-29 23:00 David Singleton
2000-11-29 23:56 ` Maurice Hilarius
2000-11-30 2:01 ` Greg Lindahl
0 siblings, 2 replies; 23+ messages in thread
From: David Singleton @ 2000-11-29 23:00 UTC (permalink / raw)
To: axp-list
Be a little wary of associating peak disk performance and swap
performance. Paging is done in (I think) 8KB pages on Linux Alpha -
that is not the way to get good IO performance.
I have done a number of tests hoping to use paging for good ol'
fashioned job-swapping (like suspend a 5GB job and start another 5GB
job when you only have 6GB of RAM). The "memory exchange" can take
HOURS on some systems and will get only a few MB/s on most.
If you really need 40GB you may be much better off writing your own
out-of-core solver where you roll in and out data in LARGE record
sizes.
------
David.Singleton@anu.edu.au ANU Supercomputer Facility
Phone: +61 2 6249 4389 Australian National University
Fax: +61 2 6279 8199 Canberra, ACT, 0200, Australia
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: What's the maximum swap space?
2000-11-29 23:00 David Singleton
@ 2000-11-29 23:56 ` Maurice Hilarius
2000-11-30 2:01 ` Greg Lindahl
1 sibling, 0 replies; 23+ messages in thread
From: Maurice Hilarius @ 2000-11-29 23:56 UTC (permalink / raw)
To: axp-list
With regards to your message at 04:00 PM 11/29/00, David Singleton. Where
you stated:
>Be a little wary of associating peak disk performance and swap
>performance. Paging is done in (I think) 8KB pages on Linux Alpha -
>that is not the way to get good IO performance.
Hence my suggestion of a hardware SCSI RAID.
As this then allows the segments to go throught the cache RAM on the RAID
controller, and as the writes are distributed over multiple disks we gain
the benefit of the cache RAM on the disks as well. With this buffering I
suspect that stalls will be kept to a minimum.
>I have done a number of tests hoping to use paging for good ol'
>fashioned job-swapping (like suspend a 5GB job and start another 5GB
>job when you only have 6GB of RAM). The "memory exchange" can take
>HOURS on some systems and will get only a few MB/s on most.
>
>If you really need 40GB you may be much better off writing your own
>out-of-core solver where you roll in and out data in LARGE record
>sizes.
I agree that a software solution is probably for the best!
With our best regards,
Maurice W. Hilarius Telephone: 01-780-456-9771
Hard Data Ltd. FAX: 01-780-456-9772
11060 - 166 Avenue mailto:maurice@harddata.com
Edmonton, AB, Canada http://www.harddata.com/
T5X 1Y3
^ permalink raw reply [flat|nested] 23+ messages in thread* RE: What's the maximum swap space?
2000-11-29 23:00 David Singleton
2000-11-29 23:56 ` Maurice Hilarius
@ 2000-11-30 2:01 ` Greg Lindahl
2000-11-30 2:07 ` David Singleton
1 sibling, 1 reply; 23+ messages in thread
From: Greg Lindahl @ 2000-11-30 2:01 UTC (permalink / raw)
To: axp-list
> Be a little wary of associating peak disk performance and swap
> performance. Paging is done in (I think) 8KB pages on Linux Alpha -
> that is not the way to get good IO performance.
>
> I have done a number of tests hoping to use paging for good ol'
> fashioned job-swapping (like suspend a 5GB job and start another 5GB
> job when you only have 6GB of RAM).
Patient: Doctor, it hurts when I do this.
Doctor: Don't do that.
Traditional Unixes have both a pager and a swapper. Linux only has a pager.
This means that it doesn't do what you want efficiently. There is some
attention to clustering pageouts, but it's nowhere as efficient as a real
swapper. If you need a real swapper, you'll have to write one.
-- g
^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~2000-11-30 4:20 UTC | newest]
Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-28 21:35 What's the maximum swap space? s-luppescu
2000-11-28 18:25 ` Reto Baettig
2000-11-29 15:20 ` s-luppescu
2000-11-29 17:01 ` Maurice Hilarius
2000-11-29 18:13 ` s-luppescu
2000-11-29 18:23 ` Maurice Hilarius
2000-11-29 19:17 ` What's the maximum swap space? [OT] Reto Baettig
2000-11-29 22:52 ` What's the maximum swap space? s-luppescu
2000-11-29 23:45 ` Rich Payne
2000-11-29 23:57 ` Maurice Hilarius
2000-11-29 23:58 ` Rich Payne
2000-11-30 1:15 ` Mike Tibor
2000-11-30 1:28 ` Jeff Sturm
[not found] ` <Pine.LNX.4.10.10011291608550.2493-100000@asimov.lib.uaa.al aska.edu>
2000-11-30 3:32 ` Maurice Hilarius
2000-11-30 0:56 ` Michal Jaegermann
2000-11-28 22:46 ` Matt Wilson
2000-11-29 15:17 ` s-luppescu
2000-11-29 17:03 ` Maurice Hilarius
-- strict thread matches above, loose matches on Subject: below --
2000-11-29 23:00 David Singleton
2000-11-29 23:56 ` Maurice Hilarius
2000-11-30 2:01 ` Greg Lindahl
2000-11-30 2:07 ` David Singleton
2000-11-30 3:35 ` Maurice Hilarius
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox