From: Jon Florence <jonflo@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Swapping broken on 2.6.9? Limit Page Cache growth?
Date: Sun, 10 Jul 2005 23:42:31 -0700 [thread overview]
Message-ID: <f95c1df1050710234275d52cad@mail.gmail.com> (raw)
Hi,
I have got a box running 2.6.9-1.667smp (FC3) with 1GB of Physical
memory & 1GB of swap. I run 2 test programs on the box. The first one
mmaps 800M of memory and mlocks it. The second one tries to allocate
500M of memory in 100K chunks and frees it in the end. However, when
the 2nd program runs, my free swap memory as reported by "top" drops
to zero and OOM kicks in killing my first program. This appears to be
incorrect as I had expected the 2nd program to start swapping. If I
run the same 2 programs on similar hardware but with 2.4.20, I have no
problems. The 2nd program swaps as expected. Can anyone plz suggest
what I can do to remedy the situation or is this a known bug?
Also I seem to be having another problem with the page cache. I am
running Samba on a server with similar hardware as above (FC3). As
soon as I get large reads and/or writes, the page cache grows really
huge, causing OOM to kick in again. Is there is a way to limit page
cache growth or force VM to reclaim memory from page cache? I did find
an old patch which seems like it would work but didnt see much follow
up.
http://linux.derkeiler.com/Mailing-Lists/Kernel/2003-08/5747.html
Thanks in advance for any help!
Jon
next reply other threads:[~2005-07-11 6:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-11 6:42 Jon Florence [this message]
2005-07-11 14:26 ` Swapping broken on 2.6.9? Limit Page Cache growth? Douglas McNaught
2005-07-11 16:43 ` Jon Florence
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=f95c1df1050710234275d52cad@mail.gmail.com \
--to=jonflo@gmail.com \
--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