Why did you change to rhashtable? That seems very strange, since we explicitly want to limit the number of entries, but rhashtable will grow/shrink as required. I think I liked my approach better since it allowed us to clearly limit the memory consumption for this. johannes