Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1161946rdg; Fri, 13 Oct 2023 12:05:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdzGqqrNgHakfgn+M9bY5kBJm/nlpg/uHpGmaz5bZZs/pkc4BIjNQQMzykuYoFGENn1eFW X-Received: by 2002:a05:6a00:230c:b0:68a:6305:a4cc with SMTP id h12-20020a056a00230c00b0068a6305a4ccmr32869108pfh.5.1697223922608; Fri, 13 Oct 2023 12:05:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697223922; cv=none; d=google.com; s=arc-20160816; b=SM7rC6r7e6b/ABe440q7Re2gSOZ4DbDuBTzxUpjqw1UdD1prS8SqVqbuSFoN0YTAIc ozUQTJ7Z0rPr+aFRlCxxS4HnX7grFNQWEzNxxHg5KDscKlE2t2mt+2GSnZJSNtgLzHIl 6FPYJGpdMtf1oPkHPR2bETQIw0+67a9ISijQzDYqRc6DT2sVTefyGRQM1UKT9led+Cll 3Ri348ZFkyN2RAT9p6Kq5y0lOygG9hWDYv6dea9Sy08TqKStDHg4l56CrVuqYGOWjAKl CRv59IVpW5+XlCTxcC+Ibiaprq+McB5sw9NZ/wHm+c/qZv6g+EbrKk9/odMlQj0rYpnm PYjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LSa8RIfB8HUiukXJoFl/RC9egsbX37Hy7RQHH6IxQsg=; fh=YslCjvlXkGsdmqLq8rTUMG5flN38yHruc56T4Q8Q6OI=; b=hcwwRldNgiVGl2VtJB/mj1ri5jhNUdPN/WcRYcGF17q8ICLyd33Q6oKtHTS5XmEWv+ xbbuJFqMMkupCWq9Kq2G2i9q9cFT3oONkFobx/q6IrzmcBAbmnUQDx/OOjfa7qS5sL94 QkJEBr3C+MS9lWFqWAV7sIsHZpc7QEZsjepbA7z6LX1KftzRfJ85U1mC8Q2puAGYYdI2 RZdkYaytQNLF63KDkom1U3QuPspi3gmU1J6hhrGdSyaVGP1T6jTdHoQJZv5SCE5WZ0/M 3A5W20KrdHtkDvBxvxR44mvEsiskEFKGOFKFZqtcEWK24dHCMNodMVXqre5bmlfR+PHq uS9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=P3CrLiBS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id cr7-20020a056a000f0700b00690b8b03454si404387pfb.234.2023.10.13.12.05.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 12:05:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=P3CrLiBS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E7FFC80C8409; Fri, 13 Oct 2023 12:05:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231680AbjJMTE7 (ORCPT + 99 others); Fri, 13 Oct 2023 15:04:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231596AbjJMTE4 (ORCPT ); Fri, 13 Oct 2023 15:04:56 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68B1183 for ; Fri, 13 Oct 2023 12:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697223853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=LSa8RIfB8HUiukXJoFl/RC9egsbX37Hy7RQHH6IxQsg=; b=P3CrLiBSZKNP5B32lBoKwDGC/wN0CdnZCJwg3lubKqE5jqStHJMe/knWV1gwbwdw8CsI0i NKr5fVAU0GBkeVRip3OnkHJ/fjKsutPD/3eRsh9C613qCrtXyHBfA3hGMOYcpL/oFi/rsS w5wGe+PQ3vzXZHG6fnLf+aAvozREaTk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-459-iJ50zH8INLqQ5QE5w3DiAA-1; Fri, 13 Oct 2023 15:04:06 -0400 X-MC-Unique: iJ50zH8INLqQ5QE5w3DiAA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A3114801E62; Fri, 13 Oct 2023 19:04:05 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.33.110]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5FA522157F5A; Fri, 13 Oct 2023 19:04:05 +0000 (UTC) From: Audra Mitchell To: linux-mm@kvack.org Cc: raquini@redhat.com, akpm@linux-foundation.org, djakov@kernel.org, vbabka@suse.cz, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] Fix page_owner's use of free timestamps Date: Fri, 13 Oct 2023 15:03:44 -0400 Message-ID: <20231013190350.579407-1-audra@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 13 Oct 2023 12:05:17 -0700 (PDT) While page ower output is used to investigate memory utilization, typically the allocation pathway, the introduction of timestamps to the page owner records caused each record to become unique due to the granularity of the nanosecond timestamp (for example): Page allocated via order 0 ... ts 5206196026 ns, free_ts 5187156703 ns Page allocated via order 0 ... ts 5206198540 ns, free_ts 5187162702 ns Furthermore, the page_owner output only dumps the currently allocated records, so having the free timestamps is nonsensical for the typical use case. In addition, the introduction of timestamps was not properly handled in the page_owner_sort tool causing most use cases to be broken. This series is meant to remove the free timestamps from the page_owner output and fix the page_owner_sort tool so proper collation can occur. Audra Mitchell (5): mm/page_owner: Remove free_ts from page_owner output tools/mm: Remove references to free_ts from page_owner_sort tools/mm: Filter out timestamps for correct collation tools/mm: Fix the default case for page_owner_sort tools/mm: Update the usage output to be more organized mm/page_owner.c | 4 +- tools/mm/page_owner_sort.c | 212 +++++++++++++++++-------------------- 2 files changed, 100 insertions(+), 116 deletions(-) -- 2.41.0