Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2755195rwb; Sun, 20 Nov 2022 00:42:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf4shNKWO2GHm2H6aIT4kk3+WPQk8buKHHU58ORansWB7l/OUzam9v8illLFh23FpeebG0Ro X-Received: by 2002:a17:906:f02:b0:799:a731:b44d with SMTP id z2-20020a1709060f0200b00799a731b44dmr2780764eji.405.1668933724316; Sun, 20 Nov 2022 00:42:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668933724; cv=none; d=google.com; s=arc-20160816; b=t0Fms5h3uYYwsDC2nb06hMW0z4SVuVFH+cpxavsOfClGlzdJwyGU+/VLMgvKnjwVvA 1k/bvhpsbt/8D7Vm5L80hzZPOYHCOvf6j3NJzY/tvA6LuQGNspt5KQz1a9nfNsxxWnKm SPrPJgbaDOHe0alIIrLlFbvkiadlfRGMW9iyuVPK5vha6Wd887l7b1IJlgtVugY9OUtp 9mc4aWJ3edXH9eDGV49TL8ArkxpJBbISHYmOrv8ThOZVrMRD4oCNEbdQ3Y7vwqnRzVLP kKb+UmrNK3Ht2vxnjDsrlpUO1btyXt3s0ND8fGaqnLG6FJFIajqzZef2gm9WE5/u9f5q hcNw== 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=KREE+r7qtUPJ6Q7iwDE2gCMIZPWSV5MueN+Yq/3o4tM=; b=U3wCzGv7TzRIGI/j5I2wbZU++58BtC+NjywmsBBPQocqROHfPduHXlBMPikn/s7Mew 9YqxpQSk7gozW8cTSmcBNmqkvYpYNiE+BxTg9s3eX8kwXKMafmZcwNhtm7HMmo5xibxb Le78kabFl2zue6UX5sO2fQmOLP+GU21LvIKh6EO3vMF+Q4HvCtWb7nYbF8KPTAMl0V5G exKSUgFNqz71/vdnOX9+JZVwYkKnSRMDEivfm1kadxW2AFqfXn5n51Z6yuELnpIFuKuO EaHklXq0t/ZG44Wx2oTzSDX3b+lsMZXO9SE2/K0dtz7vHTbYI16WagJ2PqWPZID5rB0y ON9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=T8mOFsoc; 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 c13-20020a170906340d00b007adbc807ca8si5607230ejb.137.2022.11.20.00.41.40; Sun, 20 Nov 2022 00:42:04 -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=T8mOFsoc; 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 S229500AbiKTIVu (ORCPT + 91 others); Sun, 20 Nov 2022 03:21:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiKTIVs (ORCPT ); Sun, 20 Nov 2022 03:21:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 716D4970A8 for ; Sun, 20 Nov 2022 00:21:47 -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 8F13B60C0B for ; Sun, 20 Nov 2022 08:21:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 957BBC433C1; Sun, 20 Nov 2022 08:21:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1668932505; bh=elZoUtt4+Cz+4m6hCEZRiBaFyMNqvEmC2jXE1vEy4gU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T8mOFsocyCJ5i9x7p9AAcQx5oQv0JeazCM+ihLU2urL7QgET15UM/kHpxXH9d1OFl dd+E60K4HAvU3eNFyfR5x2zynfJZXo2YV5dRaxfzlPSPMgfKeeUIIIJxMOjGNV3zX1 EmjvvCzzLor6xjYjOvG7s6p4lQ73DirZ3hVjZUYE= Date: Sun, 20 Nov 2022 09:21:43 +0100 From: Greg KH To: Anjali Kulkarni Cc: "linux-kernel@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: <20221118191202.2357801-1-anjali.k.kulkarni@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Note, html email is rejected by kernel mailing lists, and top-posting does not work at all in discussions. Please fix your email client if you wish to participate in kernel development. On Sat, Nov 19, 2022 at 05:50:03PM +0000, Anjali Kulkarni wrote: > I will give it a try, but the majority of the savings are due to avoiding the conversion from binary to string in /proc. That goes contrary to your previous statement saying that the readfile call would help out here. And there might be ways to convert binary to strings, perhaps look into doing that? good luck, greg k-h