lkml.org 
[lkml]   [2000]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch] Polling on more than 16000 file descriptors
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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:1.010 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site