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

From: Eric Dumazet
Date: Fri Jun 01 2012 - 11:49:23 EST


On Fri, 2012-06-01 at 16:28 +0100, Steven Whitehouse wrote:

> I'll certainly have a look at the hash table based approach too.

This is the reasonable approach, because most seq_file users do :

cat /path | ...

FILE *F = fopen("/path", "r");

ie they use small read size (<= 32 KB)

NOWARN can still slow down the whole machine.

You apparently don't have machines with fragmented memory...

hint : __GFP_NORETRY & PAGE_ALLOC_COSTLY_ORDER







--
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/