Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6753108ybf; Fri, 6 Mar 2020 03:59:06 -0800 (PST) X-Google-Smtp-Source: ADFU+vsvebofdmVpxUszV3i51HdsFvt4IE4lX5+ol3QDJt/kXftOfMUhhfM3fpY6URMconzBDap7 X-Received: by 2002:a9d:7748:: with SMTP id t8mr2257430otl.187.1583495946299; Fri, 06 Mar 2020 03:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583495946; cv=none; d=google.com; s=arc-20160816; b=nQt8K5j6AI7ho92Mq/xNrGff81TEDl3faCw2qdYMwcHJnYd7zWWp8ZuI62XBdH6DJ4 0sPM4w1Dtifs4yw2Slp9yh3F64aXmsJopxyIGB9bhSG6ERcsAOd9oZTUyayj+KcQpWJd zObQLhpMzyC0IVksTPWFljB1c7rI+uKKbmdv4jASj+GAcRvmCeX8DmmZ0+RMH6ofJ3ox 0fhbgEXg6+iwDLqXdC3JQxFuphkHoVyyk2FCgW7VIgOJWV8xD07d2GflbT2gjcTNH8cs jGNs5305Kc4xb6PJ0jBHz3XVNZqctI4zhTi1pPrDweEFcc6w8ztKg45q4J8NnKOvyt+n uEVA== 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:in-reply-to :mime-version:user-agent:date:message-id:references:cc:to:from :subject; bh=/Xcwp8TuNaTfAwefX6PmCXSLexi+AnwbEZoVtlHrvz8=; b=TMZ9NgQFLl/xx1fobF3VuCcC07wq/rrG8rqc5fz8dT7Z+oHki1+aH2aU8sq2SycGYa mzFkNAlZTiyqt/yO0our3h9AosVGvplUDaBcnxyvs3zO8351CrDHGC1+pZneHfT5Se+j 1h/HKnIuZ0FO+9QNBAUgRcqc+4om7R3GleHkt4TpgYuduzHNkO3JuV7TjZ5UFQZpr4PG rP2OBWtEw/3ZSmbi08e5rwoGXKA5XXFoONf+INyt+L/DwQgaUOJTuOybQgaLBLXcsQhn KFKZcR9WH9K1Ee5c04QqsP49so9LN5RgPTu4w2kaZF9WHZqike7i6iys/hxMZ9TuE0uZ VpQw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u24si1254100otk.287.2020.03.06.03.58.53; Fri, 06 Mar 2020 03:59:06 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726256AbgCFL63 (ORCPT + 99 others); Fri, 6 Mar 2020 06:58:29 -0500 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:34532 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbgCFL63 (ORCPT ); Fri, 6 Mar 2020 06:58:29 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07488;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0Trpc5Qt_1583495899; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0Trpc5Qt_1583495899) by smtp.aliyun-inc.com(127.0.0.1); Fri, 06 Mar 2020 19:58:20 +0800 Subject: Re: [failures] mm-vmscan-remove-unnecessary-lruvec-adding.patch removed from -mm tree From: Alex Shi To: Qian Cai , LKML , Andrew Morton Cc: aarcange@redhat.com, daniel.m.jordan@oracle.com, hannes@cmpxchg.org, hughd@google.com, khlebnikov@yandex-team.ru, kirill@shutemov.name, kravetz@us.ibm.com, mhocko@kernel.org, mm-commits@vger.kernel.org, tj@kernel.org, vdavydov.dev@gmail.com, willy@infradead.org, yang.shi@linux.alibaba.com References: <20200306025041.rERhvnYmB%akpm@linux-foundation.org> <211632B1-2D6F-4BFA-A5A0-3030339D3D2A@lca.pw> Message-ID: Date: Fri, 6 Mar 2020 19:58:19 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/3/6 下午5:04, Alex Shi 写道: > > > 在 2020/3/6 上午11:32, Qian Cai 写道: >> >>> On Mar 5, 2020, at 9:50 PM, akpm@linux-foundation.org wrote: >>> >>> >>> The patch titled >>> Subject: mm/vmscan: remove unnecessary lruvec adding >>> has been removed from the -mm tree. Its filename was >>> mm-vmscan-remove-unnecessary-lruvec-adding.patch >>> >>> This patch was dropped because it had testing failures >> Andrew, do you have more information about this failure? I hit a bug >> here under memory pressure and am wondering if this is related >> which might save me some time digging… >> >> [ 4389.727184][ T6600] mem_cgroup_update_lru_size(00000000bb31aaed, 0, -7): lru_size -1 > > This bug seems failed due to a update_lru_size() missing or misplace, but > what's I changed on this patch seems unlike to cause this bug. > > Anyway, Qian, could you do me a favor to remove this patch and try again? Compare to this patch's change, the 'c8cba0cc2a80 mm/thp: narrow lru locking' is more likely bad. Maybe it's due to lru unlock was moved before ClearPageCompound() from before remap_page(head); guess this unlock should be move after ClearPageCompound or move back to origin place. But I still can not reproduce this bug. Awkward! Alex --- line 2605 mm/huge_memory.c: spin_unlock_irqrestore(&pgdat->lru_lock, flags); ClearPageCompound(head); split_page_owner(head, HPAGE_PMD_ORDER); /* See comment in __split_huge_page_tail() */ if (PageAnon(head)) { /* Additional pin to swap cache */ if (PageSwapCache(head)) { page_ref_add(head, 2); xa_unlock(&swap_cache->i_pages); } else { page_ref_inc(head); } } else { /* Additional pin to page cache */ page_ref_add(head, 2); xa_unlock(&head->mapping->i_pages); } remap_page(head);