From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.181 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796252850; b=BBIG7gxghuBWVI1VUFGnT/5mGZ6l+MAiibJ6svJIvRdrj06pJcgm/D7PrulH5GlcXmqD b4JhU94PTFlKoTLSBmNxCB0+x3LhtAvdA8FTVo3jhf768ARpTCyc623ic0rN39EnJwAVj T/o+HJCCa9gin/TykFnS10JwPmbHBR1yduv+TPLcxUR3Hx8hIEOx+nVT1CmxqWEXAlgyi qd+jfVCllK48rVCBHO0q3QHAs881hfLwiT457qGsz+y7SiNdpCv9cRI6az+evgs821prI hxpgGaxksXmV1Kk/5QEYjYZto0DImp1o3/D1aRxN1evQyVEDraprx8UUziGdtmZKqGQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796252850; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type:Content-Disposition:User-Agent; bh=UJI51nmFi8eZLJicZuJO+aaCMXYDMl80rgQPmHEat4M=; b=s30NzKzcMlTRTxQysSh2VaNphenkFj+3Kv74f+nN1avjFJbwzTRN8KMYb0QJnJlcp29k ahNmTjdxhh+BYRvxgOauVqlodvZ6dcPcJsHVRir3Ag7wS4Cmr0PJQj3MS3Hyk2upSAFk9 fKustI85ugf9R4VuS4R2l3fyivwK5ZwOavX5GcIzGcEkVUNqhNKZdgVgkiLQd5DtGoX3B THBtHCYe8oaSDSo8+2IFPssH++B1uO60AQo5n8ID16GRH0+gQwEL/3oXc2Rh032CQEzuj ppt9hKjfbFkXFQLF+3QgeGHYAJc8F/94iz5FcYdIufZCehWZLNrccL8Huj0ID/5PaaQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=chrisdown.name; spf=pass smtp.mailfrom=chrisdown.name; dkim=pass header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b=mXA59Mt2; arc=none smtp.remote-ip=209.85.128.181 Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50A1B606A32C for ; Wed, 2 Dec 2026 23:07:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 50A1B606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=chrisdown.name Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chrisdown.name Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b=mXA59Mt2 Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-8b503e2a87bso146907887b3.3 for ; Wed, 02 Dec 2026 15:07:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; t=1796252849; x=1796857649; darn=vger.kernel.org; h=user-agent:content-disposition:content-type:mime-version:message-id :references:in-reply-to:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=UJI51nmFi8eZLJicZuJO+aaCMXYDMl80rgQPmHEat4M=; b=mXA59Mt2y4Ll5BY9rKr0I/az7G0PcjJTRCqGf39gYONVTTu9KoRwtNqkAIrSVyXaMY hARWr9ksNfDW98YVoEwwXZ/QJRlobBXg2ff4H8XqbAiLF2wJ0FnYOY0EOLf+VtsvJZ+D fhhqc9Vq51HtpOInQWTZVZ9X83xlQFDmP7d9Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796252849; x=1796857649; h=user-agent:content-disposition:content-type:mime-version:message-id :references:in-reply-to:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=UJI51nmFi8eZLJicZuJO+aaCMXYDMl80rgQPmHEat4M=; b=IaMbYvWhEKf2HSOk50EfUSlrhbo588/OP4NgRsbML/QQTLny6tcBGq641g91K6jU9i 8876GtxzY10WLTpzMT4b3WX75NGzwoPkk4PkoChQXQ4SPI4slylcdbkd+D98bsO6MzFx OuIUtFh9WQsRrPbnzAruHu/plXCubFQJmC/vRL5MmGKRIXPfqvq+oDqbTTai9mssgFdc wirwlRPAMzE+2fLgkguCXjo0Na5MQxdAS2eLqoboCOjG1YOBoKf7rzs2JB0g+Fdmqe/C v62g7adDw4B82dSfhebnBHtfAehmUzg2yidFXW+802blvAjTaBMLdmg0NwIRc77Xx09L +2nw== X-Forwarded-Encrypted: i=1; AL+hErGxPvkT5h7dH1t4VO43DvqgSnOoLpkNYHeHloz2l6XUlCLBlIJ/i2qTymajPLwcXlFgSf+/KgE=@vger.kernel.org X-Gm-Message-State: APuU4Z++kZf2Y/Oac0rio7YE66H7GlO/KW0x3GYkaOAX1pHbPgyKwMQJ dtxbnJSeKQzkH/Lz1PaEUstHMlPRxSuN5QjS+G9JnWjzIwhpAAWVDQslKynmhuDgdJI= X-Gm-Gg: AZFdTZcwJnwfRl+rxYszmizPVos397XCjFa1yKOHUTBjPJ90SbXZPpiqJWfY7bFWqBW ZHHHEtp+OHUkBGRvWJh3KTjPQOyMetndMPw6gbj2E/PvPo6g1qaHYUpGKrLETAs0krt9PuRQrQY ugzZEbZkRQl5Hm+VTzhrpVoU54umzU8KmT6RW5KIjzsOGetp9RpcepDTbib3PlMQ4N+iFQEnc1B 9cSGhbKEVfhM9aFOpI7GRItiAwYlzcJFXXuf5E3clawpclZHELY6HmgdACKkQK3spwff+8l8vF1 DfitV2x5vJQJIQ1aQFq0hbmrZ2im5RiQV8cx9hbFvwszccUKhS0EHwNGbj52ldp1vCMHg9L1UrZ ekkBfUNyGhJtTf+5Kj6apSIWSdUFlLI1CRlqWdw0aAfSjUO+rjBrxDrrDpGNGuW0YtcZ6HZATAj kJQVeiznkDmxNWcqDICJ5Qs8ATMfxVQmZFGlrIa5e+EaPicxOYEOOkBAS6tK1XJHY/zJULOnJWW mtpjJDCVs4WEJX4j6yURmhEsosRu6/mH+wRMdpaDMkpdWWmNp7Tpw2cvkMCip9hsm0ZF2QfWFJF UajcPOxfM/kISwtbFwi/1e/+jbknkCnx5RPhCVks+x/idPhzh9fKsLqu3JdEH9i9SoduiaLRtPY 2EmeZoSV+FkeZiXHPiJL+RgSdEXo6VUEj6x5zA7VMbqKqss136hejxpppbtmgcw1BuEx/Fhogv+ ncm4WeQ2SURZUx4MFrl2xKJ1ArE7V7+5KuOH779NDZYRjGgBsvbRpOKgbyysZ9ZSgjnk++8wT4d BGP7UiDYN42IMOpHGxKahw= X-Received: by 2002:a05:690c:3749:b0:8b4:d6de:975a with SMTP id 00721157ae682-8b520442f78mr211323777b3.17.1796252849170; Wed, 02 Dec 2026 15:07:29 -0800 (PST) Received: from [172.20.0.3] (c-73-207-185-9.hsd1.ga.comcast.net. [73.207.185.9]) by smtp.gmail.com with ESMTPSA id 00721157ae682-8b59a06f3e9sm71675557b3.25.2026.12.02.15.07.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 15:07:28 -0800 (PST) Date: Wed, 02 Dec 2026 15:07:25 -0800 From: Chris Down To: Barry Song Cc: bingfangguo@tencent.com, Andrew Morton , Johannes Weiner , David Hildenbrand , Michal Hocko , Qi Zheng , Shakeel Butt , Lorenzo Stoakes , Kairui Song , Axel Rasmussen , Yuanchu Xie , Wei Xu , Baoquan He , Baolin Wang , Yu Zhao , Bingfang Guo , linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2] mm/mglru: skip oom killing for order != 0 allocs in kswapd In-Reply-To: References: <20261125-fix-mglru-kswapd-age-v2-1-4cc37437af9b@tencent.com> Message-ID: X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/2.4.3 (cc9e3943) (2026-10-09) Hi Barry, Bingfang, Barry Song writes: >I'm not really convinced this is the correct fix. It seems to work >around an issue with min_ttl for higher-order allocations, but it >doesn't appear to address the root cause. Hmm... the over-reclaim for high-order wakeups does need fixing, but I think the OOM kills are a separate regression and should be fixed on their own. Before 30d77b7eef01 ("mm/mglru: fix ineffective protection calculation"), lru_gen_age_node() returned early for any non-zero sc->order, with a comment saying that this was to exclude compaction-induced reclaim. That commit needed the memcg walk to always run for mem_cgroup_calculate_protection(), so the early return was dropped and the order check went with it. Its changelog only talks about the DEF_PRIORITY part, so it looks like the order check was lost by accident. should_abort_scan() still has the same check with the same comment. Thanks! Chris