From: Christoph Lameter <cl@linux.com>
To: Shawn Joo <sjoo@nvidia.com>
Cc: "penberg@kernel.org" <penberg@kernel.org>,
"mpm@selenic.com" <mpm@selenic.com>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
Michal Hocko <mhocko@suse.cz>
Subject: Re: [question] how to increase the number of object on cache?
Date: Thu, 2 Aug 2012 08:54:23 -0500 (CDT) [thread overview]
Message-ID: <alpine.DEB.2.00.1208020852010.23049@router.home> (raw)
In-Reply-To: <5F2C6DA655B36C43B21C7FB179CEC9F4E3F157BDEE@HKMAIL02.nvidia.com>
On Thu, 2 Aug 2012, Shawn Joo wrote:
> 1. How to allocate/increase the number of object on "size-65536"?
I would suggest to use the page allocator directly for large allocations
like this. The slab allocators specialize in cutting 4k pages up in
smaller units and serving those units effectively.
> 2. Where is the new allocated memory from? (from buddy?)
Ultimately yes but the slab allocators may have their own caching layer on
top given the slow as molasses page allocator. The caching effect is
excellent for small objects but not for large objects such as yours.
--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2012-08-02 13:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-02 12:20 [question] how to increase the number of object on cache? Shawn Joo
2012-08-02 12:50 ` Glauber Costa
2012-08-02 12:55 ` Shawn Joo
2012-08-02 13:02 ` Glauber Costa
2012-08-02 13:50 ` Michal Hocko
2012-08-02 13:54 ` Christoph Lameter [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=alpine.DEB.2.00.1208020852010.23049@router.home \
--to=cl@linux.com \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.cz \
--cc=mpm@selenic.com \
--cc=penberg@kernel.org \
--cc=sjoo@nvidia.com \
/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;
as well as URLs for NNTP newsgroup(s).