Messages in this thread | | | From | "Manfred Spraul" <> | Subject | Re: [PATCH] Polling > 16000 FDs | Date | Sat, 8 Jan 2000 22:36:20 +0100 |
| |
From: "Richard Henderson" <rth@twiddle.net> > Any reason we couldn't vmalloc the in-kernel array when it gets too big? >
vmalloc is sloww, especially on SMP computer because it must unconditionally flush all tlb's on all cpu's. I'd prefer a linked list, each entry up to PAGE_SIZE. Either kmalloc'ed(), or kmalloc + gfp().
And: move the lock_kernel() calls as near a possible to the actual do_poll() calls. You don't need the big kernel lock for the memory allocations or the copy_from_user() calls.
-- Manfred
- 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/
| |