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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 5A5BFC7618F for ; Wed, 17 Jul 2019 20:25:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1F9E721873 for ; Wed, 17 Jul 2019 20:25:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727356AbfGQUZb (ORCPT ); Wed, 17 Jul 2019 16:25:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34548 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727104AbfGQUZa (ORCPT ); Wed, 17 Jul 2019 16:25:30 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 16CCC302246C; Wed, 17 Jul 2019 20:25:30 +0000 (UTC) Received: from llong.com (dhcp-17-160.bos.redhat.com [10.18.17.160]) by smtp.corp.redhat.com (Postfix) with ESMTP id 862655C260; Wed, 17 Jul 2019 20:25:25 +0000 (UTC) From: Waiman Long To: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko , Roman Gushchin , Johannes Weiner , Shakeel Butt , Vladimir Davydov , Waiman Long Subject: [PATCH v2 0/2] mm, slab: Extend slab/shrink to shrink all memcg caches Date: Wed, 17 Jul 2019 16:24:11 -0400 Message-Id: <20190717202413.13237-1-longman@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Wed, 17 Jul 2019 20:25:30 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2: - Just extend the shrink sysfs file to shrink all memcg caches without adding new semantics. - Add a patch to report the time of the shrink operation. This patchset enables the slab/shrink sysfs file to shrink all the memcg caches that are associated with the given root cache. The time of the shrink operation can now be read from the shrink file. Waiman Long (2): mm, slab: Extend slab/shrink to shrink all memcg caches mm, slab: Show last shrink time in us when slab/shrink is read Documentation/ABI/testing/sysfs-kernel-slab | 14 +++++--- include/linux/slub_def.h | 1 + mm/slab.h | 1 + mm/slab_common.c | 37 +++++++++++++++++++++ mm/slub.c | 14 +++++--- 5 files changed, 59 insertions(+), 8 deletions(-) -- 2.18.1