All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Phillips <phillips@bonn-fries.net>
To: "Alan Cox" <alan@lxorguk.ukuu.org.uk>,
	Dieter.Nuetzel@hamburg.de (Dieter Nützel)
Cc: linux-kernel@vger.kernel.org (Linux Kernel List),
	reiserfs-list@namesys.com (ReiserFS List),
	mason@suse.com (Chris Mason),
	NikitaDanilov@Yahoo.COM (Nikita Danilov),
	phillips@bonn-fries.net (Daniel Phillips),
	tmv5@home.com (Tom Vier)
Subject: Re: 2.4.7-ac4 disk thrashing
Date: Wed, 8 Aug 2001 17:41:14 +0200	[thread overview]
Message-ID: <01080817411402.00351@starship> (raw)
In-Reply-To: <E15UR2B-00051d-00@the-village.bc.nu>
In-Reply-To: <E15UR2B-00051d-00@the-village.bc.nu>

On Wednesday 08 August 2001 12:57, Alan Cox wrote:
> > Could it be that the ReiserFS cleanups in ac4 do harm?
> > http://marc.theaimsgroup.com/?l=3Dreiserfs&m=3D99683332027428&w=3D2
>
> I suspect the use once patch is the more relevant one.

Two things to check:

  - Linus found a bug in balance_dirty_state yesterday.  Is the
    fix applied?

  - The original use-once patch tends to leave a referenced pages
    on the inactive_dirty queue longer, not in itself a problem,
    but can expose other problems.  The previously posted patch
    below fixes that, is it applied?

To apply (with use-once already applied):

  cd /usr/src/your.2.4.7.source.tree
  patch -p0 <this.patch

--- ../2.4.7.clean/mm/filemap.c	Sat Aug  4 14:27:16 2001
+++ ./mm/filemap.c	Sat Aug  4 23:41:00 2001
@@ -979,9 +979,13 @@
 
 static inline void check_used_once (struct page *page)
 {
-	if (!page->age) {
-		page->age = PAGE_AGE_START;
-		ClearPageReferenced(page);
+	if (!PageActive(page)) {
+		if (page->age)
+			activate_page(page);
+		else {
+			page->age = PAGE_AGE_START;
+			ClearPageReferenced(page);
+		}
 	}
 }
 

  reply	other threads:[~2001-08-08 15:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-08  6:38 2.4.7-ac4 disk thrashing Dieter Nützel
2001-08-08 10:57 ` Alan Cox
2001-08-08 15:41   ` Daniel Phillips [this message]
2001-08-08 16:03     ` Dieter Nützel
2001-08-13  6:24     ` 2.4.7-ac4 disk thrashing (SOLVED?) Dieter Nützel
  -- strict thread matches above, loose matches on Subject: below --
2001-08-04 15:38 2.4.7-ac4 disk thrashing Tom Vier
2001-08-04 23:04 ` Matthew Gardiner
2001-08-05  0:55   ` Tom Vier

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=01080817411402.00351@starship \
    --to=phillips@bonn-fries.net \
    --cc=Dieter.Nuetzel@hamburg.de \
    --cc=NikitaDanilov@Yahoo.COM \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mason@suse.com \
    --cc=reiserfs-list@namesys.com \
    --cc=tmv5@home.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.