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


Groups > linux.kernel > #1709799

Re: [v6 15/15] mm: debug for raw alloctor

From Pasha Tatashin <pasha.tatashin@oracle.com>
Newsgroups linux.kernel
Subject Re: [v6 15/15] mm: debug for raw alloctor
Date 2017-08-11 18:20 +0200
Message-ID <udkPf-5Kw-1@gated-at.bofh.it> (permalink)
References <ubX8m-5vB-5@gated-at.bofh.it> <ubX8m-5vB-3@gated-at.bofh.it> <udhRp-3Vr-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


>> When CONFIG_DEBUG_VM is enabled, this patch sets all the memory that is
>> returned by memblock_virt_alloc_try_nid_raw() to ones to ensure that no
>> places excpect zeroed memory.
> 
> Please fold this into the patch which introduces
> memblock_virt_alloc_try_nid_raw.

OK

  I am not sure CONFIG_DEBUG_VM is the
> best config because that tends to be enabled quite often. Maybe
> CONFIG_MEMBLOCK_DEBUG? Or even make it kernel command line parameter?
> 

Initially, I did not want to make it CONFIG_MEMBLOCK_DEBUG because we 
really benefit from this debugging code when VM debug is enabled, and 
especially struct page debugging asserts which also depend on 
CONFIG_DEBUG_VM.

However, now thinking about it, I will change it to 
CONFIG_MEMBLOCK_DEBUG, and let users decide what other debugging configs 
need to be enabled, as this is also OK.

Thank you,
Pasha

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


Thread

[v6 15/15] mm: debug for raw alloctor Pavel Tatashin <pasha.tatashin@oracle.com> - 2017-08-07 22:50 +0200
  Re: [v6 15/15] mm: debug for raw alloctor Michal Hocko <mhocko@kernel.org> - 2017-08-11 15:10 +0200
    Re: [v6 15/15] mm: debug for raw alloctor Pasha Tatashin <pasha.tatashin@oracle.com> - 2017-08-11 18:20 +0200
      Re: [v6 15/15] mm: debug for raw alloctor Michal Hocko <mhocko@kernel.org> - 2017-08-14 14:00 +0200
        Re: [v6 15/15] mm: debug for raw alloctor Pasha Tatashin <pasha.tatashin@oracle.com> - 2017-08-14 16:10 +0200
          Re: [v6 15/15] mm: debug for raw alloctor Michal Hocko <mhocko@kernel.org> - 2017-08-15 11:40 +0200

csiph-web