Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp71786lqh; Mon, 6 May 2024 11:35:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXAVUCcNcpx2UX8KQMVbtEZQBVafN5D96kFuE0xi+8RIRQ93100IWpsbnXNltXaXIJ0kVlTtz5Di/OSnin9AK3ROppcySFYddB0IW9dWA== X-Google-Smtp-Source: AGHT+IECIIo3SLmiF/Mxwgbl2MBNO07TezfqLzwSys8+DWnvNOlJjSJ8wyqmYfdnaerMbPXgoMdh X-Received: by 2002:a50:cd8a:0:b0:572:a7c8:f12b with SMTP id p10-20020a50cd8a000000b00572a7c8f12bmr356807edi.13.1715020556188; Mon, 06 May 2024 11:35:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715020556; cv=pass; d=google.com; s=arc-20160816; b=Bn5wls33QkGIKYHN0k0xTwX0aZgGQviCHOxfa4IuA0QaE/rgO/ZyBIQy3gQr0onP0g e785Yqbm9LkR16E4JQ+4VaUoBEqvsC2AqhILsLOp4MHH8Ul7ZWngQohza4V+9Dd0cOXU 8SNulMGUfvGWIxzKuFWY4FshatmJUezxM901ndB1ejDssrYpQQnu0tI5HAUykSOTXocu qFmYEM863a6FS7xfFbiZo0UI5W2t/g7rKiW6R7Uu11Z+RIr5sC2Vldx9I6zx0wnu8Z5Z +0QwU0o7SmAUFwdvT0K9db7/WqcUf5g6ftBq0t7ud1cer41eY2soCzqAPLOH6Mr+aFkM /itA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:from:references:cc:to:subject:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=Y+39y8W7bsu1hCnW4m16/3q+glmJjCJshByFNqIk6Vk=; fh=Bc/zLqrjCDrCaEmXr2pnjiTU8Qsa/Vvb4a0towoYAY4=; b=PjwBAJX+17NT+M2MaJo1kCn04V4+jsauWnEIxz5s3ju8mH0qpfSgcFwT/b+Z45W5Ab gy/c0f3OsLPXwqdYIFfKfOcV9B/yCJ953hZXP3elJSaUJFPuoX8t+DODDp5lqShcTU3w yrK2tjkRUBYCWKILGcexnmOrvEXSmiQrAV98mW/nB0ql+UrnZDpx43fcnpOwtrDQC8a3 lOs4JX3rKAEh8GDzbOIHBxHRVrCjHGHYUWq+SO4gMnytOciiSRaq6yuFDghxMOifxkVs 65SQH+pB888UkPTScpb/IX7lp2U2ZBh3kc51tQoOal8seYT+SZIgp7WVZXySiY4OumQ7 yRBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PJoocT5+; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-170294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d23-20020a50f697000000b00572a873067csi5313713edn.150.2024.05.06.11.35.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 11:35:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PJoocT5+; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-170294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B5FA91F23DEB for ; Mon, 6 May 2024 18:35:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 211FC158A25; Mon, 6 May 2024 18:35:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="PJoocT5+" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 851EA3D984 for ; Mon, 6 May 2024 18:35:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715020547; cv=none; b=bk+pDuopHzgOG6lYDOXSWUcF8BCyEemTfZFf8p4VDN00yO2j+57vwGX/ZqAXpEbNyWN6GVEBfA/e2AcTwVBs+8jM9lGyLbQ8uSwUwXuqd9kPrMDmwTzwG/ewQEUCMmnrqGkx0Xu0XO0eKi2P73VS/QYq3b9iC2ZT3FgeDV1CM4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715020547; c=relaxed/simple; bh=w1Ok1PZtcA0Wz3v3m7VLI1e7DxHoMqFMBoqnyqSlDIE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ICe4IGcE6JxNhPDstpMddPZ5QAZng4inRbDBXzlczzaHG60yPCZM7tGyJHPJdteUmqrZsYDeDsks+GWmflSvO5QDaUlBfIo6gP2zZZ5wq8qKrOchp73r1pUqdBWzLP5wnOYh1naoXJyaAf5Ghr4TYeqJMxqVrf2IkbfkSyigOGs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=PJoocT5+; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715020544; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=Y+39y8W7bsu1hCnW4m16/3q+glmJjCJshByFNqIk6Vk=; b=PJoocT5+JYoDIEKXImmIGTXQ9O71Gaak51lPtR01qM5kDhZD49USNK46XhS5jAEI9d5AfW 72+H+jtLudizT62y/H6GpjHul3mZJpxmIzMe/kuScwbHC1z8J9QOLlKjs7lQfWZxEtAsow GxiEsr0kb+2GPNlcp/W8+tmGuMy8+xE= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-344-EnzGrt_kMHOzm0mvM5ov1A-1; Mon, 06 May 2024 14:35:42 -0400 X-MC-Unique: EnzGrt_kMHOzm0mvM5ov1A-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-41dc9f97c7eso23154125e9.1 for ; Mon, 06 May 2024 11:35:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715020541; x=1715625341; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:from:references:cc:to:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=Y+39y8W7bsu1hCnW4m16/3q+glmJjCJshByFNqIk6Vk=; b=V4mXKSTGUlhOzNZp8tUMSPxvaY1WYNFHaXNMI2n2pzsiBH5Pg0o+f0SChHDoJPlfd/ aSOSFdLWetYchfoOFCzgX0JMb2fYDUlvZBL+uoRVDSDsR0dO9dKnmZtk0Ygh6Yqa6w4w fyhx1HyRSFXAFxSbhjYa1U/OHhKo6NngsOjGYkrHXZgw+9YoIneSocibmV4FUsLxZ40A C+QsYjG0RmT878D5n2EGhKBnX3C89ujxcU9LAX84PhfQCdDRmmZv/WQ9XfiOBDbbc0eO +ozksTHnGYBCElbwdFZWrS4zgLoaufZo1R2WhCV7JBkenm3sXCaqC3vBVNvkNFySn6Jx ryWA== X-Forwarded-Encrypted: i=1; AJvYcCW+iIKH5k9x0F2GjBpc4mXQ/WMQVHyJhjHdeiY37KnWn27EsY1/5WmkU9wszSZXcSQZDkOS5k3c1cdsHSivw6lil5PCp6KMEFct+qf2 X-Gm-Message-State: AOJu0Yw6pTyyZvKG07Ph1vhRS7tWXQrPb/is7Oj66++CmrDUUITaMoKT bKazuHsw2Ewhx4U4HELgamMJGMv8/dnkBRWT6DGyJWdCH1JtsQ1W0rCOv453PctsMEBPhhKH4Qi HRdRSLCRoufJ/cOg71Hbd9SyMBQ5DQpnA3K8zm0Z7GYpJFjGmLCeYRvdUen3QNw== X-Received: by 2002:a05:600c:5128:b0:418:3ea8:46c0 with SMTP id 5b1f17b1804b1-41f2da2d4bcmr4054795e9.13.1715020541364; Mon, 06 May 2024 11:35:41 -0700 (PDT) X-Received: by 2002:a05:600c:5128:b0:418:3ea8:46c0 with SMTP id 5b1f17b1804b1-41f2da2d4bcmr4054605e9.13.1715020540974; Mon, 06 May 2024 11:35:40 -0700 (PDT) Received: from [192.168.3.108] (p5b0c6c2e.dip0.t-ipconnect.de. [91.12.108.46]) by smtp.gmail.com with ESMTPSA id k5-20020a05600c1c8500b0041bab13cd74sm16901414wms.17.2024.05.06.11.35.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 May 2024 11:35:40 -0700 (PDT) Message-ID: Date: Mon, 6 May 2024 20:35:39 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] mm: do not update memcg stats for NR_{FILE/SHMEM}_PMDMAPPED To: Yosry Ahmed , Andrew Morton Cc: Shakeel Butt , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+9319a4268a640e26b72b@syzkaller.appspotmail.com References: <20240506170024.202111-1-yosryahmed@google.com> From: David Hildenbrand Content-Language: en-US Autocrypt: addr=david@redhat.com; keydata= xsFNBFXLn5EBEAC+zYvAFJxCBY9Tr1xZgcESmxVNI/0ffzE/ZQOiHJl6mGkmA1R7/uUpiCjJ dBrn+lhhOYjjNefFQou6478faXE6o2AhmebqT4KiQoUQFV4R7y1KMEKoSyy8hQaK1umALTdL QZLQMzNE74ap+GDK0wnacPQFpcG1AE9RMq3aeErY5tujekBS32jfC/7AnH7I0v1v1TbbK3Gp XNeiN4QroO+5qaSr0ID2sz5jtBLRb15RMre27E1ImpaIv2Jw8NJgW0k/D1RyKCwaTsgRdwuK Kx/Y91XuSBdz0uOyU/S8kM1+ag0wvsGlpBVxRR/xw/E8M7TEwuCZQArqqTCmkG6HGcXFT0V9 PXFNNgV5jXMQRwU0O/ztJIQqsE5LsUomE//bLwzj9IVsaQpKDqW6TAPjcdBDPLHvriq7kGjt WhVhdl0qEYB8lkBEU7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k+mZuPxKNVfEQMQ a5SxUEADIPQTPNvBewdeI80yeOCrN+Zzwy/Mrx9EPeu59Y5vSJOx/z6OUImD/GhX7Xvkt3kq Er5KTrJz3++B6SH9pum9PuoE/k+nntJkNMmQpR4MCBaV/J9gIOPGodDKnjdng+mXliF3Ptu6 3oxc2RCyGzTlxyMwuc2U5Q7KtUNTdDe8T0uE+9b8BLMVQDDfJjqY0VVqSUwImzTDLX9S4g/8 kC4HRcclk8hpyhY2jKGluZO0awwTIMgVEzmTyBphDg/Gx7dZU1Xf8HFuE+UZ5UDHDTnwgv7E th6RC9+WrhDNspZ9fJjKWRbveQgUFCpe1sa77LAw+XFrKmBHXp9ZVIe90RMe2tRL06BGiRZr jPrnvUsUUsjRoRNJjKKA/REq+sAnhkNPPZ/NNMjaZ5b8Tovi8C0tmxiCHaQYqj7G2rgnT0kt WNyWQQ== Organization: Red Hat In-Reply-To: <20240506170024.202111-1-yosryahmed@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 06.05.24 19:00, Yosry Ahmed wrote: > Do not use __lruvec_stat_mod_folio() when updating NR_FILE_PMDMAPPED and > NR_SHMEM_PMDMAPPED as these stats are not maintained per-memcg. Use > __mod_node_page_state() instead, which updates the global per-node stats > only. What's the effect of this? IIUC, it's been that way forever, no? Fixes: ? Do we want to CC stable? -- Cheers, David / dhildenb