linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Nikita Danilov <Nikita@Clusterfs.COM>
To: Rik van Riel <riel@redhat.com>
Cc: linux-mm@kvack.org, sjiang@cs.wm.edu
Subject: Re: [PATCH] token based thrashing control
Date: Sat, 31 Jul 2004 15:34:51 +0400	[thread overview]
Message-ID: <16651.33755.359441.675409@laputa.namesys.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0407301730440.9228@dhcp030.home.surriel.com>

Rik van Riel writes:
 > 	
 > The following experimental patch implements token based thrashing
 > protection, using the algorithm described in:
 > 
 > 	http://www.cs.wm.edu/~sjiang/token.htm
 > 
 > When there are pageins going on, a task can grab a token, that
 > protects the task from pageout (except by itself) until it is
 > no longer doing heavy pageins, or until the maximum hold time
 > of the token is over.
 > 
 > If the maximum hold time is exceeded, the task isn't eligable
 > to hold the token for a while more, since it wasn't doing it
 > much good anyway.

[...]

 > --- linux-2.6.7/mm/filemap.c.token	2004-07-30 13:22:28.000000000 -0400
 > +++ linux-2.6.7/mm/filemap.c	2004-07-30 13:22:29.000000000 -0400
 > @@ -1195,6 +1195,7 @@
 >  	 * effect.
 >  	 */
 >  	error = page_cache_read(file, pgoff);
 > +	grab_swap_token();

Token functions are declared to be no-ops if !CONFIG_SWAP, but here
token is used for file-system backed page-fault.

 >  

Nikita.
--
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-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

  reply	other threads:[~2004-07-31 11:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-30 21:37 Rik van Riel
2004-07-31 11:34 ` Nikita Danilov [this message]
2004-07-31 11:43   ` Rik van Riel
2004-08-01 11:05 ` Andrew Morton
2004-08-01 11:13   ` Arjan van de Ven
2004-08-01 21:52   ` Rik van Riel
2004-08-01 13:02 ` Rik van Riel
2004-08-02  0:56   ` Andrew Morton
2004-08-02  1:36     ` Rik van Riel
2004-08-02  2:52     ` Con Kolivas
2004-08-02  3:33       ` Rik van Riel
2004-08-02  5:13         ` Con Kolivas
2004-08-02  5:18           ` Con Kolivas
2004-08-03  0:34             ` Song Jiang
2004-08-03  1:20               ` Rik van Riel
2004-08-04  4:51                 ` Song Jiang
2004-08-04 11:30                   ` 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=16651.33755.359441.675409@laputa.namesys.com \
    --to=nikita@clusterfs.com \
    --cc=linux-mm@kvack.org \
    --cc=riel@redhat.com \
    --cc=sjiang@cs.wm.edu \
    /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