Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-18 Thread Kirill A. Shutemov
On Wed, Oct 17, 2012 at 10:32:13AM +0800, Ni zhan Chen wrote: > On 10/03/2012 08:04 AM, Kirill A. Shutemov wrote: > >On Tue, Oct 02, 2012 at 03:31:48PM -0700, Andrew Morton wrote: > >>On Tue, 2 Oct 2012 18:19:22 +0300 > >>"Kirill A. Shutemov" wrote: > >> > >>>During testing I noticed big (up to

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-18 Thread Kirill A. Shutemov
On Wed, Oct 17, 2012 at 10:32:13AM +0800, Ni zhan Chen wrote: On 10/03/2012 08:04 AM, Kirill A. Shutemov wrote: On Tue, Oct 02, 2012 at 03:31:48PM -0700, Andrew Morton wrote: On Tue, 2 Oct 2012 18:19:22 +0300 Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: During testing I

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-16 Thread Ni zhan Chen
On 10/03/2012 08:04 AM, Kirill A. Shutemov wrote: On Tue, Oct 02, 2012 at 03:31:48PM -0700, Andrew Morton wrote: On Tue, 2 Oct 2012 18:19:22 +0300 "Kirill A. Shutemov" wrote: During testing I noticed big (up to 2.5 times) memory consumption overhead on some workloads (e.g. ft.A from NPB) if

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-16 Thread Ni zhan Chen
On 10/03/2012 08:04 AM, Kirill A. Shutemov wrote: On Tue, Oct 02, 2012 at 03:31:48PM -0700, Andrew Morton wrote: On Tue, 2 Oct 2012 18:19:22 +0300 Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: During testing I noticed big (up to 2.5 times) memory consumption overhead on some

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-02 Thread Andrew Morton
On Wed, 3 Oct 2012 03:04:02 +0300 "Kirill A. Shutemov" wrote: > Is the overview complete enough? Have I answered all you questions here? Yes, thanks! The design overview is short enough to be put in as code comments in suitable places. -- To unsubscribe from this list: send the line

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-02 Thread Kirill A. Shutemov
On Tue, Oct 02, 2012 at 03:31:48PM -0700, Andrew Morton wrote: > On Tue, 2 Oct 2012 18:19:22 +0300 > "Kirill A. Shutemov" wrote: > > > During testing I noticed big (up to 2.5 times) memory consumption overhead > > on some workloads (e.g. ft.A from NPB) if THP is enabled. > > > > The main

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-02 Thread Andrea Arcangeli
Hi Andrew, On Tue, Oct 02, 2012 at 03:31:48PM -0700, Andrew Morton wrote: > From reading the code, it appears that we initially allocate a huge > page and point the pmd at that. If/when there is a write fault against > that page we then populate the mm with ptes which point at the normal > 4k

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-02 Thread Andrew Morton
On Tue, 2 Oct 2012 18:19:22 +0300 "Kirill A. Shutemov" wrote: > During testing I noticed big (up to 2.5 times) memory consumption overhead > on some workloads (e.g. ft.A from NPB) if THP is enabled. > > The main reason for that big difference is lacking zero page in THP case. > We have to

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-02 Thread Andrea Arcangeli
On Tue, Oct 02, 2012 at 06:19:22PM +0300, Kirill A. Shutemov wrote: > From: "Kirill A. Shutemov" > > During testing I noticed big (up to 2.5 times) memory consumption overhead > on some workloads (e.g. ft.A from NPB) if THP is enabled. > > The main reason for that big difference is lacking zero

[PATCH v3 00/10] Introduce huge zero page

2012-10-02 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" During testing I noticed big (up to 2.5 times) memory consumption overhead on some workloads (e.g. ft.A from NPB) if THP is enabled. The main reason for that big difference is lacking zero page in THP case. We have to allocate a real page on read page fault. A

[PATCH v3 00/10] Introduce huge zero page

2012-10-02 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com During testing I noticed big (up to 2.5 times) memory consumption overhead on some workloads (e.g. ft.A from NPB) if THP is enabled. The main reason for that big difference is lacking zero page in THP case. We have to allocate a real page

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-02 Thread Andrea Arcangeli
On Tue, Oct 02, 2012 at 06:19:22PM +0300, Kirill A. Shutemov wrote: From: Kirill A. Shutemov kirill.shute...@linux.intel.com During testing I noticed big (up to 2.5 times) memory consumption overhead on some workloads (e.g. ft.A from NPB) if THP is enabled. The main reason for that big

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-02 Thread Andrew Morton
On Tue, 2 Oct 2012 18:19:22 +0300 Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: During testing I noticed big (up to 2.5 times) memory consumption overhead on some workloads (e.g. ft.A from NPB) if THP is enabled. The main reason for that big difference is lacking zero page in

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-02 Thread Andrea Arcangeli
Hi Andrew, On Tue, Oct 02, 2012 at 03:31:48PM -0700, Andrew Morton wrote: From reading the code, it appears that we initially allocate a huge page and point the pmd at that. If/when there is a write fault against that page we then populate the mm with ptes which point at the normal 4k zero

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-02 Thread Kirill A. Shutemov
On Tue, Oct 02, 2012 at 03:31:48PM -0700, Andrew Morton wrote: On Tue, 2 Oct 2012 18:19:22 +0300 Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: During testing I noticed big (up to 2.5 times) memory consumption overhead on some workloads (e.g. ft.A from NPB) if THP is enabled.

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-02 Thread Andrew Morton
On Wed, 3 Oct 2012 03:04:02 +0300 Kirill A. Shutemov kir...@shutemov.name wrote: Is the overview complete enough? Have I answered all you questions here? Yes, thanks! The design overview is short enough to be put in as code comments in suitable places. -- To unsubscribe from this list: send