Hello Trond, > I actually thought about creating a slabs maintenance thread a while > back. It could inspect the items in the different slabs without > locking them, and if it finds an expired item it would then lock the > cache and re-evaluate and possibly free the item.
sounds good. > This code could also move items between different slab pages, and > do slab reassignment. The problem is that this isn't free: > 1) CPU It will of course consume CPU to traverse the cache pool and > inspect all the items > 2) Destroy different caches on the CPU. This sweep over the cache will > basically flush other caches on the CPU so it would be generally fair, to start this thread only with a special cmdline switch or as I suggested manually from the client over a protocol. so the costs would only hit those who need that feature. > Guess I could write a patch to do this to see how works.. What else > should I use my vacation for ;-) hm... sounds like you don't have family with small childs. They would tell me something different if I'd suggest using MY vacation for it :) regards Werner.
