Re: seq_file: Use larger buffer to reduce time traversing lists

From: Eric Dumazet
Date: Fri Jun 01 2012 - 10:57:13 EST


On Fri, 2012-06-01 at 15:18 +0100, Steven Whitehouse wrote:
> 0m0.374s
>
> So even with the current tcp scheme this appears to speed things up by
> nearly 3x. Also that was with only 28000 entries in the file,

Initial speedup was 100x, not 3x.

Of course using a 32KB buffer instead of 4KB will help.

And If someones need 100.000 active unix sockets and fast /proc/net/udp
file as well, patch is welcome. If I have time I can do it eventually.

Really, kmalloc(2 MB) is not going to happen, even using __GFP_NOWARN



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/