From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 505E2C4361B for ; Fri, 11 Dec 2020 02:31:46 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7EBE123E51 for ; Fri, 11 Dec 2020 02:31:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7EBE123E51 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A3D326B0036; Thu, 10 Dec 2020 21:31:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9EE236B005D; Thu, 10 Dec 2020 21:31:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 903116B0068; Thu, 10 Dec 2020 21:31:44 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0056.hostedemail.com [216.40.44.56]) by kanga.kvack.org (Postfix) with ESMTP id 79E3C6B0036 for ; Thu, 10 Dec 2020 21:31:44 -0500 (EST) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 40D328249980 for ; Fri, 11 Dec 2020 02:31:44 +0000 (UTC) X-FDA: 77579425728.14.dolls15_57167ba273fd Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin14.hostedemail.com (Postfix) with ESMTP id 1E85F1822987A for ; Fri, 11 Dec 2020 02:31:44 +0000 (UTC) X-HE-Tag: dolls15_57167ba273fd X-Filterd-Recvd-Size: 4213 Received: from mail-qk1-f194.google.com (mail-qk1-f194.google.com [209.85.222.194]) by imf08.hostedemail.com (Postfix) with ESMTP for ; Fri, 11 Dec 2020 02:31:43 +0000 (UTC) Received: by mail-qk1-f194.google.com with SMTP id 19so7158826qkm.8 for ; Thu, 10 Dec 2020 18:31:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=EeBE0q+ErDzzvoGT97HzZPFWnthYhh5V7M5ilZcCsbk=; b=Du/BFUZWIiV9QL9SLfwiNk/AcgiLYD23ezmHJCJ2GK/qX553KoC+/Uf6EzhR1Yqw0G wvR0KUDHEqgi1rekJ53m3hKY7xXF+lw9BVwPMc+4XMhWAwQ8vkrpEv5HVbXaMD2Qesd2 G6CHOSmyP19f2EuKLase/8kzypAqf8cS6i9akAMQXHkVXk8HkfEkk6vd+31133nYPgG9 B7PHwPENAnkxJBUfH2v/xnOsZ1Ya+EfZTgPGtlEydZSe+xamKxhX8aZ4PSrvIhT6No/t 74lkI/yVPEd+SocUw3GUgomgNBL69lZyvmIPV+/RwGfYE2Bl4yTg4Bz8xNVEmgyJwwQB brew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=EeBE0q+ErDzzvoGT97HzZPFWnthYhh5V7M5ilZcCsbk=; b=QuSYXtYoWu74Ib1NECYmEXLxqe2L7dzwdShFXBSHfqXdExjOdURphX7sncaifkte7W MRhgjxqPC6iwZ/8Na+75qdCrSAR3L7SzXW6Qd2Gqv1yYKOOPQWdrdDN3JwrKyEC2NDQt 4QVvtAdko/YTNlDGpHKCuqWaROpxfJCXNSLnpLZ1P52pafwZzYYGCe2ntMMl4QQa+X37 Mf86yby9ywHJwWudPaqGBAIfD5zb+MTzDG7FIMHIhGqjpYbPjBZjx8LucwH7mIMH/gqD M2qt5wOIOCPEnX2tRYduvCsd7bJ3ZIr+S/q1aAzFkBrDXVx2J72lstosGE99+g1uZMR8 fq5A== X-Gm-Message-State: AOAM5308ve1OrC97q2lzFntOaIM6qk8ZH9UTOHWIDQheqkvHw9/d9WEN CCgpYTPpiSNDFrSwBqxMgPwz/vxICKn+b5qY4/Y= X-Google-Smtp-Source: ABdhPJxM9PzPaAMuDWF/f7hOuuVq3yPBdtl+Y6lFsJ2A+LYREf34G/MGnb3UMg/S0vlPucFwIc5OTk+Reg4tW708LYw= X-Received: by 2002:a37:a7d1:: with SMTP id q200mr12770176qke.283.1607653903024; Thu, 10 Dec 2020 18:31:43 -0800 (PST) MIME-Version: 1.0 References: <20201210160357.27779-1-georgi.djakov@linaro.org> In-Reply-To: <20201210160357.27779-1-georgi.djakov@linaro.org> From: Joonsoo Kim Date: Fri, 11 Dec 2020 11:31:32 +0900 Message-ID: Subject: Re: [PATCH v3] mm/page_owner: Record timestamp and pid To: Georgi Djakov Cc: Andrew Morton , Linux Memory Management List , Vlastimil Babka , corbet@lwn.net, linux-doc@vger.kernel.org, LKML , lmark@codeaurora.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 2020=EB=85=84 12=EC=9B=94 11=EC=9D=BC (=EA=B8=88) =EC=98=A4=EC=A0=84 1:04, = Georgi Djakov =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84= =B1: > > From: Liam Mark > > Collect the time for each allocation recorded in page owner so that > allocation "surges" can be measured. > > Record the pid for each allocation recorded in page owner so that the > source of allocation "surges" can be better identified. > > The above is very useful when doing memory analysis. On a crash for > example, we can get this information from kdump (or ramdump) and parse it > to figure out memory allocation problems. > > Please note that on x86_64 this increases the size of struct page_owner > from 16 bytes to 32. > > Vlastimil: it's not a functionality intended for production, so unless > somebody says they need to enable page_owner for debugging and this > increase prevents them from fitting into available memory, let's not > complicate things with making this optional. > > Signed-off-by: Liam Mark > Signed-off-by: Georgi Djakov > Acked-by: Vlastimil Babka > Cc: Jonathan Corbet Acked-by: Joonsoo Kim This is useful. Our company already has an in-house patch to store pid since a few years ago. Thanks.