Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6748032rwd; Mon, 19 Jun 2023 11:40:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Mv4RHuKCy+uUaSuh6rJWpP/dfA8cCvjwNvGCfPlCmet/xVpc+ch/vCpIjLWUTt7j7yd3u X-Received: by 2002:a05:6a00:3a14:b0:668:846b:9b5d with SMTP id fj20-20020a056a003a1400b00668846b9b5dmr2038958pfb.5.1687200056862; Mon, 19 Jun 2023 11:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687200056; cv=none; d=google.com; s=arc-20160816; b=PTj13ymunHY+1b++tItyXsl/1uaxfdEht4U3YbFO3guhsPxv89N1zUBghMOYP+j45l nAl+QVIu7foAC64Zp0fC4yEgHkBbloIUi9E+nKkHItOmmNVk1j8EbGAGDQgi9B9wbX81 4dk1Bw/fBmvExKqx69wCiwl6R+777AG8c2BhcquRrGyzbMs9c1X4BMZRC5/jMxVmbMj5 wGuKSjWP3cau6ha+BvqWP133YkUIRf3bIzV6O0VGzEgzZDznLLM8EXbzFHAPA6n8MaOO kxt9aSqF7cFRG+sLFqi55C63lK/97fw/a3E3ltTvFkxrE0rQRehX+rdBvk0dxVVX+LQc PCVQ== 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=xQFY7fZePp2Fj2uiaSid1me/iXz0lajB7QFNjTT4+ls=; b=RHgFJd3Uoe2Qg0IQjRmJyaPf70kqrjaKmhwkDEAIDOPYOIxK031YGRhjxZLk60pz9C pEcYu2NVsHQTEM+XeJxlifUabbOLnqFUa/li4JlPe+bnWCmPeVyXoKP21ReP8udRVqtB 6N+sRPfXS6CqwfZdWA/FxlgrkSXAqYVeF7kQxSArmHqwxeaOcHrJYR1Uj88Ep3r4f83/ UrGy9KaWptzB8uqT8mSU/Ds/9ogRu5sTccrfjLlmcQJ8l73Mbe+XlC28frZRie96hz3p cw0SO8OsQCowKBNg9FUsuOjADxTYQaAq532PAbx33ejV0qGBCNrA0g+5BMRv84twyhrf QuPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=pQDFDQhH; 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 k4-20020aa79724000000b0063354a65327si2126pfg.395.2023.06.19.11.40.45; Mon, 19 Jun 2023 11:40:56 -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=pQDFDQhH; 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 S232010AbjFSRay (ORCPT + 99 others); Mon, 19 Jun 2023 13:30:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230228AbjFSRav (ORCPT ); Mon, 19 Jun 2023 13:30:51 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1D3A198; Mon, 19 Jun 2023 10:30:47 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 231BA1F88D; Mon, 19 Jun 2023 17:30:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1687195846; 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=xQFY7fZePp2Fj2uiaSid1me/iXz0lajB7QFNjTT4+ls=; b=pQDFDQhHXe7phJt2fLX6ATZgBbeZhDTeziVy/2jZ2ixsWgmpbNLBNi7nbpYLDA8l/FFmcP TF2KLLk5U5yCq8QR0WdQC1HSOfTQDoivDzVuA9P7h1z4nK7a78h/gLR2/pNN2LoyLBKUhc /iogDsjyLttIrG2Z6PpDRYlw0dAv8hs= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8B21F139C2; Mon, 19 Jun 2023 17:30:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kPYLIcWQkGQbdwAAMHmgww (envelope-from ); Mon, 19 Jun 2023 17:30:45 +0000 Date: Mon, 19 Jun 2023 19:30:44 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Abel Wu Cc: Eric Dumazet , Tejun Heo , Christian Warloe , Wei Wang , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton , David Ahern , Yosry Ahmed , "Matthew Wilcox (Oracle)" , Yu Zhao , Vasily Averin , Kuniyuki Iwashima , Martin KaFai Lau , Xin Long , Jason Xing , Michal Hocko , Alexei Starovoitov , open list , "open list:NETWORKING [GENERAL]" , "open list:CONTROL GROUP - MEMORY RESOURCE CONTROLLER (MEMCG)" , "open list:CONTROL GROUP - MEMORY RESOURCE CONTROLLER (MEMCG)" Subject: Re: [RFC PATCH net-next] sock: Propose socket.urgent for sockmem isolation Message-ID: <4p22vtjrpu4obmbjivgpe635gbpjmhsfisnxghgsson2g6yy5r@ovawhchw7maq> References: <20230609082712.34889-1-wuyun.abel@bytedance.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gmi7m3lyy75eha77" Content-Disposition: inline In-Reply-To: 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 --gmi7m3lyy75eha77 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jun 13, 2023 at 02:46:32PM +0800, Abel Wu wrote: > Memory protection (memory.{min,low}) helps the important jobs less > affected by memstalls. But once low priority jobs use lots of kernel > memory like sockmem, the protection might become much less efficient. What would happen if you applied memory.{min,low} to the important jobs and memory.{max,high} to the low prio ones? Thanks, Michal --gmi7m3lyy75eha77 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZJCQwgAKCRAGvrMr/1gc jlfqAP4n8Ka+X+iVeFLtQT/sbo8Dudkos2fyhrkWo0/AJG9aogD9GEihJOOgAxk9 aCoZ0Kwdy6zyeUy+7PVrsCAOIKJHJQc= =1Q4d -----END PGP SIGNATURE----- --gmi7m3lyy75eha77--