From: Rik van Riel <riel@nl.linux.org>
To: Andrea Arcangeli <andrea@suse.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
Linux MM <linux-mm@kvack.org>,
Linux Kernel <linux-kernel@vger.rutgers.edu>
Subject: Re: [patch] 2.2.15-pre3 kswapd fix
Date: Fri, 21 Jan 2000 03:29:23 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.10.10001210326330.27593-100000@mirkwood.dummy.home> (raw)
In-Reply-To: <Pine.LNX.4.21.0001210311050.4332-100000@alpha.random>
On Fri, 21 Jan 2000, Andrea Arcangeli wrote:
> On Fri, 21 Jan 2000, Rik van Riel wrote:
>
> >About Andrea's freepages.low vs. freepages.min problem,
>
> It's not a problem. It's just that low is unused and you are now making
> min unused. You are simply increasing the min value.
More than that. Min is supposed to be the absolute boundary
below which nothing can allocate memory (except for ATOMIC
allocations). It's not with the old code, that's broken.
> >+++ linux-2.2.15-pre3/mm/vmscan.c Fri Jan 21 02:46:42 2000
> >@@ -485,18 +485,16 @@
> > * the processes needing more memory will wake us
> > * up on a more timely basis.
> > */
> >- interruptible_sleep_on_timeout(&kswapd_wait, HZ);
> > while (nr_free_pages < freepages.high)
> > {
> >- if (do_try_to_free_pages(GFP_KSWAPD))
> >- {
> >- if (tsk->need_resched)
> >- schedule();
> >- continue;
> >- }
> >- tsk->state = TASK_INTERRUPTIBLE;
> >- schedule_timeout(10*HZ);
> >+ if (!do_try_to_free_pages(GFP_KSWAPD))
> >+ break;
> >+ if (tsk->need_resched)
> >+ schedule();
> > }
> >+ run_task_queue(&tq_disk);
> >+ tsk->state = TASK_INTERRUPTIBLE;
> >+ schedule_timeout(HZ);
>
> How do you get a wakeup now? :) now it's pure too slow polling.
I copied this from the 2.3 code in the expectation that
schedule_timeout(HZ); is interruptible. If it's not, then
we've just found a 2.3 bug :)
> > wake_up_interruptible(&kswapd_wait);
> >- if (gfp_mask & __GFP_WAIT)
> >+ if ((gfp_mask & __GFP_WAIT) && (nr_free_pages < (freepages.low - 4)))
>
> Again treshing_mem heuristic broken...
Please explain to me why this is broken? I've carefully
explained why this makes sense and you haven't given
any practical explanation on your point of view...
regards,
Rik
--
The Internet is not a network of computers. It is a network
of people. That is its real strength.
--
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-01-21 2:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-21 1:55 Rik van Riel
2000-01-21 2:18 ` Andrea Arcangeli
2000-01-21 2:29 ` Rik van Riel [this message]
2000-01-21 13:02 ` Andrea Arcangeli
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.10001210326330.27593-100000@mirkwood.dummy.home \
--to=riel@nl.linux.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=andrea@suse.de \
--cc=linux-kernel@vger.rutgers.edu \
--cc=linux-mm@kvack.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