Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2635860rwb; Thu, 17 Nov 2022 13:48:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Y7TPHla5f7fkQXNU6Dytr5NhCDC2DpGh7l4vP2t46YwD9ET5wwjkVhdryE+0VbgxFkf4m X-Received: by 2002:a17:907:9108:b0:7ae:98fe:5649 with SMTP id p8-20020a170907910800b007ae98fe5649mr3726519ejq.330.1668721723016; Thu, 17 Nov 2022 13:48:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668721723; cv=none; d=google.com; s=arc-20160816; b=ilGAF8C5rQpYd5Rl4LpQypGuKZnuGnsNhmoCrzPp307z6l6So7DpFXotd14HOjDbUF ARgzjDAPtcvnDXuqC0KBLzZZE6lTU+91Egk0dCnte6r+e4SiFwSNty7PnohMmH7W31T+ QWBL8qmGIk3QD5g4w0O67pp6uXM2UQiNKKON5QlXuwzw8bK9E5DXHOz54yOfmygHJBLl zUh1v4w7ssT8jmnK4ljkY0Aei95wG4QG1lyd1XMIh9lSJ/ogm3QjdE5G7bER9zLUps6C C8Vm+wQjgejgF6jEDuhQf97QDnpBhH1ToQe5zgKSj9ZK9tQSpL1ISGasWAZvNNuTZdMb 1cMQ== 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=e4gyaeZKuN5TuhPKWwkSBb9I05Kqo8fxxhIvbwmMql4=; b=paa1B8YxNeHzkmfqQXLqcKen+udKhAzCvzaBrw9GNtY5sUrCVvLmcOCDaflqTIymey crI0MXi0Zd+V5nKTGSm4snngPOCDZBr6UjP5tzwmH7mvAADDdQT/eKuAsENPqPKaAHEq BQTnNcmkcmP+CB7HrFPQZNCiP/wppFqJe1s35WO8Kve/ZBCQhkQZj0JfCWHhzA+iBO8h 6csuJ58Dxw2dOzHuCTo4N6L+nsosXVhsX26JR7euGYyyMoTT6M/fLJIsd0oCHQ36WyHU sm2HM2zzvBJJ4HeJsIlG1yxW8jto3G6x4zuixXS0d1MjYUC9h7JoIbeIbhqi9uvvASvH wKvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Yu3InIqy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs2-20020a0564020c4200b004592ebc28a9si1722640edb.59.2022.11.17.13.48.16; Thu, 17 Nov 2022 13:48:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Yu3InIqy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235103AbiKQVmj (ORCPT + 92 others); Thu, 17 Nov 2022 16:42:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234542AbiKQVmd (ORCPT ); Thu, 17 Nov 2022 16:42:33 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35737682A9; Thu, 17 Nov 2022 13:42:33 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C65A361E76; Thu, 17 Nov 2022 21:42:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D9AEC433C1; Thu, 17 Nov 2022 21:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1668721352; bh=e4gyaeZKuN5TuhPKWwkSBb9I05Kqo8fxxhIvbwmMql4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Yu3InIqynn9YYcRssyMle8HVsrGC3Zgm+jhC+xr8d75RH6T7EqQHfvcORUScdh/KS 89m/3vCXOBaNT49RVYtd9q+km/mQvtZApDgbGXSKNDg1X8scXWwYCNp4IJau7Ox2TO S7StpMn3WR9AI49TAQ+T7PjCZWuu2bVKbcQ310vY= Date: Thu, 17 Nov 2022 22:38:36 +0100 From: Greg KH To: Anjali Kulkarni Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [RFC] Add a new generic system call which has better performance, to get /proc data, than existing mechanisms Message-ID: References: <1668623844-9114-1-git-send-email-anjali.k.kulkarni@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1668623844-9114-1-git-send-email-anjali.k.kulkarni@oracle.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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, Nov 16, 2022 at 10:37:24AM -0800, Anjali Kulkarni wrote: > Currently, reading from /proc is an expensive operation, for a > performance sensitive application Then perhaps "performance sensitive applications" should not be reading 10's of thousands of /proc files? Anyway, your proposal comes up every few years, in different ways. Please research the past proposals for why this keeps failing and perhaps you should just fix up your userspace code instead? Also, look at attempts like the introduction of the readfile syscall as well, if you want to remove the open/read/close set of syscalls into one, but even that isn't all that useful for real-world applications, as you can today use the io_uring api to achieve almost the same throughput if really needed. good luck! greg k-h