Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796551498; b=QnxorAwPnl2wO4wvE/Cv8lxmVbpKiaJDi/7WJ2qptvLR3+0SuCkLAjyuggTrgmatpQRT //TEDpysM+v1X3OYToRqdWlqHLs5YwKNTz1lc04dM0aUKIafIkR2bMUF/68qAKOnkROab snUPB8XMT4uIxEaGYrof9opbn4+S6b5CKSPImF/LCHqI9yA6s49dQkNcnqJbDN9HKm+2s 2azxyNw7Nune1mC2EBa5tS0pPnAoE+rlftxf3oWkfstK/QGI8tkT0mq+Zy8upAihzWH/3 EExZK8XxKwb7YdxmgdpZfcOpJdAaEry0/swEIDY9pYrBdpshJCx5j4efo5edGRiJBcA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796551498; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=T0Gq0nqDOVuWQXaihuaLzO1qBeh6wpVKyYYcbovRJLQ=; b=5m3AN2GCqabF/49D0RbxT2nNtwcRPBQ6r94Kp9AazpLvYXMe1qVtnP/8tfOpgW8k4RRc b1Uph72ZZ0MgW8/B0h7kLkLgOtR62Wzza1wjZZj9CJPCafbtWCR0TGL6EEMX5jLjYBXji VcGLaTsrCpsv6L42J1bn37VAyPJ60H5QafzdH/E0EnI7Ui77hArPIxw2+iXSBwzhtdz0d phrWUhw4FOzoi9dnp5EV9LRc1ofIvnKfNp27j50iskMC/nNcr4VrK3EEp/JqGCPL77N5L lVtymY28Xehh7ABGUgAqoWay1RLGkl0niKUD2d00HIEJDeqeDZOqsGG8R/t4YcLKIgg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=0595ZIje; arc=none smtp.remote-ip=209.85.214.173 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 E0846606A330 for ; Sun, 6 Dec 2026 10:04:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E0846606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=0595ZIje Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2f037bc348dso17615845ad.0 for ; Sun, 06 Dec 2026 02:04:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796551497; x=1797156297; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=T0Gq0nqDOVuWQXaihuaLzO1qBeh6wpVKyYYcbovRJLQ=; b=0595ZIje7YGiV7+RJsKF5h9BAHeZv9RDc0cMEc2QMA8quj52bnK+afHBs6bCvZHu5g kVFTy7diqnho5yeR+g+wSv3ESe/Way/uCNJAXNoRA14fcfG6cPdZXCBWu8zs3VK6tHCA Gq8tuqEn5tTSmFRMEowl+583a+uYEVQ8niXUfp4EGRfzq6w35AIDKEdz0bDUl3tQGXeY dVLWOERzRcXWHxfEx8E3DYfeY8KhZmBwSbK/Wgg4v+Hos4LsTbhXH5tPzpyEtJDHM2Pw v6pjBLARrH/gtKNszfxpdiIJuKvq06vj+da8YeqFvh3qOYjH4arxQCU9bmZeqJrkeTLO ernA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796551497; x=1797156297; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=T0Gq0nqDOVuWQXaihuaLzO1qBeh6wpVKyYYcbovRJLQ=; b=rAqShPnMFrZzPJMir0wVpFvbTHBV/Y2N6UO1x6avcLR/kx2inyXhbEfJyVEgn3mfrl yWLhQqiMATfrqPw1JbkLMtDaUWl7wv/NwZGr+0tFnRV6FO25pAveaRkpRczAxErmoCye ifpCKiDiwDz1uNmST/9sdVDUWOErBIAvE1GvuB8fJ3Gv4KRDLB95mci496irafjB2CfH JqEOdwncgPZCORvP8Qo3suTEDhfwN9LFxsuQ+UkVWM9WtwKbop8/gk0jr1wKJcto+pwu W2zdNRSJnj0Z6HNSy1srLR7Gu24CtPhDNB3jzqjz72Es0jlv6T+Zh3qANf3t986nTY3E 8t9A== X-Forwarded-Encrypted: i=1; AL+hErEvfJElNHuisKU80RJeHkSiJCf/7hw/Tn0hriLsnC0DGkRYpShrQ94o0ONYF7pIZAGD62s=@vger.kernel.org X-Gm-Message-State: AB4q+uHtWKA6OhAUXEgMqhV+BwQbujhXsg83iJr7sZd47y/X9pW51K8w Cz/0DsDmiDnLEEPlr8y47C566qKZAtm0wfI//dijAbLMbK5R3WYPvOxD X-Gm-Gg: AZFdTZftFtvrGpviYYC52VILmMhdCoykK5zILoJkx5GTyg6p2HEmugxFU0vG7H8iGNV hFBou1EPyDCNgpOs04I57WS9wpspDKJV6IhHEJkJZA5eT3GtX9nxDa3J5Q6NiLPmoWYiC0Q2k3V tV/1Jpo+pvQY52BGpBesKWi+VXlWRKzi0WBUZgZJgRlBySs5dAucv0DaBOTgW2mAEZ5G1EMw1UG NetbZB1qLsjC+A8CfsDMqsVaREZn6xuF0zRz0RXhcgTzhfDhf/1B+QQUaQjtQ/b3BPMqi8Y9sNz d3pV7fR5WxC/cDuBPMEFba8UuVkgbIw3+wtRuPYNO3ZGqYP8/J4DX1eyuyeIAF78JtdoKLRtG9r 15y0f23iojLAjxO7OfY3UH76/MwX0yZLwzyCATdOU/NxM+A3QJ8N+w6JGHJM/njjTZPeJ1/R5e3 flE9WOpsAFxYRIoX3MPwDbM49hOodcG1GbIj92kCuKTBesWy7gIJrnk5yx5TN1ebRx0mmGzHD5h 6TDylwwx48pCwRFZQyV/U3/oTv4KB3Lu/i7igZOkFMYQYm3zYLFYW00+GzY3kgzm9eROddGSSeM sAE8Enp0xNlfFY9dg5hWVR7OsR6QtGhrlsJskmX01jzsju1Ebz+LTLQHVIjBCEpfR4Iyqe/DIyW kT9ckBBg= X-Received: by 2002:a17:903:370b:b0:2eb:4a05:4b4b with SMTP id d9443c01a7336-2f1ba1f0d80mr78888355ad.49.1796551497091; Sun, 06 Dec 2026 02:04:57 -0800 (PST) Received: from HFGF46V04Q.bytedance.net ([203.208.189.12]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f1b78f92b3sm35924905ad.21.2026.12.06.02.04.53 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 06 Dec 2026 02:04:56 -0800 (PST) From: Lian Wang To: Ben Gardon , Alexei Starovoitov Cc: Roman Gushchin , bpf@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org Subject: Re: [PATCH bpf-next v4 00/17] mm: BPF OOM Date: Sun, 6 Dec 2026 18:04:48 +0800 Message-ID: <179655145461.76477.1081548912221408111@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: References: <20261202210415.517651-1-bgardon@google.com> X-Mailing-List: bpf@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-Transfer-Encoding: 8bit Hi Ben and Alexei, The watermark policy would be useful to us too. We're working on protecting latency-sensitive workloads that share a machine with batch jobs. We want to shed batch work before those workloads stall. Being able to configure the watermark and identify eligible cgroups would let us try the same policy with our workload layout. I'd like to test a batch leaf and a latency-sensitive sibling under a parent with memory.oom.group enabled. With the two-stage approach you discussed, would you declare the OOM on the batch leaf so that fallback selection and group killing stay within that subtree? I'd be happy to review the watermark policy and help write a selftest. I'd start with one eligible task in the batch leaf. If it stays there, the proactive request should kill it and leave the sibling alone. If it exits between selection and handling, the sibling should still survive. If it moves into the sibling instead, both the moved task and the sibling's original task should survive. I'd test ordinary allocation OOM separately so its normal fallback is exercised independently. Thanks, Lian Wang