Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35539570rwd; Mon, 10 Jul 2023 08:51:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlFZk5X/RVglTMzJMNKtuiC/X89VxBRLkHUfax1SCDvDdV4uY3mqYIBp9KucE8oXAOqHZFIT X-Received: by 2002:a05:6a20:1591:b0:122:cb18:2e8c with SMTP id h17-20020a056a20159100b00122cb182e8cmr19956090pzj.6.1689004308633; Mon, 10 Jul 2023 08:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689004308; cv=none; d=google.com; s=arc-20160816; b=pn3i+TDdsyCCLzzGbIzu/ONdIVPf+nxeLDNcE8vs3AbUrGNzu3W0FhV87x1iNaYYNL sxvtXQAxd/3KpUJ0EoMHLg4LXqS5qQpopYI9vlq5wMNgnR9/KhPadZV1KYJCFR0nGHmM 87BES44tetd0a1oecaI5rBuMrh1bKf8SdBl9gP2m0jVVld+X4vsz5GvR3PSKVoVBua6O TK2PPj2WF2LK4CuBZX1BftKeMGYmqlX4Wd22hugnXQPuWot8HgHA1Buy4lqbn7IMv03V x3FV54gHJ5t+2hHpNrwyMdD+CRsGnaZbiVbbr730u6AnJeCycwjWY0K4reWHbw+eEHeb 6OMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=s+/YcQCRVAMC3uxlTAjtK+T4rp7Ar9BSkj3c7yhcSws=; fh=h0kQsJhtYA3Q8xmJZmrfszQqSQU8m9TBo5AopfUYmPQ=; b=vS1dztXCiiW0XeVQ4M9vnOJRX4Fh68j4csLc4GCNwvOnMdKLD2ysQCmjNPzhls1HGK 7wlyzlDUC9bUpeatP+LEQRhIuirjm3Y3dVZHOltqoQa1+jMWf5vDGSs+hxq6Gm++FbaJ urTLlzBbkKJJOe5C9S3eWKN6NxQlVXiqztZsOrmOxws40JYqS2R6zwEh2DSOIQztd5bz tNnds04llD5eKjUT2Xom9ZhKoQX5oBifUn04NqhLuid+jRrfpg5vLDOZF59Uc20f/RI2 8UIxyfJYDKScuxTBlj01TINTok1aUuI3hU+3LQ1Q54hNBWtilL0L9MKvKm7goUzjboiA empg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=CA2qjHQm; 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=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a635a4b000000b0053f479ef142si9013205pgm.124.2023.07.10.08.51.34; Mon, 10 Jul 2023 08:51:48 -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=@bytedance.com header.s=google header.b=CA2qjHQm; 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=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233379AbjGJPDk (ORCPT + 99 others); Mon, 10 Jul 2023 11:03:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232830AbjGJPDj (ORCPT ); Mon, 10 Jul 2023 11:03:39 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E926D135 for ; Mon, 10 Jul 2023 08:03:12 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4f9fdb0ef35so7254052e87.0 for ; Mon, 10 Jul 2023 08:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1689001391; x=1691593391; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=s+/YcQCRVAMC3uxlTAjtK+T4rp7Ar9BSkj3c7yhcSws=; b=CA2qjHQmp/6RINVxFfCvkZrngo9AeGbQmh1m2SDfYL/4+ka+WXjGyZc+VqcDpywAoU k4p8xod0o5kFrmQb5Hbp2gZVbJOhRMoMRK9XvN453JVQp0OfauCaCOmExXexqE+2/oD8 dHjGZg7NH/EkSk4uoIaDRgO61ql9AF3ckszzeLkJ18C/ulIzSkydPlpHwayufit8elIo UnXGn1jEDtP1bcob1aAuCgI0RcGaURVQAPywLR9phHNos2/9nsp5FQxvRQQo2zUwq400 PIHQkX+kILeq2t6ZW5gToXMIujrUcKJJmxVG+AC5AWwb9v1m3uYK62PyRHoH1MIFXcsN j6qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689001391; x=1691593391; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=s+/YcQCRVAMC3uxlTAjtK+T4rp7Ar9BSkj3c7yhcSws=; b=Smu+dwMaouJTSRw3gMtiCYux6n1TZc8IVpKZKlPhMGu0M5qt5V4ms+5IFfpNtxrC2Q rgffqRKi4v9hxhS5034s/5ajf1NFfVxlewdhcARxviGF93fXKA2ZyTRCz4pQFunmYST/ wGN3KAxN8xLlgptUxsRunmDWLpqS9wdGuB02XY8MSXQ4v8l0ZytD6h1Pfmj0YuHYxEw5 Nw69pB2t+zxEpzZ5ZkHc2BrFEtSjAHlPkAscs0luEzKelKOw2pp6g/br42EqNCPyLZ4f QltAbMBPBPdaSe1NSORaqBDjF8rCtwlLsWsn+OZi5OQOm9YyNhRb0tZ0yF+QBRe42/VY dHbQ== X-Gm-Message-State: ABy/qLZjRtNikieO/L9l/NJHaj6/n/Ss1O6omziNxsjhhM0DsbM+abjB hYvzLcRcNJRr1jKEy/wBWQgA0hG84hBWsPjv189CbQ== X-Received: by 2002:ac2:4e88:0:b0:4fb:8ee0:b8a5 with SMTP id o8-20020ac24e88000000b004fb8ee0b8a5mr9216185lfr.46.1689001390958; Mon, 10 Jul 2023 08:03:10 -0700 (PDT) MIME-Version: 1.0 References: <20230707044613.1169103-1-hezhongkun.hzk@bytedance.com> In-Reply-To: From: =?UTF-8?B?6LS65Lit5Z2k?= Date: Mon, 10 Jul 2023 23:02:59 +0800 Message-ID: Subject: Re: [External] Re: [RFC PATCH 0/2] zram: objects charge to mem_cgroup To: Michal Hocko Cc: minchan@kernel.org, senozhatsky@chromium.org, david@redhat.com, yosryahmed@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,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 Mon, Jul 10, 2023 at 9:35=E2=80=AFPM Michal Hocko wrot= e: > > On Mon 10-07-23 21:16:42, =E8=B4=BA=E4=B8=AD=E5=9D=A4 wrote: > > > > > > OK, this is an important detail to mention. Also have tried to get so= me > > > numbers of how much excess is happening for a mixed bag of compressib= le > > > memory? > > > > Yes, I've done the test many times. The numbers of excess depend on th= e > > compression ratio only. The maximum amount will not exceed 400KB,and wi= ll be > > smaller than the hard limit finally. > > Again, important data point for your changelog. Thanks, more data will be added in the next version. > > -- > Michal Hocko > SUSE Labs