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=-7.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 54A00C433E0 for ; Thu, 4 Mar 2021 13:42:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2EEBA64F39 for ; Thu, 4 Mar 2021 13:42:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241429AbhCDNmL (ORCPT ); Thu, 4 Mar 2021 08:42:11 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:32654 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241450AbhCDNmF (ORCPT ); Thu, 4 Mar 2021 08:42:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614865239; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VjWdDzHEXvFrstKm/dapNocPGmoS6dP1Am6HGTfpRZc=; b=ebVOj198Y2Ol+Kx4Odv6DdA3lXh2dlOL+UfM8j+rq6nYM8F0yzrlUKg+XvutNQ8cD/xdDa B7NETxSh0AROZu9Hk5rjyjkFORhjfWyWb0ciwxdvsKxbt90dFPDgSY9/1YlVbnPeAY1ReY OPJvDGjMx62ILqz1FRvRyiXKD1qZoHY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-30-qJu6xmUtPjSKFTooIs1C1Q-1; Thu, 04 Mar 2021 08:40:38 -0500 X-MC-Unique: qJu6xmUtPjSKFTooIs1C1Q-1 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 55C6F800D53; Thu, 4 Mar 2021 13:40:35 +0000 (UTC) Received: from madhat.boston.devel.redhat.com (ovpn-112-45.phx2.redhat.com [10.3.112.45]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0DC765C1A1; Thu, 4 Mar 2021 13:40:34 +0000 (UTC) Subject: Re: [PATCH 0/7 V4] The NFSv4 only mounting daemon. To: "J. Bruce Fields" Cc: Linux NFS Mailing list References: <20210219200815.792667-1-steved@redhat.com> <20210224203053.GF11591@fieldses.org> <1553fb2d-9b8e-f8eb-8c72-edcd14a2ad08@RedHat.com> <20210303152342.GA1282@fieldses.org> <376b6b0a-5679-4692-cfdb-b8c7919393a5@RedHat.com> <20210303215415.GE3949@fieldses.org> From: Steve Dickson Message-ID: <16b186ea-1abc-511d-3c38-1014b470eaa0@RedHat.com> Date: Thu, 4 Mar 2021 08:42:24 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210303215415.GE3949@fieldses.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 3/3/21 4:54 PM, J. Bruce Fields wrote: > On Wed, Mar 03, 2021 at 04:22:28PM -0500, Steve Dickson wrote: >> Hey! >> >> On 3/3/21 10:23 AM, J. Bruce Fields wrote: >>> On Tue, Mar 02, 2021 at 05:33:23PM -0500, Steve Dickson wrote: >>>> >>>> >>>> On 2/24/21 3:30 PM, J. Bruce Fields wrote: >>>>> On Fri, Feb 19, 2021 at 03:08:08PM -0500, Steve Dickson wrote: >>>>>> nfsv4.exportd is a daemon that will listen for only v4 mount upcalls. >>>>>> The idea is to allow distros to build a v4 only package >>>>>> which will have a much smaller footprint than the >>>>>> entire nfs-utils package. >>>>>> >>>>>> exportd uses no RPC code, which means none of the >>>>>> code or arguments that deal with v3 was ported, >>>>>> this again, makes the footprint much smaller. >>>>> >>>>> How much smaller? >>>> Will a bit smaller... but a number of daemons like nfsd[cld,clddb,cldnts] >>>> need to also come a long. >>> >>> Could we get some numbers? >>> >>> Looks like nfs-utils in F33 is about 1.2M: >>> >>> $ rpm -qi nfs-utils|grep ^Size >>> Size : 1243512 >>> >>> $ strip utils/mountd/mountd >>> $ ls -lh utils/mountd/mountd >>> -rwxrwxr-x. 1 bfields bfields 128K Mar 3 10:12 utils/mountd/mountd >>> $ strip utils/exportd/exportd >>> $ ls -lh utils/exportd/exportd >>> -rwxrwxr-x. 1 bfields bfields 106K Mar 3 10:12 utils/exportd/exportd >>> >>> So replacing mountd by exportd saves us about 20K out of 1.2M. Is it >>> worth it? >> In smaller foot print I guess I meant no v3 daemons, esp rpcbind. > > The rpcbind rpm is 120K installed, so if the new v4-only rpm has no > dependency on rpcbind then we save 120K. The point with rpcbind is it not going to be started which means it not opening up listening connection that may never be used. This has pissed of people for years! :-) > > So, for stuff needed in both v4-only and full cases, would we package > that in a common rpm that they both depend on? I thought of this... but I was going to get both packages working and then figure out what is common between them. steved. > > --b. >