public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Roger Larsson <roger.larsson@skelleftea.mail.telia.com>
To: Stephan von Krawczynski <skraw@ithnet.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH][RFC] simpler __alloc_pages{_limit}
Date: Sat, 25 Aug 2001 18:25:19 +0200	[thread overview]
Message-ID: <200108251629.f7PGTiQ19557@mailf.telia.com> (raw)
In-Reply-To: <200108242253.f7OMrbQ20401@mailf.telia.com> <200108250055.f7P0tGh28170@mailg.telia.com> <20010825135508.5afe1988.skraw@ithnet.com>
In-Reply-To: <20010825135508.5afe1988.skraw@ithnet.com>

On Saturday den 25 August 2001 13:55, Stephan von Krawczynski wrote:
> On Sat, 25 Aug 2001 02:48:28 +0200
>
> Roger Larsson <roger.larsson@norran.net> wrote:
> > Hi again,
> >
> > [two typos corrected from the version at linux-mm]
> > [...]
> > Doing this - the code started to collaps...
> > __alloc_pages_limit could suddenly handle all special cases!
> > (with small functional differences)
> >
> > Comments?
>
> Hi Roger,
>
> I tested your page against straight 2.4.9 (where it applied mostly, the
> rest I did manually) and experience the following: 
> 1) system gets slow, even in times where plenty of free memory is
> available. There must be some overhead inside.

It is not unlikely because it care too much about the higher order 
allocations. It needs a higher order page and really tries...

> 2) It does not really work around the basic problem of too
> many cached pages in case of heavy filesystem action, I do get the already
> known "kernel: __alloc_pages: 2-order allocation failed." by simply copying
> files a lot. 

Is this with raiserfs and/or nfs? And without highmem support?
Why is 2-order allocations needed???
Can anyone answer?
Higher order allocs during normal operation is not that nice...

> 3) Even in high load situations the CPU load seems to get
> worse, I made it up to 7 with normal file copying on a SMP 1GHz 1GB RAM
> machine.

Might also be related to the higher order. Freeing too much inactive pages
to satisfy the request...
SMP might be a factor since the patch will go harder on the locks...

>
> Hm, I guess that doesn't really work as you expected.

Well, I make a version that gives up on higher order allocations more 
quickly...

But the real problem might be - why are the higher order allocations
needed anyway?

/RogerL

-- 
Roger Larsson
Skellefteå
Sweden

  reply	other threads:[~2001-08-25 16:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200108242253.f7OMrbQ20401@mailf.telia.com>
2001-08-25  0:48 ` [PATCH][RFC] simpler __alloc_pages{_limit} Roger Larsson
2001-08-25  8:48   ` Mike Galbraith
2001-08-25 18:09     ` Daniel Phillips
2001-08-25 19:53       ` Mike Galbraith
2001-08-25 11:55   ` Stephan von Krawczynski
2001-08-25 16:25     ` Roger Larsson [this message]
2001-08-25 19:24     ` Roger Larsson
2001-08-28 11:22       ` Stephan von Krawczynski

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=200108251629.f7PGTiQ19557@mailf.telia.com \
    --to=roger.larsson@skelleftea.mail.telia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=skraw@ithnet.com \
    /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