All the talk about how what is using memory, whether things are in Java or native, etc., is missing the point. I'm not sure I'm making my point, so I'll try again: regardless of memory size, mlock, etc., the interaction between client and /dev/mem_notify can be unstable, and is unstable in my case: - User-space code page faults in MAP_ANONYMOUS regions until there is no free memory. - The kernel gives a notification. - There kernel frees some cache to satisfy the memory request. - The user-space code gets the notification and frees anonymous pages. Concurrently with this, some thread(s) in the system may continue to page fault. - The cycle repeats. - This works well, perhaps hundreds or thousands of cycles, until all or most of the cache has been freed and we get an oom handling a page fault. My requirement is to have a stable system, with memory allocated on demand to whatever process(es) want it (jvm, web browser, ...) until a low memory notification occurs, which causes them to free whatever memory they no longer need, then continue, without arbitrary static limits on Java heap size, web browser cache size, etc. My workaround to make things stable is to put pages in the cache (after releasing anonymous pages and increasing free memory) by accessing pages in _text, but that seems silly and expensive. .tom On Sat, May 3, 2008 at 5:26 AM, KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote:--
| Manu Abraham | PCIE |
| Jared Hulbert | [PATCH 00/10] AXFS: Advanced XIP filesystem |
| Pardo | Re: pthread_create() slow for many threads; also time to revisit 64b context switc... |
| Tomasz Chmielewski | Re: [PATCH] Intel IXP4xx network drivers v.2 - Ethernet and HSS |
git: | |
| Jeff Garzik | Re: Using GIT to store /etc (Or: How to make GIT store all file permission bits) |
| Andy Parkins | Re: git-fetch and unannotated tags |
| Theodore Tso | Re: git on MacOSX and files with decomposed utf-8 file names |
| Alex Riesen | [PATCH] Allow git-diff exit with codes similar to diff(1) |
| Bertram Scharpf | First install: Grub doesn't find partitions |
| Nick Guenther | Re: Real men don't attack straw men |
| Unix Fan | Chatting with developers? Is it soo 1996? |
| Steve B | Re: ipsec vpn? |
| Vegard Nossum | Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison overwritten |
| Jarek Poplawski | Re: NMI lockup, 2.6.26 release |
| Tomas Winkler | [PATCH] iwlwifi: RS small compile warnings without CONFIG_IWLWIFI_DEBUG |
| Simon Horman | Re: [PATCH] sendfile() and UDP socket |
