Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4355755imw; Tue, 12 Jul 2022 06:39:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uUaSOngnLJ8kU+FaG6Em2q0AkIO+h7y8UlNAfF7BCHdPi/YTkobxWunQL9Mi7wFsLqZFwE X-Received: by 2002:a17:907:ea5:b0:726:2c1c:312f with SMTP id ho37-20020a1709070ea500b007262c1c312fmr23774955ejc.248.1657633152149; Tue, 12 Jul 2022 06:39:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657633152; cv=none; d=google.com; s=arc-20160816; b=SUVUWlHBh5qfmr6fOF2eCcV8oDIWwFr2Fay2jLxZ/g2ONPEzLLOWH8TNpKt21APhK/ 7VMnS4P2nq9Mrtqmq5SncsVGeFw+e/vNCoqR+U2I6IFoXA7wiO3CLbVKx8uH4ARg9vWN x6ThAEvVPNcIMFMaofwrfxj1azgYar3yl1BfX1I/sP+K0ap6QzxS3sLAXVSHNpnEtgCa 56YBQeiQWzgQr+IWmFXq6ofPmMTc/A1YlcI1uaFM9JO5cKMNI3GsnaAWj8PK8e5wyLBu mNjTzJnlgNAwjIy/K33GbRnJAO4tPc2c0E5e5CBs5KoppEN3mI9SkrgU1hL3KwJJcaDt C54A== 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:dkim-signature; bh=+zipOz8mXTXKTOJCGZnBsxuqw/eZ2Vsh+kILV8kuqxE=; b=kLCI+tIiDJWHI4+t0NeYaO87S36xETS7C/2d1liT1EwimJZeUNJnUSNIm06oPkinMY CIbaa9c7OlncYidP1fDvvhQDPdH0fpvwYowtkkgDCHC8VIyhifhEezfKq5TWrgUtSptx wzy0KpAUfqllwwo5xXsAcgTa6UFNEp3i3KMLy7EA5/znnmrBP922hukRQU3A7Jp3VTPX LiIzRsHWG9b2ktCRHG40baCzyVK1R6BZY7zHB+eGst0v6Kv9QEb/537pzUb2ETO/kmRA FdzkIPSVFUwuiBj2px8GJtQbnPcDWpiSssSj8S7YkTiuz4K0cgH8jxHCG1G6mBpuFn7O cq9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=VWaLz0Zi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc30-20020a1709078a1e00b0072b394a7f19si15558592ejc.779.2022.07.12.06.38.46; Tue, 12 Jul 2022 06:39:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=VWaLz0Zi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233142AbiGLNfn (ORCPT + 99 others); Tue, 12 Jul 2022 09:35:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbiGLNfi (ORCPT ); Tue, 12 Jul 2022 09:35:38 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C360B6DB4; Tue, 12 Jul 2022 06:35:34 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 59F5920151; Tue, 12 Jul 2022 13:35:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1657632931; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+zipOz8mXTXKTOJCGZnBsxuqw/eZ2Vsh+kILV8kuqxE=; b=VWaLz0Zi9WuzNQOHKOhhmJXt/adh3j2q5b/mwzjcUHqDNxLTThxGq10ppyCwcdaoz7LMJG fBbTccaLbUuIIasDGhIXlz9896nN1pgO6K/iJTc8czSOkvt1q+ktZaXXGkXoZPK7wf7wTq M3ccS3h7L6Y79Ux6ZHqhmnY5IB03Juw= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 4DFB72C141; Tue, 12 Jul 2022 13:35:29 +0000 (UTC) Date: Tue, 12 Jul 2022 15:35:28 +0200 From: Michal Hocko To: Abel Wu Cc: Gang Li , akpm@linux-foundation.org, surenb@google.com, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, viro@zeniv.linux.org.uk, ebiederm@xmission.com, keescook@chromium.org, rostedt@goodmis.org, mingo@redhat.com, peterz@infradead.org, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, david@redhat.com, imbrenda@linux.ibm.com, adobriyan@gmail.com, yang.yang29@zte.com.cn, brauner@kernel.org, stephen.s.brennan@oracle.com, zhengqi.arch@bytedance.com, haolee.swjtu@gmail.com, xu.xin16@zte.com.cn, Liam.Howlett@oracle.com, ohoono.kwon@samsung.com, peterx@redhat.com, arnd@arndb.de, shy828301@gmail.com, alex.sierra@amd.com, xianting.tian@linux.alibaba.com, willy@infradead.org, ccross@google.com, vbabka@suse.cz, sujiaxun@uniontech.com, sfr@canb.auug.org.au, vasily.averin@linux.dev, mgorman@suse.de, vvghjk1234@gmail.com, tglx@linutronix.de, luto@kernel.org, bigeasy@linutronix.de, fenghua.yu@intel.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-perf-users@vger.kernel.org, hezhongkun.hzk@bytedance.com Subject: Re: [PATCH v2 0/5] mm, oom: Introduce per numa node oom for CONSTRAINT_{MEMORY_POLICY,CPUSET} Message-ID: References: <20220708082129.80115-1-ligang.bdlg@bytedance.com> <41ae31a7-6998-be88-858c-744e31a76b2a@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41ae31a7-6998-be88-858c-744e31a76b2a@bytedance.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 12-07-22 19:12:18, Abel Wu wrote: [...] > I was just going through the mail list and happen to see this. There > is another usecase for us about per-numa memory usage. > > Say we have several important latency-critical services sitting inside > different NUMA nodes without intersection. The need for memory of these > LC services varies, so the free memory of each node is also different. > Then we launch several background containers without cpuset constrains > to eat the left resources. Now the problem is that there doesn't seem > like a proper memory policy available to balance the usage between the > nodes, which could lead to memory-heavy LC services suffer from high > memory pressure and fails to meet the SLOs. I do agree that cpusets would be rather clumsy if usable at all in a scenario when you are trying to mix NUMA bound workloads with those that do not have any NUMA proferences. Could you be more specific about requirements here though? Let's say you run those latency critical services with "simple" memory policies and mix them with the other workload without any policies in place so they compete over memory. It is not really clear to me how can you achieve any reasonable QoS in such an environment. Your latency critical servises will be more constrained than the non-critical ones yet they are more demanding AFAIU. -- Michal Hocko SUSE Labs