Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7287179rwi; Mon, 24 Oct 2022 12:23:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6jU/O9n8jJZp/I6sZXo5BSNevsnV5ZZuVL1RtjkQxojX1lUzvHXdzHlojbEKqkDaxY0fvs X-Received: by 2002:a05:6402:350f:b0:45d:1d86:9ec9 with SMTP id b15-20020a056402350f00b0045d1d869ec9mr32883224edd.266.1666639414337; Mon, 24 Oct 2022 12:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666639414; cv=none; d=google.com; s=arc-20160816; b=CmvkvkWD42OW7NGP6nUIFu4yaNMNBc9hoolR5R2E6CrAACyFC/hyQhR91dKnwcCiaj nTdjP3aQuE7wiMoQIQVlBXFrOdlXZUdjDz2tuPedVS40LGc+OT0dhVGiK+Co8WN576Id ChUoMkVVACtHdUsKECJ0lCQlm9o64Eh8cCKOFuhJE/jCoyqsAnUca61zbUqpE/yf9Pqe olLXSW+Vje+etpkMibYiAYFz+o73onzqxFsxkc7blFr3MXV9u8ZGTYkWSs1l4m1pC7NF R9RpUAERU8EZmXd+SOVJxuf1K6GKepRQ+0dOe2lccf0Rsu6e3Br9RbpmZNfa8VPILzn+ gJmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0SvrvFQbZJt7iDWYQmvN7U67sbT18oYJVK+RPEPBAvQ=; b=Qdd+Fsb6+yVP6Stqal6Nf2iN/vyRvaGmBEVh/jb79N6u2Nhz8N+Q9+8qUnTxHnWqBj AIhNnwQnvJTxynbZhK5sVDupp8nu93yfynFmhEmTl4IyvDQ/zvJU2HYIej9u0imzCpL/ gJSCrIdw0GNcFm/H1GtePyWTMfQHxKpEvT5ZuVRctPlXPM8/eENKJXNduIOE3yyH7ysz +aNzdl/9TyhfByRCFjvk0oqw6SQ8Zowy4Ho8E81YSpSM6XjOSq5bzKd2hGRA88Iag8SQ +92x43JKFJwl1WOFPfaCBn469yhRwfFDX9a4SOXAWbqlUPtPFRb4sWkE0SYfNuGGgG7S l05A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lBfQbxfM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v2-20020a056402348200b004595a90c510si699960edc.3.2022.10.24.12.23.08; Mon, 24 Oct 2022 12:23:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lBfQbxfM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230425AbiJXTA4 (ORCPT + 99 others); Mon, 24 Oct 2022 15:00:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231933AbiJXTAI (ORCPT ); Mon, 24 Oct 2022 15:00:08 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC8D3726BC for ; Mon, 24 Oct 2022 10:39:37 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id v13-20020a17090a6b0d00b0021332e5388fso819769pjj.1 for ; Mon, 24 Oct 2022 10:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=0SvrvFQbZJt7iDWYQmvN7U67sbT18oYJVK+RPEPBAvQ=; b=lBfQbxfMjOYjjVVAu8Vi6VTVn3QT2ScttZTJRCZEyujkbH41Lr59JYJaEDwAm7pt1t xQHy3VUPrWmEbVZjCCVcjLgWGySPQaYJCHJPZXXfB9WICSairI3xhRn6w5RneS6fcuWs /191zHzVa7wDwYUhDCFcjM4GRScANHBAO79dOIy3ApqLWhQi9/XrD8zFjQ59v/P+xNX+ xCDcOvsK2t9vrJTU/hZ2WISRGkQOiie6exyOzS2FB51a0dRO79nJx/fuTr3i97V6HY7g OB9U2D97jOpYl0v4LoveN4mkBtLxqpTOwov+hYOErIJUGhPpMGlWmHvoU50PvC7DibgP 4LwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0SvrvFQbZJt7iDWYQmvN7U67sbT18oYJVK+RPEPBAvQ=; b=PnzABMQl4gFbInfu962yOOWuv6X5OLjvnj5SeSWo514y6fnE+LGbUp+s6fNWTmP48P 4xCb80aFI2jt/QHXLPoEc9Au2dmmnJYVC1gn3temkvt8gaCrgeYVMeu8jWDrvmYHth+4 A7IJ+hHgYr68wond+R8qsVJ0caEVii1p1lLBM8cBsUMesnBfXS/vGDOZzC+RBzM+MmTC z1ATUZJL2OfLftQFsRiqKQu/dMW7lmKM6oheWBBlhADzsCC0QNbwBorce789r4AtamIk q8I4Foa0TL0S/YYrFFcCu8Ba1dJP93zEqmBItfDCIyxNgdOdXB2s/1Fx6X2SP6oRIVi/ h3bg== X-Gm-Message-State: ACrzQf0UGFWCPxfAAQa/uFIG+7hTqrqNArPEnBiP1Cbv4maFK8BwJjOA Q7a4TJgf3CsT9Zr+4o3WOfg= X-Received: by 2002:a17:90b:3e82:b0:20d:2fa1:d071 with SMTP id rj2-20020a17090b3e8200b0020d2fa1d071mr75370882pjb.58.1666633115028; Mon, 24 Oct 2022 10:38:35 -0700 (PDT) Received: from biggie ([103.230.148.187]) by smtp.gmail.com with ESMTPSA id t18-20020aa79472000000b0056bf5e54961sm72858pfq.161.2022.10.24.10.38.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 10:38:34 -0700 (PDT) Date: Mon, 24 Oct 2022 23:08:28 +0530 From: Gautam Menghani To: Zach O'Keefe Cc: Steven Rostedt , akpm@linux-foundation.org, mhiramat@kernel.org, shy828301@gmail.com, vbabka@suse.cz, david@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/khugepaged: add tracepoint to collapse_file() Message-ID: References: <20221024150922.129814-1-gautammenghani201@gmail.com> <20221024111621.3ba17e2c@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Mon, Oct 24, 2022 at 09:44:16AM -0700, Zach O'Keefe wrote: > Thanks for your mail, Gautam. > > > I try to keep dereferences out of the calling path as much as possible > > (adds to I$ at the call site). > > This was probably due to the way I handled > trace_mm_khugepaged_scan_file(). Perhaps that can be cleaned up at the > same time as this patch, for consistency. > Yes sure I'll send a patch for cleaning this up. > Also, no qualms about adding this tracepoint; there are a few scan > result codes that overlap between hpage_collapse_scan_file() and those > possibly returned in collapse_file() such that, if we only have the > one tracepoint in hpage_collapse_scan_file(), it could be ambiguous > what callsite the error path stemmed from. Luckily this hasn't been an > issue thus far. > > Lastly, a few other items we might care about capturing: > > - is_shmem (perhaps the filename is enough to know this - but I know > at least once during development I was caught off-guard b/c a mount I > thought to be file-backed turned out to be tmpfs (and something I > didn't think to question until I had wasted some time on other > paths)). > - index Yes noted.