From: Linus Torvalds <torvalds@transmeta.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Rik van Riel <riel@conectiva.com.br>, linux-mm@kvack.org
Subject: Re: [patch] VM stable again?
Date: Mon, 15 May 2000 11:36:03 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.10.10005151132360.3637-100000@penguin.transmeta.com> (raw)
In-Reply-To: <Pine.LNX.4.10.10005151729430.6248-100000@elte.hu>
On Mon, 15 May 2000, Ingo Molnar wrote:
>
> yep, this should work. A minor comment:
>
> > + if (atomic_read(&free_before_allocate))
>
> i believe this needs to be per-zone and should preferably be read within
> the zone spinlock - not atomic operations. Updating a global counter is a
> big time problem on SMP.
Nope.
It can't be per zone, because there is no "zone". There is only a generic
balance between different zones.
And the critical path actually only reads the counter, which is fine on
SMP: most of the time the counter should be quiescent, with every CPU just
having a shared copy in their caches.
However, I do think that it might make sense to make this per-zonelist, so
that if a DMA request (or a request on another node in a NUMA environment)
causes another zone-list to be low-on-memory, that should not affect the
other zone-lists.
(The per-zonelist version should have pretty much the same behaviour as a
global one in the normal cases, it's just that it doesn't have the bad
behaviour in the uncommon cases).
Rik, mind cleaning that up, and fixing the leak? After that it looks
fine..
Linus
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
next prev parent reply other threads:[~2000-05-15 18:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-15 15:12 Rik van Riel
2000-05-15 15:31 ` Ingo Molnar
2000-05-15 15:27 ` Rik van Riel
2000-05-15 16:15 ` Ingo Molnar
2000-05-15 18:36 ` Linus Torvalds [this message]
2000-05-15 18:29 ` Linus Torvalds
2000-05-15 19:01 ` Stephen C. Tweedie
2000-05-15 19:10 ` Rik van Riel
2000-05-15 19:30 ` Ingo Molnar
2000-05-15 19:27 ` Rik van Riel
2000-05-15 19:22 ` Ingo Molnar
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=Pine.LNX.4.10.10005151132360.3637-100000@penguin.transmeta.com \
--to=torvalds@transmeta.com \
--cc=linux-mm@kvack.org \
--cc=mingo@elte.hu \
--cc=riel@conectiva.com.br \
/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