Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1223151rwd; Thu, 15 Jun 2023 07:52:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ60OOsB83sQ++bypgBxXW+5fWuut7vruhMAAxwZ8UE6mAJMJwe6lXnllZe4FhyQMmV5J3lm X-Received: by 2002:a17:907:36c8:b0:978:af67:c7ea with SMTP id bj8-20020a17090736c800b00978af67c7eamr19655665ejc.41.1686840744449; Thu, 15 Jun 2023 07:52:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686840744; cv=none; d=google.com; s=arc-20160816; b=GMt5jsmC1wW80Hq6Nc/npfUuPm3WEPoPHLP7WMSQvCsCGGcVUGd+ASLfYSRs/Ag3cr FIqZiFHH9xkXE1h7vVJslsnrWc3pDPWGX56XMVrfFx0L6R8n3Pcnj5eZcsKeebLbtXrn cX0R7SX8fGXrkJMOf/Yk3cy/vcr4g1a8xwtIGQfjj6tZRE0dN4EwsBPD8qMjaRfWMD1E 5XIrQdlqBVUfj+c4QszbmQxd1Ipx+W6ZSvuZ/8gwroZYd1iLQMxnjkD27jtoofiifmUj 7PPx8xUtN2ESenxPpTf1M/eSQKV89ZaiibdPwjjTuTpnT+tULkgGq34JWGwwVuF8dB07 ZtrQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iYNb+3lcXJf+tmIIl6IAONhkS2Go6YZm3aE1o17Tx0A=; b=EBq0QjnfcGlsWNnaYEs/MpPbHRURAWpdYMcC/q0JuqKzOR5IkaBgkN991yC+2JAC3u DqW18relvZ47RXoLKQjTdneqgi8Uk+0mIxvSmIhRZ/KfUP6ZEV81F2nt6U9oWZv5Up0z CwH1k3KakOktftwvoBsVvqNbAt74gWW51quy78oXcXRPwFEn5gndv0KNj26l7RXzMJP0 G6X5EXcgJ+IGePETWC7kvNS/CVh164SUNIwlI0gQ2cjTjc6tAmGJB/aI/Jtu/gQjHDAI Ms8qpOlZPMuLSDhrcLp+I+32XWAfUK0ubVoNqTlWCyeNBrvANYi6C39be/b2+WNB57bQ fngg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=i6Q6AyW6; 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 qo12-20020a170907212c00b0098290468a15si1531338ejb.315.2023.06.15.07.51.57; Thu, 15 Jun 2023 07:52:24 -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=i6Q6AyW6; 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 S1344870AbjFOOU5 (ORCPT + 99 others); Thu, 15 Jun 2023 10:20:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344145AbjFOOUw (ORCPT ); Thu, 15 Jun 2023 10:20:52 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0747026A6 for ; Thu, 15 Jun 2023 07:20:51 -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-out1.suse.de (Postfix) with ESMTPS id B6F4D22419; Thu, 15 Jun 2023 14:20:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1686838849; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iYNb+3lcXJf+tmIIl6IAONhkS2Go6YZm3aE1o17Tx0A=; b=i6Q6AyW6froqh6nSV3dqpjOES93TieOrn6KNautrpznUQXQknQJXaBvo52jnrGscCDZcQd By/QcC1Qht88TU464BUEvMDSVMN0gcA6j+0rYH0Ztjd0+9qlVUi2r4BdZkl6hpA9T3E4lR k/BcVw+6IDMNQBL96wJiGXclpPkqmXU= 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 AA1A713A32; Thu, 15 Jun 2023 14:20:49 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id hODMKEEei2QpcQAAMHmgww (envelope-from ); Thu, 15 Jun 2023 14:20:49 +0000 Date: Thu, 15 Jun 2023 16:20:49 +0200 From: Michal Hocko To: =?utf-8?B?6LS65Lit5Z2k?= Cc: minchan@kernel.org, senozhatsky@chromium.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [External] Re: [RFC PATCH 1/3] zram: charge the compressed RAM to the page's memcgroup Message-ID: References: <20230615034830.1361853-1-hezhongkun.hzk@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 On Thu 15-06-23 22:13:09, 贺中坤 wrote: > > This is not really answering my question though. memcg under hard limit > > is not really my concern. This is a simpler case. I am not saying it > > doesn't need to get addresses but it is the memcg hard limited case that > > is much more interested. Because your charges are going to fail very > > likely and that would mean that swapout would fail AFAIU. If my > > understanding is wrong then it would really help to describe that case > > much more in the changelog. > > > > OK, Got it. In many cases I have tested, it will not fail because we did > not charge the page directly,but the objects(like slab,compressed page), > for the zspage may be shared by any memcg. That sounds like a broken design to me. -- Michal Hocko SUSE Labs