Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4395515ioa; Wed, 27 Apr 2022 02:57:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOdIHN/CJagw9Ud/nur0VgKunQuDn7MDrtDBhXACs8j90BjaUCxKL4zq5KmklMvHuoFzs3 X-Received: by 2002:a63:6a88:0:b0:3c1:4a6c:be3 with SMTP id f130-20020a636a88000000b003c14a6c0be3mr1506393pgc.13.1651053430150; Wed, 27 Apr 2022 02:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651053430; cv=none; d=google.com; s=arc-20160816; b=TxYbOlkTmFDRUh354nXprQ8x3x0/JJQ3D0t5mVxAt8rGJD9Q+RWxs6MtSx8vKKmAiB /t4lG+vRMA3jA3vyx7z6HsARgAPVLn85oQpi61GP1XjkX8gQZspXXTszPESZGFrZ5CJ+ GTQdwgJWbV57NlwBQkXsovQqifsZarcCbII6jD9EiILwprsu0lFwvuAsI60bXxCgRItk JDS3vKDp7e9piVlWf0LKWHjpmBnPoSn0mAcFE0Uf6qi2FGs1mfPZNKgLjhBKAsOpzwXj hviYhbPN2EoqC/gtb/UikVjtZxhykhSCeJ3UU7HClOJuEWsU4VX8ngyq4Xaa7Xu3osmD JPsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DpEof+0I0YCbwzONPoRmg0L/6pzi31MyKL13TiqlQ/U=; b=nPqKXFU4NpMNn3EUV6IDFHwyY2JFTAXK6h2R+bc8DYPlcUH3bEMdiYg4WWgU4x8SI9 JN/7nQg/2cICqwkHV5h2qCzx5XYzFB+f2jDTymNX+MtYmmTFvCiPiwJGhmC7Lv/MSjml Fxb2LDAIQ7ulG4axZjPFgYG+ytSWcc8G9vWQgp/8eSl0Jzbblbcy2aGgOMFlJnxIgn0I pbujLIhn9rraC+dxYQf2J5rNveIgbgFXzCHC+i4yosAvWZkoAYhHcoVVraoGaRRa9OSA WqpDX5C5ktLCDdJMpSrOST0/+j8XjKyyrgA5lRA6Gyv1tML2KJlYHiW/gund7MvN25nq U+5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VdUNP2pv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j12-20020a170903024c00b0015d0c53ae0esi1166254plh.491.2022.04.27.02.57.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 02:57:10 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VdUNP2pv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BEE7C2BC69D; Wed, 27 Apr 2022 02:25:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356666AbiD0B0S (ORCPT + 99 others); Tue, 26 Apr 2022 21:26:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242681AbiD0B0R (ORCPT ); Tue, 26 Apr 2022 21:26:17 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1A9686E55E for ; Tue, 26 Apr 2022 18:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651022587; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DpEof+0I0YCbwzONPoRmg0L/6pzi31MyKL13TiqlQ/U=; b=VdUNP2pvho5kJI6Kr93GIz2y+lKuE93aZk2Au141uDHJg9eprM0yTmK5yLkJiCHw8AZjXB 0AaloJPh94iJM/Vnu9aBZ7kHBuGryhs251yh3uuLcc9vDN8dGLRiuyZB3u2Afsvd907OIU 4c+ivHkt93oaM6q9z+cjHDccjH/daC8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-318-8Qyok9UXPvellTR8YIOXJA-1; Tue, 26 Apr 2022 21:23:01 -0400 X-MC-Unique: 8Qyok9UXPvellTR8YIOXJA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 40CFA3802AC4; Wed, 27 Apr 2022 01:23:01 +0000 (UTC) Received: from rh (vpn2-54-103.bne.redhat.com [10.64.54.103]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9C30BC28100; Wed, 27 Apr 2022 01:23:00 +0000 (UTC) Received: from localhost ([::1] helo=rh) by rh with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1njWOP-006YJ1-Jy; Wed, 27 Apr 2022 11:22:57 +1000 Date: Wed, 27 Apr 2022 11:22:55 +1000 From: Dave Chinner To: Roman Gushchin Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yang Shi , Kent Overstreet , Hillf Danton Subject: Re: [PATCH v2 0/7] mm: introduce shrinker debugfs interface Message-ID: References: <20220422202644.799732-1-roman.gushchin@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 26, 2022 at 09:41:34AM -0700, Roman Gushchin wrote: > Can you, please, summarize your position, because it's a bit unclear. > You made a lot of good points about some details (e.g. shrinkers naming, > and I totally agree there; machines with hundreds of nodes etc), then > you said the active scanning is useless and then said the whole thing > is useless and we're fine with what we have regarding shrinkers debugging. Better introspection the first thing we need. Work on improving that. I've been making suggestions to help improve introspection infrastructure. Before anything else, we need to improve introspection so we can gain better insight into the problems we have. Once we understand the problems better and have evidence to back up where the problems lie and we have a plan to solve them, then we can talk about whether we need other user accessible shrinker APIs. For the moment, exposing shrinker control interfaces to userspace could potentially be very bad because it exposes internal architectural and implementation details to a user API. Just because it is in /sys/kernel/debug it doesn't mean applications won't start to use it and build dependencies on it. That doesn't mean I'm opposed to exposing a shrinker control mechanism to debugfs - I'm still on the fence on that one. However, I definitely think that an API that directly exposes the internal implementation to userspace is the wrong way to go about this. Fine grained shrinker control is not necessary to improve shrinker introspection and OOM debugging capability, so if you want/need control interfaces then I think you should separate those out into a separate line of development where it doesn't derail the discussion on how to improve shrinker/OOM introspection. -Dave. -- Dave Chinner dchinner@redhat.com