From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Con Kolivas <kernel@kolivas.org>,
linux kernel mailing list <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH] Autoregulate vm swappiness 2.6.0-test8
Date: Thu, 23 Oct 2003 07:42:34 -0700 [thread overview]
Message-ID: <8720000.1066920153@[10.10.2.4]> (raw)
In-Reply-To: <200310232337.50538.kernel@kolivas.org>
> + * Autoregulate vm_swappiness to be application pages % -ck.
> + */
> + si_meminfo(&i);
> + si_swapinfo(&i);
> + pg_size = get_page_cache_size() - i.bufferram ;
> + vm_swappiness = 100 - (((i.freeram + i.bufferram +
> + (pg_size - swapper_space.nrpages)) * 100) /
> + (i.totalram ? i.totalram : 1));
> +
> + /*
It seems that you don't need si_swapinfo here, do you? i.freeram,
i.bufferram, and i.totalram all come from meminfo, as far as I can
see? Maybe I'm missing a bit ...
M.
next prev parent reply other threads:[~2003-10-23 14:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-23 13:37 Con Kolivas
2003-10-23 14:42 ` Martin J. Bligh [this message]
2003-10-23 15:03 ` Con Kolivas
2003-10-25 6:58 ` [PATCH] Autoregulate vm swappiness cleanup Con Kolivas
2003-10-26 11:22 ` Nick Piggin
2003-10-26 10:36 ` Con Kolivas
2003-10-26 11:42 ` Nick Piggin
2003-10-28 11:04 ` Pavel Machek
2003-10-28 12:40 ` Con Kolivas
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='8720000.1066920153@[10.10.2.4]' \
--to=mbligh@aracnet.com \
--cc=akpm@osdl.org \
--cc=kernel@kolivas.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®