From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751320AbdAQJku (ORCPT ); Tue, 17 Jan 2017 04:40:50 -0500 Received: from out0-130.mail.aliyun.com ([140.205.0.130]:59332 "EHLO out0-130.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751210AbdAQJks (ORCPT ); Tue, 17 Jan 2017 04:40:48 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R251e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03295;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---.7T2iJI-_1484645566; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "'Michal Hocko'" , "'Andrew Morton'" Cc: "'Johannes Weiner'" , "'Mel Gorman'" , "'Vlastimil Babka'" , "'David Rientjes'" , , "'LKML'" , "'Michal Hocko'" References: <20170117091543.25850-1-mhocko@kernel.org> <20170117091543.25850-3-mhocko@kernel.org> In-Reply-To: <20170117091543.25850-3-mhocko@kernel.org> Subject: Re: [PATCH 2/4] mm, page_alloc: warn_alloc print nodemask Date: Tue, 17 Jan 2017 17:32:45 +0800 Message-ID: <034c01d270a4$a9619da0$fc24d8e0$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQMZc92x2uhxZfNj6Op/FtjOamLIhgGoq6munqEbtBA= Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, January 17, 2017 5:16 PM Michal Hocko wrote: > > From: Michal Hocko > > warn_alloc is currently used for to report an allocation failure or an > allocation stall. We print some details of the allocation request like > the gfp mask and the request order. We do not print the allocation > nodemask which is important when debugging the reason for the allocation > failure as well. We alreaddy print the nodemask in the OOM report. > > Add nodemask to warn_alloc and print it in warn_alloc as well. > > Changes since v1 > - print cpusets as well - Vlastimil > > Acked-by: Mel Gorman > Signed-off-by: Michal Hocko > --- Acked-by: Hillf Danton