* VM: page reclaim does not work on ARM9? [resend]
@ 2008-08-28 8:01 ` Wappler Marcel
2008-08-30 0:49 ` KOSAKI Motohiro
0 siblings, 1 reply; 2+ messages in thread
From: Wappler Marcel @ 2008-08-28 8:01 UTC (permalink / raw)
To: linux-kernel
I do need some help to understand what's going on in the VM
of the Linux kernel...
I wrote a little script which generates a C app with
millions of lines of dumb linear running code and a endless
loop at the end. I run this app on both PC Linux (swapping
enabled) and embedded Linux (Kernel 2.6.24.7, ARM9, swapping
disabled).
The app shall consume a lot of code pages which are used
only once (to run the linear code in it) and then stay in
the endless loop and never touch all the other pages in
memory. Then I consume all of the remaining memory of the
system through generating a big file on the tmpfs (whose
data resides in memory) with the help of /dev/zero and "dd".
My expectation was: the VM shall steal (reclaim) all the
only once touched pages containing those dumb linear code of
the app.
My observation is: "top" shows that the app is consuming
constantly the same huge amount of residential memory during
the decreasing free memory space. At some moment the kernel
starts a OOM killer on the app instead of reclaiming its
unused code pages.
Keep in mind: the behaviour is the same on both PC Linux (2
GB RAM) and ARM Linux (32MB RAM ) with and without swapping
enabled.
So for me it looks like that any page which is containing
code never gets reclaimed from the application it belongs to
regardless of its usage.
Any idias, whats going on?
best regards, Marcel
PS: Please CC me on reply...
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: VM: page reclaim does not work on ARM9? [resend]
2008-08-28 8:01 ` VM: page reclaim does not work on ARM9? [resend] Wappler Marcel
@ 2008-08-30 0:49 ` KOSAKI Motohiro
0 siblings, 0 replies; 2+ messages in thread
From: KOSAKI Motohiro @ 2008-08-30 0:49 UTC (permalink / raw)
To: Wappler Marcel; +Cc: linux-kernel
> My expectation was: the VM shall steal (reclaim) all the
> only once touched pages containing those dumb linear code of
> the app.
>
> My observation is: "top" shows that the app is consuming
> constantly the same huge amount of residential memory during
> the decreasing free memory space. At some moment the kernel
> starts a OOM killer on the app instead of reclaiming its
> unused code pages.
I guess this isn't code pages.
So, Can you observe /proc/{pid}/smaps file?
it tell you detail of these pages.
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-30 0:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <Ach0m4cSiApNdLdFScC3DSTHVH8H7w==>
2008-08-28 8:01 ` VM: page reclaim does not work on ARM9? [resend] Wappler Marcel
2008-08-30 0:49 ` KOSAKI Motohiro
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®