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

From: Eric Dumazet
Date: Fri Jun 01 2012 - 08:48:16 EST


On Fri, 2012-06-01 at 13:24 +0100, Steven Whitehouse wrote:

> Yes, you are right that it will be slow, still. But I'm not sure what we
> can do about that. We have to find our place again on each read call, in
> any case I think.

You dont really answer my question, I asked the exact timing...

I can't reproduce this slow behavior you have, using /proc/net seq
files.

Isn't it a problem with this particular file ?

Does it want to output a single record ( m->op->show(m, p) ) much larger
than 4KB ?



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