Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3672416ybi; Fri, 19 Jul 2019 07:08:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1C4C58JQKY3exWRzxKNManf78fnueY9Gq1USf6WfRa7e9yyG3cPZO6Vl8tVIsBIHFtVy1 X-Received: by 2002:a65:518a:: with SMTP id h10mr53648990pgq.117.1563545288458; Fri, 19 Jul 2019 07:08:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563545288; cv=none; d=google.com; s=arc-20160816; b=Frm8U4nYmrqWlI749pntW0SZACWeDRr41xCJ3THenzgWWovdm2v2C+FGuksbul9gfr dUltmlPg6uklvWRJ4zw7SQPEY53WYK8AjodWdK/ZbbXtUBDDmedD27G04NZ6h5zXB+8S IxS0d8h3hVqeP1+FK1Z5HrmwcU5g1K/Nj/A/tXMU241NjbC+QrIMLn6WurBp3epeO2iC Sei007HN7oRSZ0JNXaHEbtMf8A4C24l8wVgHK8gZGObwCN0SvMPrGGvq+3kd9EZuBoJE EFdbx2267QifaBa3k0pz+cFk3WTXiTQaJMqxzg6pLmGKpXxyInTjNuBqEdUPR5Imjfhf tjnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=CpmT1vkqvZqsdSQbFuCpNH/AnuhPq6FWS5ZPuhy1Dd8=; b=1HKXO7Wuvo7dr5dj7pjRIUyPfcfUh6a46zBeNPBd9qC1LFzlAcww0W5QfKfK4a07gd 3+2d3oaI4idk8r3LnO2Vacj2QDv0ve3tShSfw2ADRPhhtA1/GkfWh2BYVlWntCpiN8VX 8qdFWDnQYsrYBbie6Alx6AW3k7JVdrvrk0mLD+JsC18w44wCr99CId3O3RAIYugs44+v saXUWvM36bAqWuIKdsZrlc4lm7k053Jax1KrgK/AvWFHfLctaqLL1xivC9Us8Qu7E3yD QF9DLdM2wA6TMVBxDgbgADqjEjL9++FA/qx6uJwKrFciZx62LntJKJMUcdXgM2Zumj6p Ug6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s66si2470244pfs.120.2019.07.19.07.07.52; Fri, 19 Jul 2019 07:08:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729082AbfGSOHY (ORCPT + 99 others); Fri, 19 Jul 2019 10:07:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52550 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728351AbfGSOHY (ORCPT ); Fri, 19 Jul 2019 10:07:24 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4A0AEC06511B; Fri, 19 Jul 2019 14:07:23 +0000 (UTC) Received: from llong.remote.csb (dhcp-17-160.bos.redhat.com [10.18.17.160]) by smtp.corp.redhat.com (Postfix) with ESMTP id E95B3620BD; Fri, 19 Jul 2019 14:07:20 +0000 (UTC) Subject: Re: [PATCH v2 2/2] mm, slab: Show last shrink time in us when slab/shrink is read To: Michal Hocko Cc: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Roman Gushchin , Johannes Weiner , Shakeel Butt , Vladimir Davydov References: <20190717202413.13237-1-longman@redhat.com> <20190717202413.13237-3-longman@redhat.com> <20190719061410.GJ30461@dhcp22.suse.cz> From: Waiman Long Organization: Red Hat Message-ID: Date: Fri, 19 Jul 2019 10:07:20 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190719061410.GJ30461@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 19 Jul 2019 14:07:24 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/19/19 2:14 AM, Michal Hocko wrote: > On Wed 17-07-19 16:24:13, Waiman Long wrote: >> The show method of /sys/kernel/slab//shrink sysfs file currently >> returns nothing. This is now modified to show the time of the last >> cache shrink operation in us. > Isn't this something that tracing can be used for without any kernel > modifications? That is true, but it will be a bit more cumbersome to get the data. Anyway, this is just a nice to have patch for me. I am perfectly fine with dropping it if this does not prove to be that useful. Thanks, Longman