Odd. I keep arguing against the solution I prefer. On Tue, 11 September 2007 21:20:52 +0200, Andrea Arcangeli wrote:Slab defrag doesn't look like a solved problem. Basically, slab allocator was designed to group similar objects together. Main reason in this context is that similar objects have similar lifetimes. And it is true that one dentry's lifetime is more likely to match another one's that, say, a struct bio's. But different dentries still have vastly different lifetimes. And with that, fragmentation will continue to occur. So the problem is not solved. It is a hell of a lot better than pre-slab days, just not perfect. Things get somewhat worse with multiple attack vectors (whether malicious or accidental). Spending 20% of ram on each of {kernel stacks, dentries, inodes, mlocked pages, size-XXX} would be sufficient. The system can spend 20% on kernel stacks with 80% free, then spend 20% on dentries with 60% free and 20% wasted in almost-free kernel stack slabs, etc. To argue in favor, for a change, the exact same scenario would be possible with Christoph's solution as well. It would even be more likely. Where in your case 20% of all memory has to go to each slab cache at one time, only one page per largepage of that would be necessary in Christophs case. The rest could be allocated for other purposes. So overall I prefer your approach, for whatever my two cents of armchair oppinion are worth. Jörn -- I've never met a human being who would want to read 17,000 pages of documentation, and if there was, I'd kill him to get him out of the gene pool. -- Joseph Costello -
| David Miller | Re: [GIT]: Networking |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Roland Dreier | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Paul E. McKenney | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
