From: Martin Schlemmer <azarah@nosferatu.za.org>
To: Rik Van Riel <riel@redhat.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Song Jiang <sjiang@lanl.gov>
Subject: Re: [PATCH] 2/2 swap token tuning
Date: Mon, 27 Jun 2005 15:04:25 +0200 [thread overview]
Message-ID: <1119877465.25717.4.camel@lycan.lan> (raw)
In-Reply-To: <Pine.LNX.4.61.0506261835000.18834@chimarrao.boston.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1364 bytes --]
On Sun, 2005-06-26 at 18:35 -0400, Rik Van Riel wrote:
<snip>
> This patch should have the effect of automatically, and gradually,
> disabling the enforcement of the swap token when there is little
> or no paging going on, and "turning up" the intensity of the swap
> token code the more the task holding the token is thrashing.
>
> Thanks to Song Jiang for pointing out this aspect of the token
> based thrashing control concept.
>
> Signed-off-by: Rik van Riel
>
<snip>
I might be missing something here, but shouldn't this rather be:
> --- 2.6.12-swaptoken/mm/rmap.c.orig 2005-06-26 17:16:50.000000000 -0400
> +++ 2.6.12-swaptoken/mm/rmap.c 2005-06-26 17:13:17.000000000 -0400
> @@ -301,7 +301,11 @@ static int page_referenced_one(struct pa
> if (ptep_clear_flush_young(vma, address, pte))
> referenced++;
>
> - if (mm != current->mm && !ignore_token && has_swap_token(mm))
> + /* Pretend the page is referenced if the task has the
> + swap token and is in the middle of a page fault. */
> + if (mm != current->mm && !ignore_token &&
> + has_swap_token(mm) &&
-+ sem_is_read_locked(mm->mmap_sem))
+ sem_is_read_locked(&mm->mmap_sem))
As mm is a pointer, but mm->mmap_sem is not a pointer? This is with
2.6.12-mm2 though ...
Thanks,
--
Martin Schlemmer
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-06-27 13:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-26 22:34 [PATCH] 0/2 " Rik Van Riel
2005-06-26 22:34 ` [PATCH] 1/2 " Rik Van Riel
2005-06-26 22:35 ` [PATCH] 2/2 " Rik Van Riel
2005-06-27 13:04 ` Martin Schlemmer [this message]
2005-06-27 13:08 ` Rik Van Riel
2005-06-27 13:47 ` Martin Schlemmer
2005-06-27 23:46 ` [PATCH] 0/2 " Ed Tomlinson
2005-06-27 23:59 ` Rik Van Riel
2005-06-28 0:04 ` Rik Van Riel
2005-06-28 0:06 ` Rik Van Riel
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=1119877465.25717.4.camel@lycan.lan \
--to=azarah@nosferatu.za.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=riel@redhat.com \
--cc=sjiang@lanl.gov \
/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