linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Max swap size ?
@ 2001-12-03 23:04 Christopher Murtagh
  2001-12-04 16:14 ` Michel Dänzer
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher Murtagh @ 2001-12-03 23:04 UTC (permalink / raw)
  To: linuxppc-dev


 Greetings,

 I have a machine running YDL (Dual 800Mhz, 1GB RAM) with a 2.4.13 SMP
kernel (YellowDog's stock SMP kernel) that has a 512 MB swap partition.
When I tried to install on other machines, they wouldn't boot with a swap
partition that big, but for some reason this one did. It wasn't until
after the other machines wouldn't boot did I notice in the TerraSoft docs
that 256MB was the max. The machine ran beautifully until today when it
did a nasty crash. My gut feeling is that it crashed when it tried to
write to the swap for the first time as it was inching up to using almost
all available RAM when it died.

 So my question is: Is this a likely cause and will resizing the swap
partition fix this or do I have bigger problems? Any info would be much
appreciated.

Cheers,

Chris

 P.S. Many thanks to all PPC Linux hackers. My servers and desktop
machines run beautifully because of your work. If any of you come to Mtl,
look me up and I'll take you out for a drink (Beer, coffe, etc.) and some
hospitality.

--

Christopher Murtagh
Webmaster / Sysadmin
Web Communications Group
McGill University
Montreal, Quebec
Canada

Tel.: (514) 398-3122
Fax:  (514) 398-2017


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: Max swap size ?
  2001-12-03 23:04 Max swap size ? Christopher Murtagh
@ 2001-12-04 16:14 ` Michel Dänzer
  2001-12-04 16:20   ` Geert Uytterhoeven
  2001-12-04 16:35   ` Christopher Murtagh
  0 siblings, 2 replies; 5+ messages in thread
From: Michel Dänzer @ 2001-12-04 16:14 UTC (permalink / raw)
  To: Christopher Murtagh; +Cc: linuxppc-dev


On Tue, 2001-12-04 at 00:04, Christopher Murtagh wrote:

>  I have a machine running YDL (Dual 800Mhz, 1GB RAM) with a 2.4.13 SMP
> kernel (YellowDog's stock SMP kernel) that has a 512 MB swap partition.
> When I tried to install on other machines, they wouldn't boot with a swap
> partition that big, but for some reason this one did. It wasn't until
> after the other machines wouldn't boot did I notice in the TerraSoft docs
> that 256MB was the max.

That used to be the case before kernel 2.2 IIRC. Nowadays the limit is
in the gigabytes. FWIW I'm using a 400 meg swap partition without
problems.

> The machine ran beautifully until today when it did a nasty crash. My gut
> feeling is that it crashed when it tried to write to the swap for the
> first time as it was inching up to using almost all available RAM when
> it died.

Are you sure it only hit swap then? I can't remember ever seeing active
but completely unused swap space, even when RAM usage was low.


The bottom line is yes, you likely have another problem.


--
Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: Max swap size ?
  2001-12-04 16:14 ` Michel Dänzer
@ 2001-12-04 16:20   ` Geert Uytterhoeven
  2001-12-04 16:35   ` Christopher Murtagh
  1 sibling, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2001-12-04 16:20 UTC (permalink / raw)
  To: Michel Dänzer; +Cc: Christopher Murtagh, Linux/PPC Development


On 4 Dec 2001, Michel [ISO-8859-1] Dänzer wrote:
> On Tue, 2001-12-04 at 00:04, Christopher Murtagh wrote:
> >  I have a machine running YDL (Dual 800Mhz, 1GB RAM) with a 2.4.13 SMP
> > kernel (YellowDog's stock SMP kernel) that has a 512 MB swap partition.
> > When I tried to install on other machines, they wouldn't boot with a swap
> > partition that big, but for some reason this one did. It wasn't until
> > after the other machines wouldn't boot did I notice in the TerraSoft docs
> > that 256MB was the max.
>
> That used to be the case before kernel 2.2 IIRC. Nowadays the limit is
> in the gigabytes. FWIW I'm using a 400 meg swap partition without
> problems.

The limit used to be 128 MiB, not 256 MiB. They used one page as a bitmask to
mark swap pages that were in use, hence 4096*8*4kiB = 128 MiB.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: Max swap size ?
  2001-12-04 16:14 ` Michel Dänzer
  2001-12-04 16:20   ` Geert Uytterhoeven
@ 2001-12-04 16:35   ` Christopher Murtagh
  2001-12-04 18:37     ` Michel Dänzer
  1 sibling, 1 reply; 5+ messages in thread
From: Christopher Murtagh @ 2001-12-04 16:35 UTC (permalink / raw)
  To: linuxppc-dev


 Thanks for the replies.

On 4 Dec 2001, Michel Dänzer wrote:
>That used to be the case before kernel 2.2 IIRC. Nowadays the limit is
>in the gigabytes. FWIW I'm using a 400 meg swap partition without
>problems.

 Ok, well that's good to hear.

>Are you sure it only hit swap then? I can't remember ever seeing active
>but completely unused swap space, even when RAM usage was low.
>
>The bottom line is yes, you likely have another problem.

 This isn't though.. :-(

Mem:  1024100K av,  774636K used,  249464K free,  0K shrd,  179708K  buff
Swap:  524280K av,       0K used,  524280K free             490400K  cached

 this is what my machine is like at the moment. So, from what you are
saying, my problem lies elsewhere (ie. is not swap *size*), but is likely
swap related? Is there a way I can force swapping in an elegant way to
test whether this will bring down my machine? Thanks again.

Cheers,

Chris


--

Christopher Murtagh
Webmaster / Sysadmin
Web Communications Group
McGill University
Montreal, Quebec
Canada

Tel.: (514) 398-3122
Fax:  (514) 398-2017


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: Max swap size ?
  2001-12-04 16:35   ` Christopher Murtagh
@ 2001-12-04 18:37     ` Michel Dänzer
  0 siblings, 0 replies; 5+ messages in thread
From: Michel Dänzer @ 2001-12-04 18:37 UTC (permalink / raw)
  To: Christopher Murtagh; +Cc: linuxppc-dev


On Tue, 2001-12-04 at 17:35, Christopher Murtagh wrote:
>
>  Thanks for the replies.
>
> On 4 Dec 2001, Michel Dänzer wrote:
> >That used to be the case before kernel 2.2 IIRC. Nowadays the limit is
> >in the gigabytes. FWIW I'm using a 400 meg swap partition without
> >problems.
>
>  Ok, well that's good to hear.
>
> >Are you sure it only hit swap then? I can't remember ever seeing active
> >but completely unused swap space, even when RAM usage was low.
> >
> >The bottom line is yes, you likely have another problem.
>
>  This isn't though.. :-(
>
> Mem:  1024100K av,  774636K used,  249464K free,  0K shrd,  179708K  buff
> Swap:  524280K av,       0K used,  524280K free             490400K  cached
>
>  this is what my machine is like at the moment. So, from what you are
> saying, my problem lies elsewhere (ie. is not swap *size*), but is likely
> swap related?

Or maybe it's related to the huge amount of RAM you have, but others
will know better.


--
Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2001-12-04 18:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-03 23:04 Max swap size ? Christopher Murtagh
2001-12-04 16:14 ` Michel Dänzer
2001-12-04 16:20   ` Geert Uytterhoeven
2001-12-04 16:35   ` Christopher Murtagh
2001-12-04 18:37     ` Michel Dänzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).