Re: [PATCH -V10 00/15] THP support for PPC64

2013-06-18 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt writes: > On Wed, 2013-06-19 at 00:16 +0530, Aneesh Kumar K.V wrote: > >> But will that by anonymous memory ? ie, will we find them suitable for >> THP allocation ? > > The 4k pages themselves with 4k_PFN no, but the segment yes. A single of > these will demote the whole se

Re: [PATCH -V10 00/15] THP support for PPC64

2013-06-18 Thread Benjamin Herrenschmidt
On Wed, 2013-06-19 at 00:16 +0530, Aneesh Kumar K.V wrote: > But will that by anonymous memory ? ie, will we find them suitable for > THP allocation ? The 4k pages themselves with 4k_PFN no, but the segment yes. A single of these will demote the whole segment, ie 256M or 1T. > > * If you find

Re: [PATCH -V10 00/15] THP support for PPC64

2013-06-18 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt writes: > On Sun, 2013-06-16 at 13:37 +1000, Benjamin Herrenschmidt wrote: >> On Sun, 2013-06-16 at 12:00 +1000, Benjamin Herrenschmidt wrote: >> > So at this point, hash_page might *still* see the old pmd. Unless I >> > missed something, you did nothing that will prevent t

Re: [PATCH -V10 00/15] THP support for PPC64

2013-06-18 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt writes: > On Wed, 2013-06-05 at 20:58 +0530, Aneesh Kumar K.V wrote: >> This is the second patchset needed to support THP on ppc64. Some of >> the changes >> included in this series are tricky in that it changes the powerpc >> linux page table >> walk subtly. We also overlo

Re: [PATCH -V10 00/15] THP support for PPC64

2013-06-16 Thread Benjamin Herrenschmidt
On Sun, 2013-06-16 at 14:06 +1000, Benjamin Herrenschmidt wrote: > Look at patches http://patchwork.ozlabs.org/patch/248920/ and followup, > he basically walks the page tables here in a slightly different way than > Paul does in H_ENTER. It's more like gup_fast. It will need to handle > concurrent

Re: [PATCH -V10 00/15] THP support for PPC64

2013-06-15 Thread Benjamin Herrenschmidt
On Sun, 2013-06-16 at 13:37 +1000, Benjamin Herrenschmidt wrote: > On Sun, 2013-06-16 at 12:00 +1000, Benjamin Herrenschmidt wrote: > > So at this point, hash_page might *still* see the old pmd. Unless I > > missed something, you did nothing that will prevent that (the only way > > to lock against

Re: [PATCH -V10 00/15] THP support for PPC64

2013-06-15 Thread Benjamin Herrenschmidt
On Sun, 2013-06-16 at 12:00 +1000, Benjamin Herrenschmidt wrote: > So at this point, hash_page might *still* see the old pmd. Unless I > missed something, you did nothing that will prevent that (the only way > to lock against hash_page is really an IPI & wait or to take the PTE's > busy and make th

Re: [PATCH -V10 00/15] THP support for PPC64

2013-06-15 Thread Benjamin Herrenschmidt
On Wed, 2013-06-05 at 20:58 +0530, Aneesh Kumar K.V wrote: > This is the second patchset needed to support THP on ppc64. Some of > the changes > included in this series are tricky in that it changes the powerpc > linux page table > walk subtly. We also overload few of the pte flags for ptes at PMD

Re: [PATCH -V10 00/15] THP support for PPC64

2013-06-06 Thread Andrew Morton
On Thu, 06 Jun 2013 11:35:47 +0530 "Aneesh Kumar K.V" wrote: > Andrew Morton writes: > > > On Thu, 06 Jun 2013 09:31:06 +1000 Benjamin Herrenschmidt > > wrote: > > > >> On Wed, 2013-06-05 at 20:58 +0530, Aneesh Kumar K.V wrote: > >> > > >> > This is the second patchset needed to support THP

Re: [PATCH -V10 00/15] THP support for PPC64

2013-06-05 Thread Aneesh Kumar K.V
Andrew Morton writes: > On Thu, 06 Jun 2013 09:31:06 +1000 Benjamin Herrenschmidt > wrote: > >> On Wed, 2013-06-05 at 20:58 +0530, Aneesh Kumar K.V wrote: >> > >> > This is the second patchset needed to support THP on ppc64. Some of the >> > changes >> > included in this series are tricky in

Re: [PATCH -V10 00/15] THP support for PPC64

2013-06-05 Thread Andrew Morton
On Thu, 06 Jun 2013 09:31:06 +1000 Benjamin Herrenschmidt wrote: > On Wed, 2013-06-05 at 20:58 +0530, Aneesh Kumar K.V wrote: > > > > This is the second patchset needed to support THP on ppc64. Some of the > > changes > > included in this series are tricky in that it changes the powerpc linux

Re: [PATCH -V10 00/15] THP support for PPC64

2013-06-05 Thread Benjamin Herrenschmidt
On Wed, 2013-06-05 at 20:58 +0530, Aneesh Kumar K.V wrote: > > This is the second patchset needed to support THP on ppc64. Some of the > changes > included in this series are tricky in that it changes the powerpc linux page > table > walk subtly. We also overload few of the pte flags for ptes at

[PATCH -V10 00/15] THP support for PPC64

2013-06-05 Thread Aneesh Kumar K.V
Hi, This is the second patchset needed to support THP on ppc64. Some of the changes included in this series are tricky in that it changes the powerpc linux page table walk subtly. We also overload few of the pte flags for ptes at PMD level (huge page PTEs). The related mm/ changes are already me