From owner-freebsd-fs@freebsd.org Sun Jan 17 05:03:57 2021 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BCEB94DB645 for ; Sun, 17 Jan 2021 05:03:57 +0000 (UTC) (envelope-from jdavidlists@gmail.com) Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DJN9m5wJtz3vlL for ; Sun, 17 Jan 2021 05:03:56 +0000 (UTC) (envelope-from jdavidlists@gmail.com) Received: by mail-lf1-x133.google.com with SMTP id u25so19290384lfc.2 for ; Sat, 16 Jan 2021 21:03:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ccRefeo4YsgltQRYwQq8iPyHcvntSzXaME7IeRkev8k=; b=UJrG1AMhyysrD+LKPViBM+VUXDVwFxoIGGCgLXK6WdmqajMvZrj3eXo5Ghr4RvGZ0G OtuAGbEZJJE7vWB2cc4+idveCSyK8mF063rjTr8SSxFbpe6FC1Oo6FGgI3h8K0qzoh7g mcAscG0uvi+b6QggqQU9ub9mohMnno3AhqMXaKxGQjBETI6awbARJirEfnJsXd4yn+xl p9ltlaNjcE/NAAaN1BOLc+AKXOCN7n+w7PPx02lCppxX1Vx6narmr1OiowulquotNE9/ 4h3RKNnVO1DvTTG6DG7alaUfU3O++NkUpHYTmzD/50RHfFT+OVocZD34ZsVJwTslbPn5 BH/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ccRefeo4YsgltQRYwQq8iPyHcvntSzXaME7IeRkev8k=; b=iCwGkPtO1fqWvlPiCAlhoTSSb/2DDVgmA9sr+y+V0yRpyknhBjQv06v8jHIAf3RmfC hfXmnMPiswDvs/r40Bhvyf/NPJyPflCWMIfuRxQ4Q+qQoUmrq/bDfwS0PwUSAmhWiKVZ N5cw9s/Ww4S+WZbPHGvDS3Bf8eYZWQiDqlJwBFdQexwuMyEZugdZGQnH36T94UrdnWnl RAgSanypa7jZdVYR9MmBy/Yfn5EApDvHliSIeuJ49ndh5qkAy95jsQO7AocEF6HqBjIv 04Mj+WcQpxYEOs6K5otIh76pwfb4YU92187mmguGYzO3QO0+XDXe3pvLyfHhs7Qw4Acn aX1Q== X-Gm-Message-State: AOAM531anRe4ogKSVxZBPBq1+vrvguR0ZVze11RWrdAMg17y/IW61k5X tlAp+DiDpUs7mo5sGb6GB908evflH/viZATaW0I= X-Google-Smtp-Source: ABdhPJx0zDtf02PPVY0Y+LrdnfuYfCEumbqld2jkqYy2m8tsQu8+3LBhogb52daWAiw3jC0iQ7+qFSpRKdISt1byjbo= X-Received: by 2002:ac2:5450:: with SMTP id d16mr8909784lfn.309.1610859833604; Sat, 16 Jan 2021 21:03:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: J David Date: Sun, 17 Jan 2021 00:03:42 -0500 Message-ID: Subject: Re: Major issues with nfsv4 To: Rick Macklem Cc: Konstantin Belousov , "freebsd-fs@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4DJN9m5wJtz3vlL X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=UJrG1AMh; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of jdavidlists@gmail.com designates 2a00:1450:4864:20::133 as permitted sender) smtp.mailfrom=jdavidlists@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::133:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::133:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::133:from]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-fs]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jan 2021 05:03:57 -0000 On Sat, Jan 16, 2021 at 5:57 PM Rick Macklem wrote: > Opens can be closed until all FreeBSD open file descriptors for the file > are closed. > --> Just the way it is. It is not an unintended leak. They go away once > all file descriptors get closed, [...] > However, none of the above seems unexpected, except maybe for why > "ls" in the chroot opens 3 regular files each time. I don't know what > chroot actually does for something like "ls"? I'll look. It probably isn't anything ls is doing. It's probably just the open of whatever shared libraries ls has in common with the shell running in the other window. And so, on a long-running system with frequently-accessed binaries (or just shared libraries) mounted over NFS, where it's unlikely that all descriptors will ever be closed at the same time, a hang/crash/failure essentially becomes inevitable? Is this a solvable problem? (Outside of oneopenown.) Thanks!