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 | Slow DOWN, please!!! |
| H. Peter Anvin | Re: [Ksummit-2008-discuss] Fixing the Kernel Janitors project |
| Pardo | Re: pthread_create() slow for many threads; also time to revisit 64b context switc... |
| Roland Dreier | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Ken Pratt | pack operation is thrashing my server |
| Junio C Hamano | Re: [RFC] origin link for cherry-pick and revert |
| Len Brown | fatal: unable to create '.git/index': File exists |
| Petr Baudis | [RFC][PATCH 0/7] Submodule support in git mv, git rm |
| Karel Kulhavy | OpenBSD kernel janitors |
| rezidue | Speed Problems |
| Richard Stallman | Real men don't attack straw men |
| Alex Thurlow | Router performance on OpenBSD and OpenBGPD |
| David Miller | [GIT]: Networking |
| David Miller | Re: kernel oops when system under network stress |
| Laszlo Attila Toth | [PATCH] Introducing socket mark socket option |
| Evgeniy Polyakov | [resend take 2 0/4] Distributed storage. |
