Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp317004pxm; Wed, 2 Mar 2022 16:13:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzi141YAqHszQBg+bqz5/LIroBCFRQjJwUdnk+yAJ4ltAesnlaqDARVEX2Rh4M0tXWNE6IT X-Received: by 2002:a17:90a:8689:b0:1bd:4c83:4c5c with SMTP id p9-20020a17090a868900b001bd4c834c5cmr2462944pjn.142.1646266401608; Wed, 02 Mar 2022 16:13:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646266401; cv=none; d=google.com; s=arc-20160816; b=kRrNX7DyVejQdBdh86c8fj9l9GctNkTmqhQtkdsnU5zXwz6k0bSf7EcK2vaGrMVcRU wRof0Q2ivM241INDmxgPxZ2Dz749p6xMuRqn66DOdY4zpCE7Sz7O1bj3JfDS26ByCeIh VBbYnMfCmrUY3QB/0cE+4/4phEX2LiUX6vF1EuaQSY31XYvOpeYCtUjEW6wMGpgz4QlC 8tAwVW2ZXI7TEMQLEwQf0DBzIIM4dEuLp0ve0r0bX4nkpJNe6qJp2lFqCYZQzVIrw08s WcG0eG6CP+zItJQXY0xugcr/ZSkYi2JED9LG75nUPkol7V/jnVaHrNVZXz9wnlUWR2HN Ix7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=Ys3yoRdu+W55dGxYFlu3KoIzoE0Kz5MUvLUMJ8H1DZg=; b=yhnw7MrMnrQIJCRXVdVhO2uHiV8q/XXYF1KQNYeg8u/vQo1WUm0c35uWnWayAokkuX U2FFpZyFTUKAutdFKk1685paIkAUY5vhBnv78RLPXJ0hWF+53gSYb+rUUyiJnfbOq9YD +KGusZfGztM1vE9hmgSuwQ16BomXgvnfejTRMlmAaPRwTxyCytnMLOrujXpda6IdF7j7 yO7V1kGfrO1u3DaJrdn+WlQHXCG2cUDYKPrHrwmqH49IFAv3aP3KziV96nj/XFbKZfAZ JYNrRl34HAlFuAx7bOp7k0oTwQ/myYdofjVP4MXFWfmh8S3PP8zUK2Zqjp8V9naU+jF2 4vTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=MRjk++jP; dkim=neutral (no key) header.i=@suse.cz header.b="3pB/TAy4"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q70-20020a632a49000000b00368f41a08aesi502043pgq.695.2022.03.02.16.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 16:13:21 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=MRjk++jP; dkim=neutral (no key) header.i=@suse.cz header.b="3pB/TAy4"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 617C41C74FB; Wed, 2 Mar 2022 15:28:11 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242071AbiCBQcl (ORCPT + 99 others); Wed, 2 Mar 2022 11:32:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237188AbiCBQcj (ORCPT ); Wed, 2 Mar 2022 11:32:39 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA7ABCC52F; Wed, 2 Mar 2022 08:31:55 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 36EA21F383; Wed, 2 Mar 2022 16:31:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1646238714; h=from:from:reply-to: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; bh=Ys3yoRdu+W55dGxYFlu3KoIzoE0Kz5MUvLUMJ8H1DZg=; b=MRjk++jPxoC3SRj+V6OA/DZh8e4I6kpJoLcGSJzYlX5/V85zt6ZpGUauWWWnjPj+6BSHpc Mkm2RfiVQtie8XbczTVbogPVgCYlj3noZEoVEMMAzri024QPNE82anDWnImrOwOVPJ/3c3 cc0PmyvrVgvGym3w9h52I6/RLHSjHzI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1646238714; h=from:from:reply-to: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; bh=Ys3yoRdu+W55dGxYFlu3KoIzoE0Kz5MUvLUMJ8H1DZg=; b=3pB/TAy48D7xr2gEVjVbRCj7zD9kvd15/ymFBNfSoLi9EEfmZ3SJZZkC0gGJHZF8zPfQmK mR3TJ7mYJEqWR5BQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id F354613A83; Wed, 2 Mar 2022 16:31:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id VRrROfmbH2L+MwAAMHmgww (envelope-from ); Wed, 02 Mar 2022 16:31:53 +0000 Message-ID: <1cc1eb98-fe46-4563-16d3-ac00b630ecd3@suse.cz> Date: Wed, 2 Mar 2022 17:31:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH 5/5] slab, documentation: add description of debugfs files for SLUB caches Content-Language: en-US To: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: David Rientjes , Christoph Lameter , Joonsoo Kim , Pekka Enberg , Roman Gushchin , Andrew Morton , linux-mm@kvack.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, Oliver Glitta , Faiyaz Mohammed , Jonathan Corbet , Randy Dunlap , linux-doc@vger.kernel.org References: <20220225180318.20594-1-vbabka@suse.cz> <20220225180318.20594-6-vbabka@suse.cz> From: Vlastimil Babka In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/27/22 04:49, Hyeonggon Yoo wrote: > I think it's not traces of "currently free objects" > because index bit of free objects are set in obj_map bitmap? Hm right, thanks. > It's weird but it's traces of allocated objects that have been freed at > least once (or ) > > I think we can fix the code or doc? For now I'll fix the doc. Not clear to me myself what's the best usecase for free_traces file. For alloc_traces it's clearly debugging memory leaks. Freeing traces are most useful when a bug is detected and they are dumped in dmesg. The debugfs file might be just for a rough idea where freeing usually happens. > Please tell me if I'm missing something :) > >> + Information in the output: >> + Number of objects, freeing function, minimal/average/maximal jiffies since free, >> + pid range of the freeing processes, cpu mask of freeing cpus, and stack trace. >> + >> + Example::: >> + >> + 51 acpi_ut_update_ref_count+0x6a6/0x782 age=236886/237027/237772 pid=1 cpus=1 >> + kfree+0x2db/0x420 >> + acpi_ut_update_ref_count+0x6a6/0x782 >> + acpi_ut_update_object_reference+0x1ad/0x234 >> + acpi_ut_remove_reference+0x7d/0x84 >> + acpi_rs_get_prt_method_data+0x97/0xd6 >> + acpi_get_irq_routing_table+0x82/0xc4 >> + acpi_pci_irq_find_prt_entry+0x8e/0x2e0 >> + acpi_pci_irq_lookup+0x3a/0x1e0 >> + acpi_pci_irq_enable+0x77/0x240 >> + pcibios_enable_device+0x39/0x40 >> + do_pci_enable_device.part.0+0x5d/0xe0 >> + pci_enable_device_flags+0xfc/0x120 >> + pci_enable_device+0x13/0x20 >> + virtio_pci_probe+0x9e/0x170 >> + local_pci_probe+0x48/0x80 >> + pci_device_probe+0x105/0x1c0 >> + > > Everything else looks nice! > >> Christoph Lameter, May 30, 2007 >> Sergey Senozhatsky, October 23, 2015 >> -- >> 2.35.1 >> >> >