Re: [Patch] Polling on more than 16000 file descriptors

From: Jamie Lokier (lkd@tantalophile.demon.co.uk)
Date: Tue Jan 18 2000 - 11:49:18 EST


Tigran Aivazian wrote:
> But, even better than your idea (dare I say :) is to have chunked
> allocation and using kmalloc() all the time, something like (roughly):
>
> #define POLL_PER_CHUNK 16000
> #define POLL_NCHUNKS 8

If you're going that, you may as well use PAGE_SIZE allocations. And
then you may as well link the pages together using a pointer at the
start, to remove the arbitrary limit.

enjoy,
-- Jamie

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



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:18 EST