Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp32982lfe; Fri, 15 Apr 2022 18:05:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzepNS6XdTVjIzYyNtOnQzDtCF6HzXA+h7l5sJoE1qQvvZyBnQ69DfMaUvkaE0ds4JfddZw X-Received: by 2002:aa7:8385:0:b0:4f6:ef47:e943 with SMTP id u5-20020aa78385000000b004f6ef47e943mr1512961pfm.38.1650071110468; Fri, 15 Apr 2022 18:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650071110; cv=none; d=google.com; s=arc-20160816; b=pcjjOp3N5AvsxPFPSLzby/7OcNSWrxPiJuLuNUWjCidRpUzBR4X8vLMVe3i2zkwXZL l64FuaRgG/XjyZ9kRbowFBjwNFU9Z+iHBYekikP9IV8jB0ANtDRsxHONWEKpqGFw5ec9 ShG7mjRqRJRA5DWyAOHvQzCo6nHHzV4ma1e5tX3YIGCoDU7WVemvH8LdKio47DNfDuT0 vQdt3n+5E2rskCm7ZzQiEfWDbUw+TVXb+59D/BAbfkCME4mIkbKemZ7nac65YLvHHnQq qgN3H7b2Prsb3vRkP4iDqEtk3PSXcqI7bLugQWyFEkLebxaNHgV8qjRvMl0SvR/K1+LC KFWQ== 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=siGjlGOP8a8aVEoY/7zrcxACP5zMOSpeZmIpk9cPz9o=; b=bZfYwidhIPxUaR5zddKl0y2O3YqXXw/0MtQ++O5UfO7xH1YIjmIVzL94eAo/TWBws4 L6D8uApUcrTkfGE4q07QeZSOstDc8YbWXbWvd4qPjXgevdULzVGn+TjYBQVArr8by2tf j/i6DY0yIdpXELkr9S1iYjfyx0K7vjL4n+ktxbhXcijWF+xlhSq8XD4/XZQ/xn5ue0Wj BosGuXX4eo5wPRnMSgLnIAngyLk28z4thbzgHyqamod2jy23omwZZImrWzNPXDDiHAKh D7TcnRT2A4UhKpAhcH9DCU1exa/BPn2nr5CELkSZf42Ycc5IK1Jd7XnspENqweuzVLaP s5FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="OBPd6/oh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f2-20020a63de02000000b0039db95592basi2869227pgg.210.2022.04.15.18.05.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 18:05:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="OBPd6/oh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 17B6DF846D; Fri, 15 Apr 2022 17:46:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237826AbiDND0I (ORCPT + 99 others); Wed, 13 Apr 2022 23:26:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239739AbiDNDZr (ORCPT ); Wed, 13 Apr 2022 23:25:47 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADD8353A5B; Wed, 13 Apr 2022 20:23:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=siGjlGOP8a8aVEoY/7zrcxACP5zMOSpeZmIpk9cPz9o=; b=OBPd6/ohI1DvqAySC5Djju6KPg hI8+2jr7e3hswGtVmaZMCLOC9g/uGxrA5UxYe9JRriY8q8QI53otU5SaIoSpJWJW0JvsgGRA/f15M ag4tYSwnQAho9a20SBVj+sQbPM9ndSYDBtpo7jFAgMgl+RewVNLc8vtMi6skIDP5iN7ngsabAYSVd KvCjW1D0RV1s/9PdOe+DVBh9VH+DvvTJ+5PiNagSuspV1dmFSMBPFBaZmcEuMbY6aKpcr8a3I5hds c3ZlWb5RJ4b+Ey6/OSic2zcSU6YFv0UIEPqJ93WgG9q+XnJtyqGdC5jhha1AdnQPNMTMEHb36nDy/ O8Cbyh6Q==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1neq4f-00EmtJ-GQ; Thu, 14 Apr 2022 03:23:13 +0000 Date: Thu, 14 Apr 2022 04:23:13 +0100 From: Matthew Wilcox To: Andrew Morton Cc: "Alex Xu (Hello71)" , Alexey Dobriyan , Daniel Colascione , linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Vlastimil Babka Subject: Re: [PATCH] mm/smaps_rollup: return empty file for kthreads instead of ESRCH Message-ID: References: <20220413211357.26938-1-alex_y_xu.ref@yahoo.ca> <20220413211357.26938-1-alex_y_xu@yahoo.ca> <20220413142748.a5796e31e567a6205c850ae7@linux-foundation.org> <1649886492.rqei1nn3vm.none@localhost> <20220413160613.385269bf45a9ebb2f7223ca8@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220413160613.385269bf45a9ebb2f7223ca8@linux-foundation.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Apr 13, 2022 at 04:06:13PM -0700, Andrew Morton wrote: > On Wed, 13 Apr 2022 18:25:53 -0400 "Alex Xu (Hello71)" wrote: > > > 258f669e7e88 was 4 years ago, so I guess a -stable backport isn't > > > really needed. > > > > Current behavior (4.19+): [...] > > Pre-4.19 and post-patch behavior: > > I don't think this will work very well. smaps_rollup is the sort of > system tuning thing for which organizations will develop in-house > tooling which never get relesaed externally. > > > 3. As mentioned previously, this was already the behavior between 4.14 > > and 4.18 (inclusive). > > > > Yup. Hm, tricky. I'd prefer to leave it alone if possible. How > serious a problem is this, really? I don't think "It's been like this for four years" is as solid an argument as you might like. Certain distributions (of the coloured millinery variety, for example) haven't updated their kernel since then and so there may well be many organisations who have not been exposed to the current behaviour. Even my employers distribution, while it offers a 5.4 based kernel, still has many customers who have not moved from the 4.14 kernel. Inertia is a real thing, and restoring this older behaviour might well be an improvement.