From: Andrew Morton <akpm@linux-foundation.org>
To: Rohit Kumar <rohit.kr@samsung.com>
Cc: casey@schaufler-ca.com, james.l.morris@oracle.com,
serge@hallyn.com, linux-security-module@vger.kernel.org,
linux-kernel@vger.kernel.org, cpgs@samsung.com,
pintu.k@samsung.com, vishnu.ps@samsung.com,
iqbal.ams@samsung.com, ed.savinay@samsung.com
Subject: Re: [PATCH 1/1] Security : smack : Use kmem_cache for allocation and freeing of inode_smack
Date: Tue, 14 Oct 2014 22:43:38 -0700 [thread overview]
Message-ID: <20141014224338.f58a66e5.akpm@linux-foundation.org> (raw)
In-Reply-To: <1413352576-30356-1-git-send-email-rohit.kr@samsung.com>
On Wed, 15 Oct 2014 11:26:16 +0530 Rohit Kumar <rohit.kr@samsung.com> wrote:
> From: Rohit <rohit.kr@samsung.com>
>
> Use kmem_cache to allocate/free inode_smack since they are
> alloced in high volumes making it a perfect case for kmem_cache.
>
> Accounting of memory allocation is below :
> total slack net count-alloc/free caller
> Before (with kzalloc)
> 1919872 719952 1919872 29998/0 new_inode_smack+0x14
> After (with kmem_cache)
> 1201680 0 1201680 30042/0 new_inode_smack+0x18
>
> ...
>
> --- a/security/smack/smack_lsm.c
> +++ b/security/smack/smack_lsm.c
> @@ -53,6 +53,7 @@
> #define SMK_SENDING 2
>
> LIST_HEAD(smk_ipv6_port_list);
> +struct kmem_cache *smack_inode_cache;
static.
prev parent reply other threads:[~2014-10-15 5:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-15 5:56 Rohit Kumar
2014-10-15 5:43 ` Andrew Morton [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=20141014224338.f58a66e5.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=casey@schaufler-ca.com \
--cc=cpgs@samsung.com \
--cc=ed.savinay@samsung.com \
--cc=iqbal.ams@samsung.com \
--cc=james.l.morris@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=pintu.k@samsung.com \
--cc=rohit.kr@samsung.com \
--cc=serge@hallyn.com \
--cc=vishnu.ps@samsung.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
Powered by JetHome