Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2608862ybi; Thu, 18 Jul 2019 11:07:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvJeRluBiHOaoGaLIAHjJqxscK9dh4bH+VqIexw7GjMNlQEcwKNZ9JZ9ndT1iCDftErJlV X-Received: by 2002:a17:902:1081:: with SMTP id c1mr52231614pla.200.1563473226755; Thu, 18 Jul 2019 11:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563473226; cv=none; d=google.com; s=arc-20160816; b=fgsgTwGRlBxOjW/Y1NZNSqxJd84ZidsFG1lUItCzEzmrau4wRrI8wv84+I3nxvIYpf ZvuLnh1GLSb0V1G87LBeZvi7BVxJw1/044G5ekzDp3pLQYjJqA0I7rYgM60GyrH/rvu6 8tca7IUvQm5iSV7cpjQVekZNnW9Y4QFUG5OgmPTmGwDCt9FnTbRT+0Eg/Br+Qe3PoVk5 4WbTBEXyxskpi/ItlVMXiG5QmQWSiHo7fk0W0NVWExZRh3pHKbr86VHuwPkRxO2aLONl iNGoRwU2YtKY5afL/bEqwf92Q52fsybGnA3maKPe6wOuCY4D95Ye+mHpadmO0Ccp5F26 IJWg== 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:references:cc:to:from:subject; bh=60hgcSP5ZBMYc8BGYqz2qVFtxH2uomSyM2xS+2okEPE=; b=TrCl7JncM7mKUMd7u2zY7RFRNJ6sRzCVrYHfSObUWSrx5w8YWdadNUTjdkjtRbwVdd a0phpCvtzJRWIgRUBvQcNpw5BAKjHZUBI6KI4gQg2SpgkbYQbhQWbd9zsV8rNmoakWHd KDw5qJThi/0Daop5VyhtjiS+bmVO8FYPA6YlhSlYsYxTkn3XXyR/E0K7NSEJJh4pv7u+ ceAWwknl9t7dZ48qEzTonxPaeIrpMCLttJcACF9kwXQZjBhfyN1RQM33fBL99sm90Saw mWLL87Sy9rmStepQkmliar7G4hkTgK4DOMlYN34orA6bzqSIPfpUCFo9xhbuTPgLxTmV LPJA== 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 y7si41151pgi.401.2019.07.18.11.06.50; Thu, 18 Jul 2019 11:07:06 -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 S2390819AbfGRSEk (ORCPT + 99 others); Thu, 18 Jul 2019 14:04:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48334 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727780AbfGRSEk (ORCPT ); Thu, 18 Jul 2019 14:04:40 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 875EA2BFCA; Thu, 18 Jul 2019 18:04:39 +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 679025D71A; Thu, 18 Jul 2019 18:04:34 +0000 (UTC) Subject: Re: [PATCH v2 2/2] mm, slab: Show last shrink time in us when slab/shrink is read From: Waiman Long To: Christopher Lameter Cc: Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko , Roman Gushchin , Johannes Weiner , Shakeel Butt , Vladimir Davydov References: <20190717202413.13237-1-longman@redhat.com> <20190717202413.13237-3-longman@redhat.com> <0100016c04e1562a-e516c595-1d46-40df-ab29-da1709277e9a-000000@email.amazonses.com> <6fb9f679-02d1-c33f-2d79-4c2eaa45d264@redhat.com> Organization: Red Hat Message-ID: <9d35da26-6d85-d879-c966-3577bdb0cf02@redhat.com> Date: Thu, 18 Jul 2019 14:04:33 -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: <6fb9f679-02d1-c33f-2d79-4c2eaa45d264@redhat.com> 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 18 Jul 2019 18:04:40 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/18/19 10:36 AM, Waiman Long wrote: >>> CONFIG_SLUB_DEBUG depends on CONFIG_SYSFS. So the new shrink_us field >>> is always available to the shrink methods. >> Aside from minimal systems without CONFIG_SYSFS... Does this build without >> CONFIG_SYSFS? > The sysfs code in mm/slub.c is guarded by CONFIG_SLUB_DEBUG which, in > turn, depends on CONFIG_SYSFS. So if CONFIG_SYSFS is off, the shrink > sysfs methods will be off as well. I haven't tried doing a minimal > build. I will certainly try that, but I don't expect any problem here. I have tried a tiny config with slub. There was no compilation problem. -Longman