From: Jonathan Morton <chromi@cyberspace.org>
To: Rik van Riel <riel@conectiva.com.br>, linux-mm@kvack.org
Subject: Some VM tweaks (against 2.4.5)
Date: Sun, 3 Jun 2001 03:06:22 +0100 [thread overview]
Message-ID: <l03130301b73f486b8acb@[192.168.239.105]> (raw)
I've made a collection of small tweaks to the 2.4.5 VM which "work for me",
and hopefully are largely applicable to other workloads as well.
http://www.chromatix.uklinux.net/linux-patches/vm-update-1.patch
Summary (roughly in order as found in the patchfile):
- Increased PAGE_AGE_MAX and PAGE_AGE_START to help newly-created and
frequently-accessed pages remain in physical RAM.
- Includes my tweak to vm_enough_memory(), to limit memory reservation
under low-memory conditions (this isn't quite working as expected, but
seems to be harmless).
- Fixes out_of_memory() to use the same (and more correct) criteria as
vm_enough_memory(). Does NOT include my revised OOM-killer algorithm,
although it is probably sorely needed.
- Changed age_page_down() and family to use a decrement instead of divide
(gives frequently-accessed pages a longer lease of life).
- In try_to_swap_out(), take page->age into account and age it down rather
than swapping it out immediately.
- In swap_out_mm(), don't allow large processes to force out processes
which have smaller RSS than them. kswapd can still cause any process to be
paged out. This replaces my earlier "enforce minimum RSS" hack.
- Bump up the page->age to PAGE_AGE_START when moving a page to the active
list in page_launder().
- Includes Zlatko Calusic's patch from earlier today, since I can't see
anything immediately wrong about it.
Please go ahead and test, and (constructively) criticise.
--------------------------------------------------------------
from: Jonathan "Chromatix" Morton
mail: chromi@cyberspace.org (not for attachments)
big-mail: chromatix@penguinpowered.com
uni-mail: j.d.morton@lancaster.ac.uk
The key to knowledge is not to rely on people to teach you it.
Get VNC Server for Macintosh from http://www.chromatix.uklinux.net/vnc/
-----BEGIN GEEK CODE BLOCK-----
Version 3.12
GCS$/E/S dpu(!) s:- a20 C+++ UL++ P L+++ E W+ N- o? K? w--- O-- M++$ V? PS
PE- Y+ PGP++ t- 5- X- R !tv b++ DI+++ D G e+ h+ r++ y+(*)
-----END GEEK CODE BLOCK-----
--
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/
next reply other threads:[~2001-06-03 2:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-03 2:06 Jonathan Morton [this message]
2001-06-04 10:45 ` Stephen C. Tweedie
2001-06-04 21:54 ` Jonathan Morton
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='l03130301b73f486b8acb@[192.168.239.105]' \
--to=chromi@cyberspace.org \
--cc=linux-mm@kvack.org \
--cc=riel@conectiva.com.br \
/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