And what? It makes allocation longer lived. Our MM should survive that just fine. -- Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt, details at http://atrey.karlin.mff.cuni.cz/
It's better for the MM if you relocate regularly. This way it can recover from fragmentation. A zone allocator like slab can only help against fragmentation when all the objects have roughtly similar
I already tried this with the AceNIC GigE driver some time ago, and after Ingo came up with a per-CPU slab patch the gain was gone. I am not sure the complexity is worth it. Jes
You may want to look at how I did this in the acenic driver. If the water mark goes below a certain level I schedule the tasklet, if it gets below an urgent watermark I do the allocation in the inte