From: Arun Sharma <asharma@fb.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Balbir Singh <bsingharora@gmail.com>,
akpm@linux-foundation.org
Subject: Re: [PATCH] mm: Enable MAP_UNINITIALIZED for archs with mmu
Date: Tue, 21 Feb 2012 16:34:28 -0800 [thread overview]
Message-ID: <4F443814.6050209@fb.com> (raw)
In-Reply-To: <4F1F5EB8.3000407@fb.com>
On 1/24/12 5:45 PM, Arun Sharma wrote:
> On 1/23/12 7:07 PM, KAMEZAWA Hiroyuki wrote:
>
>> You can see reduction of clear_page() cost by removing GFP_ZERO but
>> what's your application's total performance ? Is it good enough
>> considering
>> many risks ?
>
> I see 90k calls/sec to clear_page_c when running our application. I
> don't have data on the impact of GFP_ZERO alone, but an earlier
> experiment when we tuned malloc to not call madvise(MADV_DONTNEED)
> aggressively saved us 3% CPU. So I'm expecting this to be a 1-2% win.
I saw some additional measurement data today.
We were running at a lower-than-default value for the rate at which our
malloc implementation releases unused faulted-in memory to the kernel
via madvise(). This was done just to reduce the impact of clear_page()
on application performance. But it cost us at least several hundred megs
(if not more) in additional RSS.
We compared the impact of increasing the madvise rate to the default[1].
This used to cause a 3% CPU regression earlier. But with the patch, the
regression was completely gone and we recovered a bunch of memory in
terms of reduced RSS.
Hope this additional data is useful. Happy to clean up the patch and
implement the opt-in flags.
-Arun
[1] The default rate is 32:1, i.e. no more than 1/32th of the heap is
unused and dirty (i.e. contributing to RSS).
--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
WARNING: multiple messages have this Message-ID (diff)
From: Arun Sharma <asharma@fb.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: <linux-kernel@vger.kernel.org>, <linux-mm@kvack.org>,
Balbir Singh <bsingharora@gmail.com>, <akpm@linux-foundation.org>
Subject: Re: [PATCH] mm: Enable MAP_UNINITIALIZED for archs with mmu
Date: Tue, 21 Feb 2012 16:34:28 -0800 [thread overview]
Message-ID: <4F443814.6050209@fb.com> (raw)
In-Reply-To: <4F1F5EB8.3000407@fb.com>
On 1/24/12 5:45 PM, Arun Sharma wrote:
> On 1/23/12 7:07 PM, KAMEZAWA Hiroyuki wrote:
>
>> You can see reduction of clear_page() cost by removing GFP_ZERO but
>> what's your application's total performance ? Is it good enough
>> considering
>> many risks ?
>
> I see 90k calls/sec to clear_page_c when running our application. I
> don't have data on the impact of GFP_ZERO alone, but an earlier
> experiment when we tuned malloc to not call madvise(MADV_DONTNEED)
> aggressively saved us 3% CPU. So I'm expecting this to be a 1-2% win.
I saw some additional measurement data today.
We were running at a lower-than-default value for the rate at which our
malloc implementation releases unused faulted-in memory to the kernel
via madvise(). This was done just to reduce the impact of clear_page()
on application performance. But it cost us at least several hundred megs
(if not more) in additional RSS.
We compared the impact of increasing the madvise rate to the default[1].
This used to cause a 3% CPU regression earlier. But with the patch, the
regression was completely gone and we recovered a bunch of memory in
terms of reduced RSS.
Hope this additional data is useful. Happy to clean up the patch and
implement the opt-in flags.
-Arun
[1] The default rate is 32:1, i.e. no more than 1/32th of the heap is
unused and dirty (i.e. contributing to RSS).
next prev parent reply other threads:[~2012-02-22 0:34 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-18 18:51 [PATCH] mm: Enable MAP_UNINITIALIZED for archs with mmu Arun Sharma
2012-01-18 18:51 ` Arun Sharma
2012-01-19 2:42 ` KAMEZAWA Hiroyuki
2012-01-19 2:42 ` KAMEZAWA Hiroyuki
2012-01-24 0:54 ` Arun Sharma
2012-01-24 0:54 ` Arun Sharma
2012-01-24 3:07 ` KAMEZAWA Hiroyuki
2012-01-24 3:07 ` KAMEZAWA Hiroyuki
2012-01-25 1:45 ` Arun Sharma
2012-01-25 1:45 ` Arun Sharma
2012-02-22 0:34 ` Arun Sharma [this message]
2012-02-22 0:34 ` Arun Sharma
2012-02-23 7:45 ` Balbir Singh
2012-02-23 7:45 ` Balbir Singh
2012-02-23 18:42 ` Arun Sharma
2012-02-23 18:42 ` Arun Sharma
2012-02-24 2:47 ` KAMEZAWA Hiroyuki
2012-02-24 2:47 ` KAMEZAWA Hiroyuki
2012-02-24 14:51 ` Balbir Singh
2012-02-24 14:51 ` Balbir Singh
2012-02-24 19:11 ` Arun Sharma
2012-02-24 19:11 ` Arun Sharma
2012-02-25 4:13 ` Balbir Singh
2012-02-25 4:13 ` Balbir Singh
2012-02-27 18:32 ` Arun Sharma
2012-02-27 18:32 ` Arun Sharma
2012-02-24 19:26 ` Arun Sharma
2012-02-24 19:26 ` Arun Sharma
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=4F443814.6050209@fb.com \
--to=asharma@fb.com \
--cc=akpm@linux-foundation.org \
--cc=bsingharora@gmail.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.