Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1570229

Re: [RFC V2 02/12] mm: Isolate HugeTLB allocations away from CDM nodes

From Anshuman Khandual <khandual@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject Re: [RFC V2 02/12] mm: Isolate HugeTLB allocations away from CDM nodes
Date 2017-01-31 02:10 +0100
Message-ID <t5v7k-2HW-13@gated-at.bofh.it> (permalink)
References <t5aYV-7mm-3@gated-at.bofh.it> <t5aYV-7mm-13@gated-at.bofh.it> <t5nW9-6Jm-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 01/30/2017 10:49 PM, Dave Hansen wrote:
> On 01/29/2017 07:35 PM, Anshuman Khandual wrote:
>> HugeTLB allocation/release/accounting currently spans across all the nodes
>> under N_MEMORY node mask. Coherent memory nodes should not be part of these
>> allocations. So use system_ram() call to fetch system RAM only nodes on the
>> platform which can then be used for HugeTLB allocation purpose instead of
>> N_MEMORY node mask. This isolates coherent device memory nodes from HugeTLB
>> allocations.
> 
> Does this end up making it impossible to use hugetlbfs to access device
> memory?

Right, thats the implementation at the moment. But going forward if we need
to have HugeTLB pages on the CDM node, then we can implement through the
sysfs interface from individual NUMA node paths instead of changing the
generic HugeTLB path. I wrote this up in the cover letter but should also
have mentioned in the comment section of this patch as well. Does this
approach look okay ?

"Now, we ensure complete HugeTLB allocation isolation from CDM nodes. Going
forward if we need to support HugeTLB allocation on CDM nodes on targeted
basis, then we would have to enable those allocations through the
/sys/devices/system/node/nodeN/hugepages/hugepages-16384kB/nr_hugepages
interface while still ensuring isolation from other generic sysctl and
/sys/kernel/mm/hugepages/hugepages-16384kB/nr_hugepages interfaces."

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC V2 02/12] mm: Isolate HugeTLB allocations away from CDM nodes Anshuman Khandual <khandual@linux.vnet.ibm.com> - 2017-01-30 04:40 +0100
  Re: [RFC V2 02/12] mm: Isolate HugeTLB allocations away from CDM  nodes Dave Hansen <dave.hansen@intel.com> - 2017-01-30 18:30 +0100
    Re: [RFC V2 02/12] mm: Isolate HugeTLB allocations away from CDM  nodes Anshuman Khandual <khandual@linux.vnet.ibm.com> - 2017-01-31 02:10 +0100
      Re: [RFC V2 02/12] mm: Isolate HugeTLB allocations away from CDM  nodes Dave Hansen <dave.hansen@intel.com> - 2017-01-31 02:40 +0100
        Re: [RFC V2 02/12] mm: Isolate HugeTLB allocations away from CDM  nodes Anshuman Khandual <khandual@linux.vnet.ibm.com> - 2017-02-01 15:10 +0100
          Re: [RFC V2 02/12] mm: Isolate HugeTLB allocations away from CDM  nodes Dave Hansen <dave.hansen@intel.com> - 2017-02-01 20:10 +0100

csiph-web