From: Rik van Riel <riel@conectiva.com.br>
To: Billy Harvey <Billy.Harvey@thrillseeker.net>
Cc: Linux Kernel <linux-kernel@vger.rutgers.edu>, linux-mm@kvack.org
Subject: [uPatch] Re: Graceful failure?
Date: Mon, 5 Jun 2000 13:03:08 -0300 (BRST) [thread overview]
Message-ID: <Pine.LNX.4.21.0006051258370.31069-100000@duckman.distro.conectiva> (raw)
In-Reply-To: <14651.49518.825666.298019@rhino.thrillseeker.net>
On Mon, 5 Jun 2000, Billy Harvey wrote:
> A "make -j" slowly over the course of 5 minutes drives the load
> to about 30. At first the degradation is controlled, with
> sendmail refusing service, but at about 160 process visible in
> top, top quits updating (set a 8 second updates), showing about
> 2 MB swap used. At this point it sounds like the system is
> thrashing.
That probably means you're a lot more in swap now and top
has stopped displaying before you really hit the swap...
> Is this failure process acceptable? I'd think the system should
> react differently to the thrashing, killing off the load
> demanding user process(es), rather than degrading to a point of
> freeze.
Please take into account that the system is quite a bit beyond
where you could take previous kernels ... oh, and the attached
patch should fix the problem somewhat ;)
regards,
Rik
--
The Internet is not a network of computers. It is a network
of people. That is its real strength.
Wanna talk about the kernel? irc.openprojects.net / #kernelnewbies
http://www.conectiva.com/ http://www.surriel.com/
--- linux-2.4.0-t1-ac8/include/linux/mm.h.orig Wed May 31 21:00:14 2000
+++ linux-2.4.0-t1-ac8/include/linux/mm.h Sun Jun 4 16:21:31 2000
@@ -202,6 +202,7 @@
#define ClearPageError(page) clear_bit(PG_error, &(page)->flags)
#define PageReferenced(page) test_bit(PG_referenced, &(page)->flags)
#define SetPageReferenced(page) set_bit(PG_referenced, &(page)->flags)
+#define ClearPageReferenced(page) clear_bit(PG_referenced, &(page)->flags)
#define PageTestandClearReferenced(page) test_and_clear_bit(PG_referenced, &(page)->flags)
#define PageDecrAfter(page) test_bit(PG_decr_after, &(page)->flags)
#define SetPageDecrAfter(page) set_bit(PG_decr_after, &(page)->flags)
--- linux-2.4.0-t1-ac8/include/linux/swap.h.orig Wed May 31 21:00:06 2000
+++ linux-2.4.0-t1-ac8/include/linux/swap.h Sun Jun 4 16:22:31 2000
@@ -179,6 +179,7 @@
list_add(&(page)->lru, &lru_cache); \
nr_lru_pages++; \
page->age = PG_AGE_START; \
+ ClearPageReferenced(page); \
SetPageActive(page); \
spin_unlock(&pagemap_lru_lock); \
} while (0)
--
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 parent reply other threads:[~2000-06-05 16:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <14651.49518.825666.298019@rhino.thrillseeker.net>
2000-06-05 16:03 ` Rik van Riel [this message]
2000-06-05 20:21 ` John Fremlin
2000-06-06 2:22 ` Billy Harvey
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.21.0006051258370.31069-100000@duckman.distro.conectiva \
--to=riel@conectiva.com.br \
--cc=Billy.Harvey@thrillseeker.net \
--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