From: "Stephen C. Tweedie" <sct@redhat.com>
To: David Chow <davidchow@shaolinmicro.com>
Cc: linux-mm@kvack.org
Subject: Re: slab cache
Date: Mon, 10 Jun 2002 09:57:50 +0100 [thread overview]
Message-ID: <20020610095750.B2571@redhat.com> (raw)
In-Reply-To: <3D036BBE.4030603@shaolinmicro.com>; from davidchow@shaolinmicro.com on Sun, Jun 09, 2002 at 10:52:46PM +0800
Hi,
On Sun, Jun 09, 2002 at 10:52:46PM +0800, David Chow wrote:
> I am trying to improve the speed of my fs code. I have a fixed sized
> buffer for my fs, I currently use kmalloc for allocation of buffers
> greater than 4k, use get_free_page for 4k buffers and vmalloc for large
> buffers.
Allocations larger than pagesize always put a higher stress on the VM
and reduce performance. Your best bet for top performance will be
simply to perform no allocations larger than pagesize. You can use a
slab cache for those allocations if you want, and that may have some
advantages depending on the locality of allocations in your code.
Using 4k buffers does not limit your ability to use larger data
structures --- you can still chain 4k buffers together by creating an
array of struct page* pointers via which you can access the data.
--Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
next prev parent reply other threads:[~2002-06-10 8:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-09 14:52 David Chow
2002-06-10 8:57 ` Stephen C. Tweedie [this message]
2002-06-12 15:05 ` David Chow
2002-06-12 15:29 ` Stephen C. Tweedie
2002-06-13 16:34 ` David Chow
2002-06-13 16:45 ` Stephen C. Tweedie
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=20020610095750.B2571@redhat.com \
--to=sct@redhat.com \
--cc=davidchow@shaolinmicro.com \
--cc=linux-mm@kvack.org \
/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