Andi Kleen <andi@firstfloor.org> wrote:Well, we had thought it was already able to throttle itself, as we did put code in to respond to mmap() and malloc() failures by trying to release memory and retrying the failed operation again. However what we don't do is try to limit our heap usage to some limit that is smaller than physical memory. We just assume that whatever we need is available from the OS. This fails when what we need exceeds physical memory and the OS tries to use swap. We can get better performance by reducing what we mmap instead. :-| Looking at /proc/meminfo only works on Linux, and maybe some other OSes which support a /proc like design. But even then we don't really know how much we are competing with other active processes and how much memory we can use. -- Shawn. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Adrian Bunk | Re: Linux 2.6.21 |
| Linus Torvalds | Linux 2.6.21-rc2 |
| WANG Cong | [-mm Patch] UML: fix a building error |
| Roland McGrath | Re: [PATCH 0/5] ftrace: to kill a daemon |
git: | |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Patrick McHardy | Re: [PATCH] netfilter: use per-cpu spinlock rather than RCU (v3) |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Theodore Ts'o | Re: cc1 fails silently |
| Michael Nolan | Power routines on notebook cause kernel panic |
| Marc Peters | v 0.11 boot disk problem |
| Dave `geek' Gymer | WARNING (was Re: New afio release) |
