Re: cat /proc/net/tcp takes 0.5 seconds on x86_64
From: Andi Kleen <hidden>
Date: 2008-08-28 07:23:48
From: Andi Kleen <hidden>
Date: 2008-08-28 07:23:48
You are right. For TCP hash table thats probably hard to implement.
The alternative would be to use some kind of cache optimized tree. While they have in theory more steps if you assume that the upper levels of the tree are very small and usually are cached these steps could be very cheap. -Andi -- ak@linux.intel.com