Received: by 10.213.65.68 with SMTP id h4csp934737imn; Thu, 22 Mar 2018 11:42:22 -0700 (PDT) X-Google-Smtp-Source: AG47ELspzNNrv03vfw5IS4ZV6pkqTz/Rpw0gxSHr0CbSENzznWqANTtOWMWg4VM6UO3LOx//exVg X-Received: by 10.98.47.70 with SMTP id v67mr21151343pfv.95.1521744142729; Thu, 22 Mar 2018 11:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521744142; cv=none; d=google.com; s=arc-20160816; b=WtHv4u7mjmzPPtGtu6XzCKDpBGLh6oRnWgMuNEf14qB1ZeyA/WIhCyKbQWVjtadOiy aZT7y5pmXEnmLZql6RGHD9sk6JGc2Jq5J77BhXRCke5ATLL+wk2ExMSjZJaKfp+6wsg5 ajZeKHjaXc1Xp+RWlkGPOk33NUpYKCStB6G1s/JBQx4oh3hz1655XDIl9SG/klXITokW YteT439ZoTqk4zoP594y+ivoFvzWeKy/EyisDbEM5otDKrHPvVeivCTOEqiWlOYtU9C8 X9wIl0HayQMnV8P14BWgtiggTjlT5EbzDQcZw4YDGW5V2hFM9ZUMf0uP+C13j1kY1ZaK sBJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=l580+8myr3Cg2nkvFbj6dwHdspRSw/FCbPgPwJ3IJEc=; b=LCTxzBkxwO16Q7nAsZNjhUwNPVP/E1cqzcyIpD9Hn378/YktKb45Topl8uL70lCW1D sqC3iuO0bQELBnaO6zbjKRdYqULuKKZbShe5hr0fcab1Uoydaz41T9MiaGWXyUMj0kSg +ylsFJ04FouDazM5uyouGNg6X65biS8Oc5/9SHHKrM01QavqRsLwZ71DsQwOqKYbikBh ZgL0V+EHF/ZHl/mEl/GHYD2RGIySebF6UqrlFkgLtXF3SekQGpOcTeOsBz6iTMNYswfE qtBHw8gV0p//qKif1qPVCej0LYCxzE98ObTJakuMorjClEHDgvCmCRLOZQxViHZOknFV ilaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=PUSQcJpp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q12-v6si7470038pll.419.2018.03.22.11.41.44; Thu, 22 Mar 2018 11:42:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=PUSQcJpp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751748AbeCVSkx (ORCPT + 99 others); Thu, 22 Mar 2018 14:40:53 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:47156 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751595AbeCVSkw (ORCPT ); Thu, 22 Mar 2018 14:40:52 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2MIKl97183688; Thu, 22 Mar 2018 18:39:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=l580+8myr3Cg2nkvFbj6dwHdspRSw/FCbPgPwJ3IJEc=; b=PUSQcJppJpyjSW2OatdSekVhsVaFmUU294rq7ev+YcehWNtLRNjdsCno8aix3CIy4GL+ sA8GSCU9tXtx4rMRQTO2Yw9tLXpxJPwZttuLD2FCpCSeOIBqhcTcN64NLQ2MGBhSN/oT mew83KoxPsgGl3u3EAo/TttX6rsAYdtd2RN6+nd35f4h8Dk6dZ0MwYv/sucQL2gUs954 Kr80SyIWvwj4U3ADm0wgivN53562ZKnIa6ey9yZpH1lxT2imi6rXqPCAx0p9F1SIMFro s7Q0kxES+nnKsp7u690tQweDVUnTpIwpDqRHb0/nq+/33UayMyvxxWetA6R0vC1s7C5C Yw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2gvhjmg5jn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Mar 2018 18:39:23 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2MIdLKl005305 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Mar 2018 18:39:21 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2MIdKug004922; Thu, 22 Mar 2018 18:39:20 GMT Received: from [10.152.33.180] (/10.152.33.180) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 22 Mar 2018 11:39:20 -0700 Subject: Re: [RFC PATCH v2 2/4] mm/__free_one_page: skip merge for order-0 page unless compaction failed To: Matthew Wilcox , Aaron Lu Cc: Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Huang Ying , Dave Hansen , Kemi Wang , Tim Chen , Andi Kleen , Michal Hocko , Mel Gorman References: <20180320085452.24641-1-aaron.lu@intel.com> <20180320085452.24641-3-aaron.lu@intel.com> <7b1988e9-7d50-d55e-7590-20426fb257af@suse.cz> <20180320141101.GB2033@intel.com> <20180322171503.GH28468@bombadil.infradead.org> From: Daniel Jordan Organization: Oracle Message-ID: <9ab5a6dd-c1b2-8da3-31f1-dd2237ea0f44@oracle.com> Date: Thu, 22 Mar 2018 14:39:17 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180322171503.GH28468@bombadil.infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8840 signatures=668695 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803200127 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/22/2018 01:15 PM, Matthew Wilcox wrote: > On Tue, Mar 20, 2018 at 10:11:01PM +0800, Aaron Lu wrote: >>>> A new document file called "struct_page_filed" is added to explain >>>> the newly reused field in "struct page". >>> >>> Sounds rather ad-hoc for a single field, I'd rather document it via >>> comments. >> >> Dave would like to have a document to explain all those "struct page" >> fields that are repurposed under different scenarios and this is the >> very start of the document :-) >> >> I probably should have explained the intent of the document more. > > Dave and I are in agreement on "Shouldn't struct page be better documented". > I came up with this a few weeks ago; never quite got round to turning it > into a patch: > > +---+-----------+-----------+--------------+----------+--------+--------------+ > | B | slab | pagecache | tail 1 | anon | tail 1 | hugetlb | > +===+===========+===========+==============+==========+========+==============+ > | 0 | flags | > +---+ | > | 4 | | > +---+-----------+-----------+--------------+----------+--------+--------------+ > | 8 | s_mem | mapping | cmp_mapcount | anon_vma | defer | mapping | > +---+ | +--------------+ | list | | > |12 | | | | | | | > +---+-----------+-----------+--------------+----------+ +--------------+ > |16 | freelist | index | | index | > +---+ | | | (shifted) | > |20 | | | | | > +---+-----------+-------------------------------------+--------+--------------+ > |24 | counters | mapcount | > +---+ +-----------+--------------+----------+--------+--------------+ > |28 | | refcount | | | | refcount | > +---+-----------+-----------+--------------+----------+--------+--------------+ > |32 | next | lru | cmpd_head | | lru | > +---+ | | +-------------------+ + > |36 | | | | | | > +---+-----------+ +--------------+-------------------+ + > |40 | pages | | dtor / order | | | > +---+-----------+ +--------------+-------------------+ + > |44 | pobjects | | | | | > +---+-----------+-----------+--------------+----------------------------------+ > |48 | slb_cache | private | | | > +---+ | +--------------+----------------------------------+ > |52 | | | | | > +---+-----------+-----------+--------------+----------------------------------+ Shouldn't the anon column also contain lru?