On Fri, Apr 4, 2008 at 1:28 AM, Balbir Singh <balbir@linux.vnet.ibm.com> wrote:Right, I realise that the memory controller is OK because of the ref counts. That sounds like a nightmare ... Can you test the overhead? As long as we find someone to pass the mm to quickly, it shouldn't be too bad - I think we're already optimized for that case. Generally the group leader's first child will be the new owner, and any subsequent times the owner exits, they're unlikely to have any children so they'll go straight to the sibling check and pass the mm to the parent's first child. Unless they all exit in strict sibling order and hence pass the mm along the chain one by one, we should be fine. And if that exit ordering does turn out to be common, then simply walking the child and sibling lists in reverse order to find a victim will minimize the amount of passing. One other thing occurred to me - what lock protects the child and sibling links? I don't see any documentation anywhere, but from the code it looks as though it's tasklist_lock rather than RCU - so maybe we should be holding that with a read_lock(), at least for the first two parts of the search? (The full thread search is RCU-safe). Paul --
| Ryan Hope | reiser4 for 2.6.27-rc1 |
| Ingo Molnar | Re: 2.6.24-rc6-mm1 |
| Tejun Heo | [PATCHSET] CUSE: implement CUSE |
| Peter Zijlstra | Re: 2.6.24-rc8-mm1 (BUG: sched_rt) |
git: | |
| Shawn O. Pearce | Re: [PATCH/POLL] git-format-patch: the default suffix is now .patch, not .txt |
| Jakub Narebski | Re: What's cooking in git.git (topics) |
| Junio C Hamano | Maintaining "needswork" section of "What's (not) cooking" |
| Matthias Lederhofer | [PATCH] prune-packed: new option --min-age=N |
| Theo de Raadt | That whole "Linux stealing our code" thing |
| Karthik Kumar | Re: Real men don't attack straw men |
| Khalid Schofield | Configuring sendmail openbsd 4.2 |
| Ray Percival | Re: Real men don't attack straw men |
| RW | Re: forcefsck on booting stage |
| Vladimir Terziev | Video memory as swap under FreeBSD |
| Ivan Voras | Progress for 7.0 - the "what's cooking" page |
| Pietro Cerutti | Re: [patch] enhance powerd(8) to handle max temperature |
