Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4834691pxb; Mon, 15 Feb 2021 02:28:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6/3xlMl8YrQ6CGZjuxkStFArvbw926vdLbDKjRX8yI2PfGOj2q4nSD/FvclE2CkOvunAJ X-Received: by 2002:a17:906:4a94:: with SMTP id x20mr895960eju.214.1613384889220; Mon, 15 Feb 2021 02:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613384889; cv=none; d=google.com; s=arc-20160816; b=Kz2Bxl3nHq9SuU052kHIl2iK38RKnaPajg/Oi1Jc6wrhg+WjNNPBWzAvufnDs1ubKa QqyjYh9EbQcHh5W45EgLTQ6Odtv10824VIeU3qmnERT5v7wKLxio4M3fg2oBqGDRI5GK R9Lnn1YPJrOjco7nMJffw0GWO+n2yiLfpipbnNnbmMvE2SB/synLIO5VdURZvd4ypZbZ G5g03czwVUGAKOMIh+o+ihjbiL7Y/tk0xaHidRFV2DpkZGc1OHW2rld86GlO4O5aRlfe QKZIGy+5UBgFTkRuD5Z/ws9fMh9X6QawzR0SE1Pyp2XiTtTPLNbYNoK1HKQqLZIIgYK+ EojQ== 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=S/uXPqP/TPAc7XRGUiDHNcqY2NlR0ZY7sWeSVPIWRdU=; b=tk7nRAbJAyumf34+SxiXKGnbiQks+CnQViRk491QN8XNuxGq6BBKRXkNCjdI09aMJA KqLkSiKilm2SdWBXvngh+b8w6AoEan0C70srRn+fG6Qti3vDI0tWnwuTUT9aFdbvoD4x 4niuSI4B0DNzOQC/LsE9Q2Eiyae+zxc41GvCku5Xd6NVRoxArp1b4DVKhqnTnOnfq4dc SUNfNMtfQZVi5bLVRfrNNOucAwO1rcgR10b8IOkaMKkPOtA+k+UxNO11oxnIE1a6+YaO 48Wd0lj30V2s9nE1H1VPTuKRwGsxUc2RH66m070ofDyX7W/b1+VeR7jiFEoq7dBLYoWf x+ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=byxFEEer; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n24si4240863ejc.17.2021.02.15.02.27.46; Mon, 15 Feb 2021 02:28:09 -0800 (PST) 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=@suse.com header.s=susede1 header.b=byxFEEer; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230138AbhBOK0H (ORCPT + 99 others); Mon, 15 Feb 2021 05:26:07 -0500 Received: from mx2.suse.de ([195.135.220.15]:35018 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbhBOKZS (ORCPT ); Mon, 15 Feb 2021 05:25:18 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1613384672; 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=S/uXPqP/TPAc7XRGUiDHNcqY2NlR0ZY7sWeSVPIWRdU=; b=byxFEEer+FNeRJefGNaijsTv6q5BgfdLMmDFs1e5b857DcUUx1kH37qGAJaiZMlddjghyP v/1T9hEEquxK4/1h+tm8tkcdDWZSzsP2N4T6I6up164j8+LGl2u6O9G5c5eob7Wgm8P00B kRekUTvPEJESkt1i5RxABRMr6shqbVE= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 394E5AC32; Mon, 15 Feb 2021 10:24:32 +0000 (UTC) Date: Mon, 15 Feb 2021 11:24:31 +0100 From: Michal Hocko To: Muchun Song Cc: Johannes Weiner , Vladimir Davydov , Andrew Morton , Cgroups , Linux Memory Management List , LKML Subject: Re: [External] Re: [PATCH 4/4] mm: memcontrol: fix swap uncharge on cgroup v2 Message-ID: References: <20210212170159.32153-1-songmuchun@bytedance.com> <20210212170159.32153-4-songmuchun@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 15-02-21 18:15:36, Muchun Song wrote: > On Mon, Feb 15, 2021 at 5:47 PM Michal Hocko wrote: > > > > On Sat 13-02-21 01:01:59, Muchun Song wrote: > > > The swap charges the actual number of swap entries on cgroup v2. > > > If a swap cache page is charged successful, and then we uncharge > > > the swap counter. It is wrong on cgroup v2. Because the swap > > > entry is not freed. > > > > Is there any actual problem though? Can you describe the specific > > scenario please? Swap cache charge life time is a bit tricky and I have > > to confess I have to relearn it every time I need to understand it. The > > patch would be much more easier to review if the changelog was much more > > specific. > > I copied the reply to Shakeel here. :-) Not helpful much. I have seen that reply before answering your patch. I really have to say I find it rather annoying to constantly get unclear and cryptic responses from you. This is a subtle area! Make your claims clear and specific so they can be verified. -- Michal Hocko SUSE Labs