mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "M. Edward Borasky" <znmeb@aracnet.com>
To: "Harald Holzer" <harald.holzer@eunet.at>, <linux-kernel@vger.kernel.org>
Subject: RE: i686 SMP systems with more then 12 GB ram with 2.4.x kernel ?
Date: Sat, 29 Dec 2001 18:33:53 -0800	[thread overview]
Message-ID: <HBEHIIBBKKNOBLMPKCBBGEOAEEAA.znmeb@aracnet.com> (raw)
In-Reply-To: <1009678476.12942.6.camel@hh2.hhhome.at>

Hmmm ... 0 order allocation failures ... is that new *after* my patch or
were you getting those before? Maybe we've *moved* the problem??

--
Take Your Trading to the Next Level!
M. Edward Borasky, Meta-Trading Coach

znmeb@borasky-research.net
http://www.meta-trading-coach.com
http://groups.yahoo.com/group/meta-trading-coach

> -----Original Message-----
> From: linux-kernel-owner@vger.kernel.org
> [mailto:linux-kernel-owner@vger.kernel.org]On Behalf Of Harald Holzer
> Sent: Saturday, December 29, 2001 6:15 PM
> To: M. Edward (Ed) Borasky; linux-kernel@vger.kernel.org
> Subject: Re: i686 SMP systems with more then 12 GB ram with 2.4.x kernel
> ?
>
>
> I tested your suggestion with an 2.4.17rc2aa2 kernel,
> but it didnt help.
> The system dies after copying more then 6-8GB on data.
> Here are the last lines from /var/log/messages:
>
> Dec 30 01:47:32 localhost kernel: __alloc_pages: 0-order
> allocation failed (gfp=0x70/0)
> Dec 30 01:47:32 localhost kernel: __alloc_pages: 0-order
> allocation failed (gfp=0x70/0)
> Dec 30 01:47:32 localhost kernel: __alloc_pages: 0-order
> allocation failed (gfp=0x1f0/0)
> Dec 30 01:47:32 localhost kernel: __alloc_pages: 0-order
> allocation failed (gfp=0x70/0)
> Dec 30 01:47:32 localhost kernel: __alloc_pages: 0-order
> allocation failed (gfp=0xf0/0)
> Dec 30 01:47:32 localhost kernel: __alloc_pages: 0-order
> allocation failed (gfp=0x70/0)
> Dec 30 01:47:32 localhost last message repeated 3 times
> Dec 30 01:47:32 localhost kernel: __alloc_pages: 0-order
> allocation failed (gfp=0x1f0/0)
>
> I started to begin searching in the linux/fs/buffer.c, and found the
> following interesting lines (line: 1450+):
>
> void create_empty_buffers(struct page *page, kdev_t dev, unsigned
> long blocksize)
> {
> 	struct buffer_head *bh, *head, *tail;
>
> 	/* FIXME: create_buffers should fail if there's no enough memory */
> 	head = create_buffers(page, blocksize, 1);
> 	if (page->buffers)
> 		BUG();
>
> 	bh = head;
>
> Could the create_buffer function cause this problem ?
>
> Harald Holzer
>
> On Sun, 2001-12-30 at 01:25, M. Edward (Ed) Borasky wrote:
> > On Sat, 29 Dec 2001, M. Edward (Ed) Borasky wrote:
> >
> > > On Sat, 29 Dec 2001, Alan Cox wrote:
> > >
> > > > Because much of the memory cannot be used for kernel objects there
> > > > is an imbalance in available resources and its very hard to balance
> > > > them sanely.  I'm not sure how many 8Gb+ machines Andrea has handy
> > > > to tune the VM on either.
> > >
> > > Along those lines -- I have in front of me the source to
> > > "/linux/mm/page_alloc.c" (2.4.17 kernel) which reads (partially)
> >
> > [snip]
> >
> >
> > > Could someone with a big box and a benchmark that drives it out of
> > > free memory please try commenting out the "else if" clause and see if
> > > it makes a difference? I tried this on my puny 512 MB Athlon and
> > > verified that the right values were there with "sysrq", but I don't
> > > have anything bigger to try it on and I don't have a benchmark to test
> > > it with either.
> >
> > And here it is as a patch against 2.4.17:
> >
> > diff -ur linux/mm/page_alloc.c linux-2.4.17znmeb/mm/page_alloc.c
> > --- linux/mm/page_alloc.c	Mon Nov 19 16:35:40 2001
> > +++ linux-2.4.17znmeb/mm/page_alloc.c	Sat Dec 29 16:04:25 2001
> > @@ -718,8 +718,13 @@
> >  		mask = (realsize / zone_balance_ratio[j]);
> >  		if (mask < zone_balance_min[j])
> >  			mask = zone_balance_min[j];
> > +		/* else if clause commented out for testing
> > +		 * M. Edward Borasky, Borasky Research
> > +		 * 2001-12-29
> > +		 *
> >  		else if (mask > zone_balance_max[j])
> >  			mask = zone_balance_max[j];
> > +		 */
> >  		zone->pages_min = mask;
> >  		zone->pages_low = mask*2;
> >  		zone->pages_high = mask*3;
> >
> >
> > Apologies if pine with vim as the editor messes this puppy up :-).
> > --
> > M. Edward Borasky
> >
> > znmeb@borasky-research.net
> > http://www.borasky-research.net
> >
> > I brought my inner child to "Take Your Child To Work Day."
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at  http://www.tux.org/lkml/
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
>


  reply	other threads:[~2001-12-30  2:34 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1009995669.1253.17.camel@wookie-laptop.pdx.osdl.net>
2001-12-29 18:18 ` Harald Holzer
2001-12-29 18:45   ` Alan Cox
2001-12-29 21:24     ` M. Edward (Ed) Borasky
2001-12-30  0:25       ` M. Edward (Ed) Borasky
2001-12-30  2:14         ` Harald Holzer
2001-12-30  2:33           ` M. Edward Borasky [this message]
2002-01-01 18:15     ` M. Edward Borasky
2002-01-01 18:46       ` Alan Cox
2002-01-01 19:02         ` M. Edward Borasky
2002-01-02  1:16         ` H. Peter Anvin
2002-01-02 21:17         ` Gerrit Huizenga
2002-01-06  8:20           ` Benjamin LaHaise
2002-01-06 16:16             ` Alan Cox
2002-01-06 20:23               ` Benjamin LaHaise
2002-01-06 23:37               ` Chris Wedgwood
2002-01-07  0:29                 ` The COUGAR Project M. Edward Borasky
2002-01-07  2:18                 ` i686 SMP systems with more then 12 GB ram with 2.4.x kernel ? Marvin Justice
2002-01-07  2:38                   ` Chris Wedgwood
2002-01-07  4:40                     ` T. A.
2002-01-07 16:20               ` Hugh Dickins
2002-01-02 17:30   ` Timothy D. Witham
     [not found]     ` <1009994687.12942.14.camel@hh2.hhhome.at>
2002-01-02 23:50       ` Harald Holzer
2002-01-03  0:16         ` Alan Cox
2002-01-03 13:30           ` Rik van Riel
2002-01-04 12:09             ` Hugh Dickins
2002-01-04 12:15               ` Rik van Riel
2002-01-03  0:17         ` Mark Zealey
2002-01-03 13:28         ` Rik van Riel
2002-01-03 14:33         ` Stephan von Krawczynski
2002-01-03 16:38           ` Rik van Riel
2002-01-03 15:15         ` Anton Blanchard
2001-12-29 19:25 Dieter Nützel
2002-01-06 18:39 Daniel Freedman
2002-01-06 18:59 ` Marvin Justice
2002-01-06 19:45   ` Daniel Freedman
2002-01-06 20:15     ` Marvin Justice
2002-01-07  5:17       ` Daniel Freedman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=HBEHIIBBKKNOBLMPKCBBGEOAEEAA.znmeb@aracnet.com \
    --to=znmeb@aracnet.com \
    --cc=harald.holzer@eunet.at \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®