Messages in this thread |  | | Date | Thu, 23 Nov 2000 21:02:07 +0200 | From | Matti Aarnio <> | Subject | Re: alloc_tty_struct() question. |
| |
On Thu, Nov 23, 2000 at 06:54:48PM +0000, Tigran Aivazian wrote: > Hi, > > The sizeof(struct tty_struct) = 3084. Why don't we have a private slab > cache for it instead of getting a page and wasting some precious bytes at > the end? Potentially, we can have thousands of tty_struct allocated > (assuming we have thousands of concurrent users)...
Potentially thousands, in practice some 10-30. Wastage will be worse with 8k pages, of course.
> regards, > Tigran - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |