From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Down Subject: Re: Memory CG and 5.1 to 5.6 uprade slows backup Date: Thu, 9 Apr 2020 16:24:17 +0100 Message-ID: <20200409152417.GB1040020@chrisdown.name> References: <20200409112505.2e1fc150@hemera.lan.sysophe.eu> <20200409094615.GE18386@dhcp22.suse.cz> <20200409121733.1a5ba17c@hemera.lan.sysophe.eu> <20200409103400.GF18386@dhcp22.suse.cz> <20200409170926.182354c3@hemera.lan.sysophe.eu> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=y6Uasohp5UNg9y1/Yu3p5ekTJRoqFqD2BtsV4x2pR0I=; b=tJwqs1khMdMVGEMNLiUcBFTGDIqguzpIzMsPiVfg5EgAVW+WBMfkKjP9HYUIcxsifN nsXbYQC6zM5zGRKyPS3TB+E17ssyTm5obRD54tsO2bPMp28xtlfhLAghjMBTOJqJgEcf piGAgYTIBDk1+nNYj+lZh0bX/P4UwSupgOjn4= Content-Disposition: inline In-Reply-To: <20200409170926.182354c3-pDZhbqX7CfkoGc32E1+a2S4z1YicLaQ4@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: Bruno =?iso-8859-1?Q?Pr=E9mont?= Cc: Michal Hocko , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, Johannes Weiner , Vladimir Davydov Bruno Pr=E9mont writes: >Could it be that cache is being prevented from being reclaimed by a task >in another cgroup? > >e.g. > cgroup/system/backup > first reads $files (reads each once) > cgroup/workload/bla > second&more reads $files > >Would $files remain associated to cgroup/system/backup and not >reclaimed there instead of being reassigned to cgroup/workload/bla? Yes, that's entirely possible. The first cgroup to fault in the pages is=20 charged for the memory. Other cgroups may use them, but they are not accoun= ted=20 for as part of that other cgroup. They may also still be "active" as a resu= lt=20 of use by another cgroup.