Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1064764lqt; Tue, 19 Mar 2024 11:31:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3dX05BfJLzAT0Y8ALhBeCVtNX1sKsiYsZVYnyybMxV2IeO13IW4JoFYUNsudx/Qvqaj8hJU6xwDcZJiG7K5L7yg0sdi6GOJcLrz5G8w== X-Google-Smtp-Source: AGHT+IFRZ3z6Eb70Ft3Ll37PQzuglteDPCwJjEohihjLopY3M/CkGKBkK2KldsUrxqOBMWiOjkGA X-Received: by 2002:a05:6a21:a58b:b0:1a3:5093:d5f2 with SMTP id gd11-20020a056a21a58b00b001a35093d5f2mr15181163pzc.13.1710873064184; Tue, 19 Mar 2024 11:31:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710873064; cv=pass; d=google.com; s=arc-20160816; b=sQpzfuBVSg2Scr5f2X97lHsGtc+EVhQO+QqFuAftjwgqe+Wy1DmraboU0S0R31ku3Q 2XqDpnhPufHM4u7KN+HBaTfAop3J0Yay7q4DQpYXA1v4M2BmYnoHXiVjStaTl0bzR2/l HtvKBaSjgS0sB7XbRMTyUizMVrppgXgBZSyFxPbBiFm6Rpu04XEGZCujpD9jFuQObuWz 2ERD4IEljLonyDaD0lHAVTk4Vf9t8j5l+tGsl4lXjXbdyyECxUF43LMesgAqvlp4w14L oJuN07kGNQ55qDaqlH+zPb0uPQ/0ldaM89qSBLeEnnQQozj2X3gn4j74DkSJepNlf+sq eYRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=0Rw2uEgVepVXkvdzA8HFqFNjKTu2AlQBuAZXsdS6Koc=; fh=Zwu0w8KytVC1fzYZEPErc7a+g5rnqZSlALoo9anrEkw=; b=ztPoQic7pHTQqaBuXS2JcPBVVNlGEK5HOdzFp95HztkCZmhNC89957evFnV+etoE2p E0hdr0vHrorD97havVKihCh04V/FTPHd8PAZAva8kqvVrdjp79B0u8/8HETSSDC4ZNtT SVURHV7qmAgH4dc6KSvAjmeypkUGzs7wSWWtY9snNQn3Anqa1WK6X42ZV3WVOp38pmiM +y3PRzVldiK6lL1HPr5elIivohyZklJKBKrGngxtQM1jaz1Yb+w3FKaJfO5L1h4jfMl8 u4lWVFelHP/b8XZWK+0xps0Ih/JvZ1q59M+iIubP7qsMObSnupx+VHkyy7WLuP3nrLrv HsnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=caaEPWcP; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=caaEPWcP; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-108017-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108017-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u16-20020a632350000000b005ceb5338d74si10356550pgm.510.2024.03.19.11.31.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 11:31:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108017-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=caaEPWcP; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=caaEPWcP; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-108017-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108017-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DA74B28296B for ; Tue, 19 Mar 2024 18:31:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BC883771E; Tue, 19 Mar 2024 18:30:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="caaEPWcP"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="iJtQjLGu"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="caaEPWcP"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="iJtQjLGu" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50D52816 for ; Tue, 19 Mar 2024 18:30:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710873057; cv=none; b=DYRM7WrLp7ckADLSxcYe0fW5rke4jl5MQ0dFHKsuFeJvg9fcNrk3ZwfwOPK2FfGtnHrmJE5bGNyhQn1octUlVR1xqfNKLN4VSGWrd9vqVOupo5ldu20zLp4rSMK4LrQia4VH0NADqOUjiSBUs8dk0RO7ChIbfmataoKWS46ixeM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710873057; c=relaxed/simple; bh=OFc3Ox3ona3FpnPw9rQ0qg8ayScMwGveBKX3M9QwClk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FCx60XGjumnU0ZdKq6FU2K6SdNFh6xavddlvRY6HeC9ktwOfPbMJzFoc9HuvVPanSASZLTC5TlA/UvVupbKUi/34ACfGj7pjysoZoMjYrPP7Y5V5ULcnw4NVQSNaqoJh35GDqTttsH/ajRZNDPrlaAqt8uC72QEix0IG4ZGT1hI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=caaEPWcP; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=iJtQjLGu; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=caaEPWcP; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=iJtQjLGu; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 4B54E21E7A; Tue, 19 Mar 2024 18:30:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1710873053; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0Rw2uEgVepVXkvdzA8HFqFNjKTu2AlQBuAZXsdS6Koc=; b=caaEPWcPP1oryvPK0V0xBCqMnpJzIGO0JeZT6ATEWoaz+MOCNStaGHtvuOR3w6lw3dcEDn /HHDGhZZyVR5GU4YjQ8WHo11Q6CRMrDeIKV5S0hNJ2DaRRDHHgcAaaAFcIqR7zvBbCB6ih I6pajdlP5X62XsGduozbhEjmn2GuMqc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1710873053; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0Rw2uEgVepVXkvdzA8HFqFNjKTu2AlQBuAZXsdS6Koc=; b=iJtQjLGuKQjcC3jWZ5ixi8Gi4+sHrQfMzZVrejrwK/aiqPRMPv5zGGMAWVn4MKq++A7Z/R b7ijVR0yLoR8UIBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1710873053; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0Rw2uEgVepVXkvdzA8HFqFNjKTu2AlQBuAZXsdS6Koc=; b=caaEPWcPP1oryvPK0V0xBCqMnpJzIGO0JeZT6ATEWoaz+MOCNStaGHtvuOR3w6lw3dcEDn /HHDGhZZyVR5GU4YjQ8WHo11Q6CRMrDeIKV5S0hNJ2DaRRDHHgcAaaAFcIqR7zvBbCB6ih I6pajdlP5X62XsGduozbhEjmn2GuMqc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1710873053; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0Rw2uEgVepVXkvdzA8HFqFNjKTu2AlQBuAZXsdS6Koc=; b=iJtQjLGuKQjcC3jWZ5ixi8Gi4+sHrQfMzZVrejrwK/aiqPRMPv5zGGMAWVn4MKq++A7Z/R b7ijVR0yLoR8UIBg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id A2FC6136D6; Tue, 19 Mar 2024 18:30:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id CI/7JNzZ+WUcTwAAD6G6ig (envelope-from ); Tue, 19 Mar 2024 18:30:52 +0000 From: Oscar Salvador To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michal Hocko , Vlastimil Babka , Marco Elver , Andrey Konovalov , Alexander Potapenko , Tetsuo Handa , Oscar Salvador Subject: [PATCH v2 0/2] page_owner: Refcount fixups Date: Tue, 19 Mar 2024 19:32:10 +0100 Message-ID: <20240319183212.17156-1-osalvador@suse.de> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 2.18 X-Spam-Flag: NO X-Spamd-Bar: ++ Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=caaEPWcP; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=iJtQjLGu X-Spamd-Result: default: False [2.18 / 50.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; BROKEN_CONTENT_TYPE(1.50)[]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_SHORT(-0.20)[-1.000]; DKIM_TRACE(0.00)[suse.de:+]; RCPT_COUNT_SEVEN(0.00)[10]; MX_GOOD(-0.01)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; BAYES_HAM(-1.31)[90.13%]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MID_CONTAINS_FROM(1.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FREEMAIL_CC(0.00)[vger.kernel.org,kvack.org,suse.com,suse.cz,google.com,gmail.com,i-love.sakura.ne.jp,suse.de]; RCVD_TLS_ALL(0.00)[] X-Spam-Level: ** X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Queue-Id: 4B54E21E7A A couple of fixups for the refcounting part. From this series on, instead of counting the stacks, we count the outstanding nr_base_pages each stack has, which gives a much better memory overview. The other fixup is for the migration part. A more detailed explanation can be found in the changelog of respective patches. Oscar Salvador (2): mm,page_owner: Fix refcount imbalance mm,page_owner: Fix accounting of pages when migrating Documentation/mm/page_owner.rst | 73 +++++++++++++++++---------------- mm/page_owner.c | 51 +++++++++++++---------- 2 files changed, 68 insertions(+), 56 deletions(-) -- 2.44.0