From: Rik van Riel <riel@nl.linux.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Andrea Arcangeli <andrea@e-mind.com>,
Linux MM <linux-mm@kvack.org>,
Linux Kernel <linux-kernel@vger.rutgers.edu>
Subject: [PATCH] goeasy without typo :)
Date: Sun, 23 Jan 2000 03:37:05 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.10.10001230331450.245-100000@mirkwood.dummy.home> (raw)
Hi Alan, Andrea,
IBM's James Manning pointed out two forgotten braces
in my last patchlet, so here is a new version (one that
should work). Like the last one it slows down kswapd
once it gets above freepages.low .. because it frees
memory with SWAP_CLUSTER_MAX pages at a time, this won't
give any hysteresis problems.
Between freepages.low and freepages.high kswapd will
do background freeing of pages. When the CPU is idle
it will work until it has reached freepages.high,
otherwise it'll yield the CPU and try again later.
regards,
Rik
--
The Internet is not a network of computers. It is a network
of people. That is its real strength.
--- mm/vmscan.c.combo Sun Jan 23 01:06:50 2000
+++ mm/vmscan.c Sun Jan 23 03:30:46 2000
@@ -497,8 +497,11 @@
{
if (!do_try_to_free_pages(GFP_KSWAPD))
break;
- if (tsk->need_resched)
+ if (tsk->need_resched) {
+ if (nr_free_pages > freepages.low)
+ break;
schedule();
+ }
}
run_task_queue(&tq_disk);
interruptible_sleep_on_timeout(&kswapd_wait, HZ);
--
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/
reply other threads:[~2000-01-23 2:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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.10001230331450.245-100000@mirkwood.dummy.home \
--to=riel@nl.linux.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=andrea@e-mind.com \
--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