Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp750057pxb; Thu, 23 Sep 2021 09:49:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK4ULf95VQZ/Y2zZBGB/e9e+GfNJ3IP8lFrbOSca9dCWgGs95BZbarPGbYVmpS5f4BC338 X-Received: by 2002:a05:6638:2050:: with SMTP id t16mr4823282jaj.101.1632415755748; Thu, 23 Sep 2021 09:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632415755; cv=none; d=google.com; s=arc-20160816; b=AfleR0qe48mrgJ+b16lK527ZpagJ/69E6NkrgunOQ+fTth40dhtRHvw4Sir6Wbu4pX i4B5WHlwsBCqj9EVfKB5nCxA2QZuqotHrAVHsFzjy+U3y/FcYW8Njfq1rtk6hVArgCOR /QnVjMnPzB9KgdBiEBwVsVqTYzzRhw93w2io51LM3hHf6j16wS7f++HxQS5jMEpmWH3t nWT7OMEU7Ll5LXNA9QrFCb5KM8fAnYY4oRb7emTi2dfnGV8fywpblUpcO5KXgJNOsBKV k1f+ta7haiOkgCy0EnDLSbtkCW/fGG2f6vtt6XCvU6cduTmOGOcfkNk+gYmWoUU7Vps9 iCEQ== 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:sender:dkim-signature; bh=XwHjIKgk8eS5XqWT9Kni8aRMXAG2u3vYTTL4J9FiqpA=; b=GjtCZ19X9OEzlBGJqQMc7EOwyCOs11diWt2ee76gBa7NBFBW3IOhrnZLhiLFF9Mjad xB0IBPV45dSWnPMEKWDf65M8nflsN1YCpHA2CugsLUoH3mTrM9CbnZu4yYO8zDaS19G7 HxmhiKU8Q4wa5FaBaISG2BxrDi99wLRS7ipa1xcqW8cFuGhZqsE+f43eT7Ty1aefx5SX xx0rdHBot7JUc/EkftPfQVs1VSIgdzQJAtT/CmyybEaMux4oCZJRCJ+thD4dMY9uLjbw k2Al6f9Tm8quY4LGH6G8jgrknUzDBfUBn/bdOPDSbxkn/8fQnb+SJNfRPEYpHWAYPUf9 bKGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ddv64i+E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k64si6919901iof.8.2021.09.23.09.48.39; Thu, 23 Sep 2021 09:49:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ddv64i+E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236946AbhIWQtX (ORCPT + 99 others); Thu, 23 Sep 2021 12:49:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbhIWQtV (ORCPT ); Thu, 23 Sep 2021 12:49:21 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2C53C061574; Thu, 23 Sep 2021 09:47:49 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id h3so6932388pgb.7; Thu, 23 Sep 2021 09:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=XwHjIKgk8eS5XqWT9Kni8aRMXAG2u3vYTTL4J9FiqpA=; b=Ddv64i+ECH4vNrICBPZ6G1kSfCtqM4SyCDR0/CB68ZcWQz+6kFXeawJLWSKKvabO0Z 4SIPcnE62VJNJ8ELF4WiUDmaGnC/ehZiogL6JGUpA/nR1liLJSH+pSlS/SsIuSNjV68S o2yz4xMuH9fbvzWarjb9ONY7BgDIxmfFd0+0mY4U3yTY3PXWoieaW+51bJiYA2ejlaVi KTEnFVMiptzuB73V0TkuD5CeoDyT78hr2MRm9LRphRA2ocGdcr/b7R96qChDjhmfpNgE 9CyHS/KRZj0tLBeqJFR9Gzmuou3HCmqdAf/XJ/Kp3lWkLY+/VnpeY8AmBnFKJGPAO2xw C8IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=XwHjIKgk8eS5XqWT9Kni8aRMXAG2u3vYTTL4J9FiqpA=; b=xSuRzDLIir690Fh0/hYydSptLOb6+lWkTRXA7Y8uGzKOCJiUZHSjpg0lE1GRMNf7IY iHbxJYD5CkCfkjUiXkRzuoDrtHZdAIkXI+3wCryetS8CKNu7TM8Hz4UQvazGe5z2JQq7 /+0EwHRZQnCd474CEmLc39jhaGR1tyF9qMy9HxFqF9F7DBe6MCNPHOZTREtHAJp9z8LW pmnO9NExN6dPKCnDOcgK3OfPQuzRQqPtFsfNmM9xJheiqtbQvbDL6E5BlN+BxpGfxkLd NfaPmMaxAMHHTly0RtrrW8UWnujLbzJznCpiU3dub4fCTfZ58wyzok2vy9N+ICjy/ye2 2xGA== X-Gm-Message-State: AOAM533gYd+GXTjUoPAe25CzZI3HMz590qQyyasW0dCX0AaPCAGMFj49 G4p/zwuLuJv4vbxZxJH1ltM= X-Received: by 2002:aa7:9e9a:0:b0:43e:d9b:cd93 with SMTP id p26-20020aa79e9a000000b0043e0d9bcd93mr5515716pfq.50.1632415669453; Thu, 23 Sep 2021 09:47:49 -0700 (PDT) Received: from google.com ([2620:15c:211:201:5571:502d:54ea:90d6]) by smtp.gmail.com with ESMTPSA id j3sm6361857pgn.12.2021.09.23.09.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 09:47:46 -0700 (PDT) Sender: Minchan Kim Date: Thu, 23 Sep 2021 09:47:44 -0700 From: Minchan Kim To: Brian Geffon Cc: Andrew Morton , Nitin Gupta , Sergey Senozhatsky , Jonathan Corbet , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-block@vger.kernel.org, Suleiman Souhlal , Jesse Barnes Subject: Re: [PATCH v4] zram: Introduce an aged idle interface Message-ID: References: <20210917210640.214211-1-bgeffon@google.com> <20210923130115.1344361-1-bgeffon@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210923130115.1344361-1-bgeffon@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 23, 2021 at 06:01:15AM -0700, Brian Geffon wrote: > This change introduces an aged idle interface to the existing > idle sysfs file for zram. > > When CONFIG_ZRAM_MEMORY_TRACKING is enabled the idle file > now also accepts an integer argument. This integer is the > age (in seconds) of pages to mark as idle. The idle file > still supports 'all' as it always has. This new approach > allows for much more control over which pages get marked > as idle. > > v3 -> v4: > - Remove base10 restriction. > > v2 -> v3: > - Correct unused variable warning when > CONFIG_ZRAM_MEMORY_TRACKING is not enabled. > v1 -> v2: > - Switch to using existing idle file. > - Dont compare ktime directly. > > Signed-off-by: Brian Geffon Acked-by: Minchan Kim