linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 0/2 swap token tuning
@ 2005-06-26 22:34 Rik Van Riel
  2005-06-26 22:34 ` [PATCH] 1/2 " Rik Van Riel
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Rik Van Riel @ 2005-06-26 22:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-mm, Song Jiang

A while ago the swap token (aka token based thrashing control)
mechanism was introduced into Linux.  This code improves performance
under heavy VM loads, but can reduce performance under very light
VM loads.

The cause turns out to be me overlooking something in the original
token based thrashing control paper: the swap token is only supposed
to be enforced while the task holding the swap token is paging data
in, not while the task is running (and referencing its working set).

The temporary solution in Linux was to disable the swap token code
and have users turn it on again via /proc.  The following patch
instead approximates the "only enforce the swap token if the task
holding it is swapping something in" idea.  This should make sure
the swap token is effectively disabled when the VM load is low.

I have not benchmarked these patches yet; instead, I'm posting
them before the weekend is over, hoping to catch a bit of test
time from others while my own tests are being run ;)

-- 
The Theory of Escalating Commitment: "The cost of continuing mistakes is
borne by others, while the cost of admitting mistakes is borne by yourself."
  -- Joseph Stiglitz, Nobel Laureate in Economics
--
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>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-06-28  0:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-26 22:34 [PATCH] 0/2 swap token tuning 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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox