Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3816526rdb; Thu, 14 Sep 2023 03:43:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJ9rZmpqlghrTeptQDyEke24U5IK/hRB/tPsK3i9QAr19iN6nIfNcg1+VWle7Ue2x59tlK X-Received: by 2002:a05:6a20:7490:b0:140:a6ec:b55f with SMTP id p16-20020a056a20749000b00140a6ecb55fmr5400116pzd.16.1694688217433; Thu, 14 Sep 2023 03:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694688217; cv=none; d=google.com; s=arc-20160816; b=VrqZYjahPyHahYqUUctfrdRibjKB0KDi0Yah1nZlyRDyPWHZg8sllHmEkgWaXWe70K co7LOh/TOi1RHE0tQuYvqZmVXdO0yP5wn8EgPkJq0CXVyBWRsLbxS3s2YR8huRf2ra+O oWC82zurAxWJr1H0h2ynPyXUsG15da2TIu9KxrJ+rh+S2cZp5Ua82aEdQzr19h18/+9L 6gVc9iiM6bFsFtkwP3vDYDFisMoiVB+xgO3Yiieik9mBgnlUyL7/UhNBEHBLwBR84Ilv NixLtyD107IuJXNuIN7Qw/ZSUjtR4gcXuR2vfKK9KJ3DYo0VnIYn/fQ1T+mXB/qPx6Am 8evQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Xmw4nSPXo3+hrV6NNlXp2SttgaW4cJg//9HzUcBimzw=; fh=P2xRvT/3gU4jeRPimgVadHxT1tx11QhdMtS7UZmJd28=; b=LOAJWbgE25IRQ6LqPe+e72f5BAE9qfHv3vTYSGTIGWOMnZ7NKTOnXT2Qw1d1z9Hg+F nybqraIUgeK9TjSI4ErDwVtS/Bg5pfrp5ySF5CNeHYqfx9YbkArfW9myrg2fvcMjpNE+ JyRsO5UVCbau8Fm4yk3WRAM0iBIElVySSbDytT7/1bI3l445c4G4gOoP6CrnMUeedxs6 3DjuA58Y2wGcoJR8GJGFR62jgz3qyokO51DLG9TK9VA1XqJ7O/ksQf+UNKgxKpPgcM3L jbsBTwCSDwV/YEx+WaOwNhT2NNI6nNFTKMhrE6juwU0+LGVcsVrTtGms8/E2Id8Tc/WS pNiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id b2-20020a17090a6ac200b0027359ccdfeasi3475861pjm.122.2023.09.14.03.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:43:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 28D09819F9B6; Thu, 14 Sep 2023 03:03:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237811AbjINKDs (ORCPT + 99 others); Thu, 14 Sep 2023 06:03:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237747AbjINKDr (ORCPT ); Thu, 14 Sep 2023 06:03:47 -0400 Received: from outbound-smtp55.blacknight.com (outbound-smtp55.blacknight.com [46.22.136.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C49881BE3 for ; Thu, 14 Sep 2023 03:03:42 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp55.blacknight.com (Postfix) with ESMTPS id ECF89FAC41 for ; Thu, 14 Sep 2023 11:03:40 +0100 (IST) Received: (qmail 9226 invoked from network); 14 Sep 2023 10:03:40 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.197.19]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 14 Sep 2023 10:03:40 -0000 Date: Thu, 14 Sep 2023 11:03:39 +0100 From: Mel Gorman To: Johannes Weiner Cc: Andrew Morton , Vlastimil Babka , Miaohe Lin , Kefeng Wang , Zi Yan , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/6] mm: page_alloc: fix move_freepages_block() range error Message-ID: <20230914100339.3dhgvsc6aprb5bbx@techsingularity.net> References: <20230911195023.247694-1-hannes@cmpxchg.org> <20230911195023.247694-5-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20230911195023.247694-5-hannes@cmpxchg.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 14 Sep 2023 03:03:48 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email On Mon, Sep 11, 2023 at 03:41:45PM -0400, Johannes Weiner wrote: > When a block is partially outside the zone of the cursor page, the > function cuts the range to the pivot page instead of the zone > start. This can leave large parts of the block behind, which > encourages incompatible page mixing down the line (ask for one type, > get another), and thus long-term fragmentation. > > This triggers reliably on the first block in the DMA zone, whose > start_pfn is 1. The block is stolen, but everything before the pivot > page (which was often hundreds of pages) is left on the old list. > > Signed-off-by: Johannes Weiner Oops Acked-by: Mel Gorman -- Mel Gorman SUSE Labs