From: Coywolf Qi Hunt <coywolf@gmail.com>
To: "A.M. Fradley" <u2amf@csc.liv.ac.uk>
Cc: kernelnewbies@nl.linux.org, linux-kernel@vger.kernel.org
Subject: Re: An attempt to improve the swap tokening:
Date: Tue, 10 May 2005 15:52:47 +0800 [thread overview]
Message-ID: <2cd57c90050510005247d84d9d@mail.gmail.com> (raw)
In-Reply-To: <1115607333.427ed12531f96@cgi.server.csc.liv.ac.uk>
On 5/9/05, A.M. Fradley <u2amf@csc.liv.ac.uk> wrote:
> I'd been trying to reduce the amount of page swapping in order to improve the
> kernels behaviour during thrashing as a project for my course. I made this
> after Arjan van de Ven and Rik van Riel suggested I looked into the swap
> tokening mechanism as part of my research. I came up with a function to
> measure the swap rate and then to activate/deactivate the token mechanism
> depending on how much swapping was being done overall. I think the statistics
> I added to the thrash.c file could help it decide how to behave but I'm unsure
> how best to use them to do that.
>
> I've tried testing it a few different ways
> but none of them seem to make any difference. I think this is because of my
> tests though. I made one program that allocates a linked list, until it is
> 128MB long, then once it's done that, it should swap in the oldest page in
> order to free the memory and then swap the newest one back in to edit the
> pointer to the next node then continue for 2 mins. Then to test how much
> progress is made
> during the thrashing, I've been running a simple counter program that stops
> after minute and I've been comparing the max number reached for the different
> attempts I've been making with the kernel. The program for causing thrashing
> at least makes it swap pages because I can watch the memory and swap fill up in
> system monitor. Running the program to cause thrashing seems to work because
> the kernel begins reporting high swap rates when the list reaches the target
> length.
>
> Does anyone know any programs that are designed to test this type of
> thing or any comments on the code that I wrote? I'm still new at this, so I've
> probably misunderstood/left out some things. The updateSwapRate() fuction is
> called at the end of scheduler_tick(). That could probably go somewhere
> better. Also, I wasn't sure if changing the value of
> swap_token_default_timeout was all I needed to do to reactivate the tokening as
> it was disabled in 2.6.11 that I'm working with.
>
Wouldn't it be better shown in patch form?
--
Coywolf Qi Hunt
http://sosdg.org/~coywolf/
prev parent reply other threads:[~2005-05-10 7:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1113667425.426137617423a@cgi.server.csc.liv.ac.uk>
[not found] ` <1113732924.17394.27.camel@laptopd505.fenrus.org>
[not found] ` <1113743431.426260479a513@cgi.server.csc.liv.ac.uk>
[not found] ` <1113744260.17394.44.camel@laptopd505.fenrus.org>
[not found] ` <1113750155.42627a8bd5fda@cgi.server.csc.liv.ac.uk>
[not found] ` <1113751757.17394.57.camel@laptopd505.fenrus.org>
[not found] ` <1113952994.426592e247157@cgi.server.csc.liv.ac.uk>
[not found] ` <Pine.LNX.4.61L.0504202325570.7722@imladris.surriel.com>
[not found] ` <Pine.LNX.4.61L.0504212238330.13021@imladris.surriel.com>
[not found] ` <1114612337.426fa2712d414@cgi.server.csc.liv.ac.uk>
[not found] ` <Pine.LNX.4.61L.0504271322280.13884@imladris.surriel.com>
[not found] ` <1114676760.42709e18b0227@cgi.server.csc.liv.ac.uk>
[not found] ` <Pine.LNX.4.61L.0504281549130.26165@imladris.surriel.com>
[not found] ` <1115052944.42765b90ba515@cgi.server.csc.liv.ac.uk>
[not found] ` <Pine.LNX.4.61L.0505021638110.31547@imladris.surriel.com>
[not found] ` <1115101782.42771a56e4b81@cgi.server.csc.liv.ac.uk>
[not found] ` <Pine.LNX.4.61L.0505031136470.2760@imladris.surriel.com>
[not found] ` <1115216727.4278db57baad5@cgi.server.csc.liv.ac.uk>
2005-05-09 2:55 ` An attempt to improve the swap tokening: A.M. Fradley
2005-05-10 7:52 ` Coywolf Qi Hunt [this message]
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=2cd57c90050510005247d84d9d@mail.gmail.com \
--to=coywolf@gmail.com \
--cc=coywolf@lovecn.org \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=u2amf@csc.liv.ac.uk \
/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