From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752156AbbHEOvW (ORCPT ); Wed, 5 Aug 2015 10:51:22 -0400 Received: from mga09.intel.com ([134.134.136.24]:30242 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751137AbbHEOvV (ORCPT ); Wed, 5 Aug 2015 10:51:21 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,617,1432623600"; d="scan'208";a="777377277" Message-ID: <55C221EB.7060500@intel.com> Date: Wed, 05 Aug 2015 07:47:07 -0700 From: Dave Hansen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Xishi Qiu CC: Andrew Morton , Mel Gorman , Vlastimil Babka , Johannes Weiner , Michal Hocko , iamjoonsoo.kim@lge.com, alexander.h.duyck@redhat.com, sasha.levin@oracle.com, Linux MM , LKML Subject: Re: [PATCH] mm: add the block to the tail of the list in expand() References: <55BB4027.7080200@huawei.com> <55BC0392.2070205@intel.com> <55BECC85.7050206@huawei.com> <55BEE99E.8090901@intel.com> <55C011A6.1090003@huawei.com> <55C0CBC3.2000602@intel.com> <55C1C132.2010805@huawei.com> In-Reply-To: <55C1C132.2010805@huawei.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/05/2015 12:54 AM, Xishi Qiu wrote: > I add some debug code like this, but it doesn't trigger the dump_stack(). ... > + if (!list_empty(&area->free_list[migratetype])) { > + printk("expand(), the list is not empty\n"); > + dump_stack(); > + } > + That will probably not trigger unless you have allocations that are falling back and converting other pageblocks from other migratetypes.