Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35364618rwd; Mon, 10 Jul 2023 06:32:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlGXGOmt3kiMO9z2iUpu/JcZKUOhVI08KUNxLeE4SMSBCF9txf9RREEIGPMt5iaNGdRIzNlz X-Received: by 2002:a17:906:289:b0:991:bf04:2047 with SMTP id 9-20020a170906028900b00991bf042047mr12766895ejf.14.1688995922080; Mon, 10 Jul 2023 06:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688995922; cv=none; d=google.com; s=arc-20160816; b=nz5J9vhI63ruoyymNl0NB/cJuB6xX61Tr5p89JnR4+ltFE8F4cWkkpQ9lpcFBLnRgJ WPX5PAkMlu/hgGCfavGol5qrJuSX0Atn5Chywj2WzbVd4QH+nXrdnM2zVQf9umKMbT4C NskYZZAK8Jokdv0mv2iaQ3vhd1Mf5Ki6TMRYkL3Mrv3/zkrnW8MUuiqDicEne7JdCzac BccYtTUSqGt3LaRv0P5SMbuLNT0/O+zjSB4+ofxo5AAzpyehZ7GL1eDRKJEriVy9nkLq EfM0eGV/kNq7GMeP/O/sAQeknK/OvsxKFcQHx7b2K1eeVI5aiqKasItQKCrDb3avWoJb q5Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=F4n0uH620C2sWk1GmzpQB7W6JnujnPRr8xlLs9TDOuw=; fh=h0kQsJhtYA3Q8xmJZmrfszQqSQU8m9TBo5AopfUYmPQ=; b=cCgEMzs/fJEhYS+IzaknHAqFzd+imy0/N66dNgAt/cuBWPvOx6H2MMMNeav5Do02Su wc25T8Jx2l36HK/qy5OkQ5PxvlPFA0ICLQ6zF/KwT5bKtH2jNGgBM6hAeBRkzk+Ftajq fWdiBSiQF3iqUvEA1eb8izw49xqij+gTS+7hjSwykT/WnvfCqxcrkwKBHWodW2M4fZGs gTYJPdGNp7InqasVdxsdT9JPGj+diFz6XgndwpnkInYnaWx6dpV9Oka75o37h9wE1Ctx /23L1EM8SdM5WNyYcjK4u9NazKqxCVVRYAN7xQ8EExuJK3/4NL3xDvltIe2MBb0ADHmY t9IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=UHFBRtl6; 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 r5-20020a170906350500b0099302221714si10019761eja.790.2023.07.10.06.31.31; Mon, 10 Jul 2023 06:32:02 -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=UHFBRtl6; 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 S230345AbjGJNRW (ORCPT + 99 others); Mon, 10 Jul 2023 09:17:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbjGJNRV (ORCPT ); Mon, 10 Jul 2023 09:17:21 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56F9AE9 for ; Mon, 10 Jul 2023 06:16:56 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4fbc0314a7bso6963424e87.2 for ; Mon, 10 Jul 2023 06:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1688995014; x=1691587014; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=F4n0uH620C2sWk1GmzpQB7W6JnujnPRr8xlLs9TDOuw=; b=UHFBRtl6stRiqdz+gvR0Ggfua66yR1rcgejJmNDmKj25AqPb0Lo3RljiAOsydCV2xT 1AXHRyZoba5W3p7Z0MDUhTptDC0wlJd/zb1adRVOe2aS2uuvkvXNgTCljRGRU7SdHN1a POkQz/8qmaeO9lHZdKlWzEUGMb1C7VGd5sYyWBrU1z+pPCjlYnXih/seJGfXwKFNit33 n9zPqN58mdbanfR7b1/v1idIhmJvqcOeZDQszOZ/DoGzACBG2XWfGZwfZNWVEa/YB2nV 3qsGlCJEOubBVvRBYv+cpvo+Gcl7oxo9q/3J0evbOBZuwOLMObqRME71/h7ss3BRhYsb hmJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688995014; x=1691587014; h=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=F4n0uH620C2sWk1GmzpQB7W6JnujnPRr8xlLs9TDOuw=; b=QfruU0OwSx2P4XwBGL3KI+uryjkO00P8AvrPhSJ3rOFcGsE0Z0LMC/j982/vWOhcLY B1BBMh9W50EaDV5j74ofB2MsvGskoguS+Sv9IQzvaqUcIbeaagKwo9VhqflPWQJMSoUj 7WYXtf23bXdqXu69QbgHCfBiafh8kxWHGCvOme+9OIMgP6aLZAFSsXNhwRMpFiCmBCwi NXXrLKzpMpuxBDuNNrtdfBUsgT2H9IRwgcNrBI6vJzxmkeaWki6oKDc5ktHj72mxioYh dx8tVdYWoSpdloZaWlUbJ2Jh8SYFWlJ15Og4XnUcOHX99pxdE4sLwESI0OM04M5V4Tu/ pcBQ== X-Gm-Message-State: ABy/qLZWbK8NmMnBHnuOKd7acnVh3bQCoW7Sv9PM39XP04L/y8ePrO/q fVUPv3T/+WsPZQDajfcJM5KhlwoY4filjEOn0FvxSA== X-Received: by 2002:a05:6512:32d0:b0:4f8:6dfd:faa0 with SMTP id f16-20020a05651232d000b004f86dfdfaa0mr9434275lfg.2.1688995014501; Mon, 10 Jul 2023 06:16:54 -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 21:16:42 +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" 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_NONE, 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 > > OK, this is an important detail to mention. Also have tried to get some > numbers of how much excess is happening for a mixed bag of compressible > memory? Yes, I've done the test many times. The numbers of excess depend on the compression ratio only. The maximum amount will not exceed 400KB,and will be smaller than the hard limit finally. > -- > Michal Hocko > SUSE Labs