From: "Phy Prabab" <phyprabab@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: mmap and swap
Date: Wed, 21 Mar 2007 18:39:40 -0700 [thread overview]
Message-ID: <2fe399760703211839v4426599asf648bf5cb7d58f82@mail.gmail.com> (raw)
Hello,
I have a mysterious issue with swapping. I have a 32b machine running
2.4.21.x (RHEE30) w/4G RAM and 8G swap. If I run one application and
pause it after having allocated 2.5G and then run another application
(or just another instance of the same app) and try to allocate another
2.5G I would have imagined that the first would be swapped out. But
this is not the case, rather, only part of the first application is
swapped before allocation for the second application fails trying to
allocate more space. What is even more interesting is that the first
application seems to only swap out memory allocated via sbrk. So
within this application I allocate memory via sbrk until failure
(~890M) and then switch to mmap. The glibc version is 2.3.2 and I am
mmaping memory via private|anonymous, so am I doing something
incorrect or is that mmap can not be swapped out?
TIA,
Phy
reply other threads:[~2007-03-22 1:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=2fe399760703211839v4426599asf648bf5cb7d58f82@mail.gmail.com \
--to=phyprabab@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
all inboxes | Powered by JetHome®