Re: [PATCH 2/3] ndctl, create-namespace: read default alignment from sysfs

2017-04-24 Thread Dan Williams
On Sat, Apr 22, 2017 at 12:04 AM, Oliver O'Halloran wrote: > On Sat, Apr 22, 2017 at 3:19 AM, Dan Williams > wrote: >> On Fri, Apr 21, 2017 at 12:12 AM, Oliver O'Halloran wrote: >>> Read the default alignment from the hpage_pmd_size in sysfs. On PPC the >>> PMD size depends on the MMU being use

Re: [PATCH 2/3] ndctl, create-namespace: read default alignment from sysfs

2017-04-22 Thread Oliver O'Halloran
On Sat, Apr 22, 2017 at 3:19 AM, Dan Williams wrote: > On Fri, Apr 21, 2017 at 12:12 AM, Oliver O'Halloran wrote: >> Read the default alignment from the hpage_pmd_size in sysfs. On PPC the >> PMD size depends on the MMU being used. When the traditional hash MMU is >> used (P9 and earlier) the PMD

Re: [PATCH 2/3] ndctl, create-namespace: read default alignment from sysfs

2017-04-21 Thread Dan Williams
On Fri, Apr 21, 2017 at 12:12 AM, Oliver O'Halloran wrote: > Read the default alignment from the hpage_pmd_size in sysfs. On PPC the > PMD size depends on the MMU being used. When the traditional hash MMU is > used (P9 and earlier) the PMD size is 16MB while the newer radix MMU > uses a 2MB PMD si

[PATCH 2/3] ndctl, create-namespace: read default alignment from sysfs

2017-04-21 Thread Oliver O'Halloran
Read the default alignment from the hpage_pmd_size in sysfs. On PPC the PMD size depends on the MMU being used. When the traditional hash MMU is used (P9 and earlier) the PMD size is 16MB while the newer radix MMU uses a 2MB PMD size. The choice of MMU is done at runtime depending on what the hardw