From: Andi Kleen <ak@suse.de>
To: Tigran Aivazian <tigran@aivazian.fsnet.co.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: alloc_tty_struct() question.
Date: Thu, 23 Nov 2000 20:54:54 +0100 [thread overview]
Message-ID: <20001123205454.A26886@gruyere.muc.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.21.0011231852590.2128-100000@penguin.homenet>
In-Reply-To: <Pine.LNX.4.21.0011231852590.2128-100000@penguin.homenet>; from tigran@aivazian.fsnet.co.uk on Thu, Nov 23, 2000 at 06:54:48PM +0000
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)...
A slab cache could only save significant memory if it allocated in
order 2 slabs (order 1 would waste exactly the same memory because
you only had a ~2K gap) Order 2 is nasty and unreliable.
-Andi
-
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/
prev parent reply other threads:[~2000-11-23 20:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-23 18:54 Tigran Aivazian
2000-11-23 19:02 ` Matti Aarnio
2000-11-23 19:54 ` Andi Kleen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20001123205454.A26886@gruyere.muc.suse.de \
--to=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=tigran@aivazian.fsnet.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®