Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4631964pxv; Tue, 29 Jun 2021 11:36:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcPHhEff4Qh4wq+OPZ8CDMU4L9VKXz2liNexSlqR9pcS1kT4Vzvji4HATxobV91xxBssjU X-Received: by 2002:a05:6e02:1e06:: with SMTP id g6mr23283314ila.192.1624991760091; Tue, 29 Jun 2021 11:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624991760; cv=none; d=google.com; s=arc-20160816; b=s2hXqgZ72aSr6qlQLKwytRUz976UzyD4DF+A13m6sMkarA/xPtdb90IDdy1WeuuQpp T+2Vu7kPOqQWg+zu3JHAcIDe0PbcWsnACYeSqlAI2VnytdUUoYgglNojy2Q0a+GPnF1u IFOryhWaUCqchTjAyK5wZ1g6XOfN4COiIw8bjUzPSmCQ/0FH6C3MPIeLirSTLOmO8xe5 uwHEGrB0UaMjOLKTT3BA3VfcaeF8ohLzWtX6f6SnSgJnb6YfZxPEO1Ma0YI4CJpDtZuC zSlgDJ6Lf6aPOTjHmKRWhcQ9dEomnRo1JOFbd5ATdXm/frfc9o4inHfkjvM6dhWjiWK5 5hKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=YM8NDkujfPP5IsIJvA9We9ZdMH2TzJNTJJvh1RewvzM=; b=tDieprcIXv79ATYdHZmCFABLsqfxoH8pSpDVO5gY+Yry+xAOmeChrXBBOJdejOCjpX WXce8aU4L1OYoPAR6auCyXuw7OnZ7qeYHlySg8Wei++6P7PVZLEYO/P0Blr/Jws7HKd6 CEAw+X0NQw5p5N4/n+i5RtVaOqDuq7npgue4cEpzXNJPI4bKZf4nvPtOQ1+g5KnokO7o cdYSyDOzktcdD+7cKyUUH/Lt8FDyDyeOFuJv+AEvHUWm/STl8awV8IdvHYuPf+Fk6M9k q6wIX8oCE3E/5YQAmw2vrXIYHHfJZzBkoM+/oFQvQrHAdfzRnYKWJ+jtYoYdNKRZ6mkJ yYdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=yBi5OjHS; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l17si14476725jaj.78.2021.06.29.11.35.47; Tue, 29 Jun 2021 11:36:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=yBi5OjHS; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234727AbhF2ShW (ORCPT + 99 others); Tue, 29 Jun 2021 14:37:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234700AbhF2ShW (ORCPT ); Tue, 29 Jun 2021 14:37:22 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7ADCC061760; Tue, 29 Jun 2021 11:34:54 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 4423C4F7D; Tue, 29 Jun 2021 14:34:54 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 4423C4F7D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1624991694; bh=YM8NDkujfPP5IsIJvA9We9ZdMH2TzJNTJJvh1RewvzM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yBi5OjHSb/ERDl1KqIOnDoANWia5Al6WzhMNXRRrl6m0hsPDyCBpnZmVGbGZEvCXD 3TlLRi+HYSndEOIkQ3TuxBHNGOahfNG2VvGlJcL7IqEo8fTfDjJXFaTEiRQCBCvhp+ zAvfckRQl+GP2s7lHYqbjHb1Rbk9yKyuJC/2if3s= Date: Tue, 29 Jun 2021 14:34:54 -0400 From: "bfields@fieldses.org" To: Amir Goldstein Cc: NeilBrown , Trond Myklebust , "linux-fsdevel@vger.kernel.org" , "dai.ngo@oracle.com" , "linux-nfs@vger.kernel.org" Subject: Re: automatic freeing of space on ENOSPC Message-ID: <20210629183454.GB1926@fieldses.org> References: <20210628194908.GB6776@fieldses.org> <9f1263b46d5c38b9590db1e2a04133a83772bc50.camel@hammerspace.com> <20210629011200.GA14733@fieldses.org> <162493102550.7211.15170485925982544813@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Jun 29, 2021 at 07:07:47AM +0300, Amir Goldstein wrote: > To me, stale silly renamed files sounds like a problem worth fixing > not as an excuse to create another similar problem. Yeah, it's ugly, I'd like to fix it some day, but given that people have lived with it since forever it's not the highest priority. > w.r.t pre-ENOSPC notification, I don't know of such notification > in filesystems. It exists for some thin-provisioned storage devices > (thinp as well I think), but that is not very useful for nfsd. > > OTOH, ENOSPC is rarely a surprising event. > I believe you can get away with tunable for nfsd, such as > % of available storage space that may consumed for > "opportunistic caching". > > Polling for available storage space every least time or so > in case there are possibly forgotten unlinked files should be > sufficient for any practical purpose IMO. Makes sense, thanks for the perspective. --b.