LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* mmap and swap
@ 2007-03-22 1:39 Phy Prabab
0 siblings, 0 replies; only message in thread
From: Phy Prabab @ 2007-03-22 1:39 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-22 1:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-22 1:39 mmap and swap Phy Prabab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).