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
| Parag Warudkar | BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0] |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 010/196] Chinese: add translation of Codingstyle |
| Andrew Morton | -mm merge plans for 2.6.23 |
git: | |
| Gerrit Renker | [PATCH 24/37] dccp: Processing Confirm options |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Alexey Dobriyan | Re: [GIT]: Networking |
| david | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
