Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3214999ybi; Thu, 18 Jul 2019 23:15:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4t+OoF78cFNa/WQv/8OxVEJ+sAljPtExpDOl5jyxz/u1w9U78/CKW7vk5phnYxL/K7UCs X-Received: by 2002:a17:902:70cc:: with SMTP id l12mr13295500plt.87.1563516959037; Thu, 18 Jul 2019 23:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563516959; cv=none; d=google.com; s=arc-20160816; b=dY2rbsrKRV/fcReHuch29zpgeNwvtNzOfvwwTVYJeDCXP2qUJWdlZemE9oh4CqDg5q YJbmMvYbwqnazFslE1Zy87//Di0/ux04jNd9wVvTbdA7aWFsrBg06lhdu6XXdCYjot3X oaFOzijrPhxgJjljF8smGJd6DmwHPBBGIBOTblcgpNfUeXImR0VIL6VG0CcIdseWWUPo gLv8JoMvvJc1guwP/2OEttkyqgRvKyN0D47HcBRdZ/Q48as4bzNS9mF3O6TT26SVVapG xZAecZfnza5HmA66mJx8BHivCVZZYLKsVhLR81lWke36jDyAuBGft68WJIvIpdUbnYwF VQGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=U6lfhUTpLh8RwOJxXk2ilzCB0fStqbliWJAvXMuMpuQ=; b=h7W+ZymnwrJ/6VP1HjL5dd9xzyGoLmK0Z01YcJdCastvFoMsMxdwo33xfOl2PZoSi0 rtoOWpGBlG0ZbL76wumAhqkmv6ffrXN2TueU3hYXT051imoI2xK4D6eV+0+e/wHGpcdX tWGAzVJNzk2jVm0XiJalOUVRWAzf4CqEg9TkUTOqDBx/gFDeVcv/i4mhKgdBu3DZLdpC i+DniYtZM2KmhbCD2BdhDEGrs3TlZXvkk85I2QuNIctFR3znUACtKdFx/KtuvLwav8kV A+AxqGGZSi9t6rgdfjHlzN8WNYJiRPxCG3BGpFnVEpo5Bu1kzpCWvuAq79b7X2upxbmf dpYg== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x21si3376549pgh.400.2019.07.18.23.15.42; Thu, 18 Jul 2019 23:15:59 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727319AbfGSGON (ORCPT + 99 others); Fri, 19 Jul 2019 02:14:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:60806 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726072AbfGSGON (ORCPT ); Fri, 19 Jul 2019 02:14:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 376D3ACCE; Fri, 19 Jul 2019 06:14:12 +0000 (UTC) Date: Fri, 19 Jul 2019 08:14:10 +0200 From: Michal Hocko To: Waiman Long 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 Subject: Re: [PATCH v2 2/2] mm, slab: Show last shrink time in us when slab/shrink is read Message-ID: <20190719061410.GJ30461@dhcp22.suse.cz> References: <20190717202413.13237-1-longman@redhat.com> <20190717202413.13237-3-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190717202413.13237-3-longman@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- Michal Hocko SUSE Labs