public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Daniel Tschlatscher <d.tschlatscher@proxmox.com>,
	Proxmox Backup Server development discussion
	<pbs-devel@lists.proxmox.com>
Subject: Re: [pbs-devel] [PATCH proxmox-backup v4 1/3] fix #4077: Estimated Full metric on ext4 file systems
Date: Wed, 12 Oct 2022 13:31:43 +0200	[thread overview]
Message-ID: <34d7c201-12ee-df7f-b0be-db7d6bdd91db@proxmox.com> (raw)
In-Reply-To: <a0173737-787a-1fc9-9ec0-d859864bce76@proxmox.com>

Am 10/10/2022 um 16:23 schrieb Daniel Tschlatscher:
> It seems to me, finding a way to tell which dataset to use for the
> calculation is the preferable way here, as the heuristic approach of
> recording it anyway and switching at a later date would show the same
> jump for users upgrading from an earlier version or in cases where the
> RRDB did not have enough time to populate between versions.

sure, if you don't add a dynamic check on runtime, but the one that update
are often those that update frequently or on every point release, so it
probably would cover a major part of users - albeit, that's rather
guesstimation and it's also a burden to keep track and communicate to users,
so probably better to either mix in dynamically, if new value hasn't enough
data but old value has, or just ignore it altogether; I'd at least try to do
the former, if it's a lot of complexity we can still drop it.


> Or would you reckon this is acceptable in such (less frequent) cases, as
> it is more of a cosmetic feature anyway?

certainly no deal breaker, not sure how much its actually used, or relied
on in practice anyway.

> Mostly, it made it easier to just drop in place instead of the value for
> total, rather than querying combining the data for used and available. I
> didn't overwrite it also, as that would be a breaking change.
> 
> In my eyes, it is also more easily understandable from the POV of an API
> user because the naming for available does not inherently carry the
> information that this value excludes any unusable storage for
> unprivileged users.
> I see potential for confusion here, as one might incorrectly assume that
> used + available = total, when that is, in my testing, really never the
> case. Potentially, because of reserved blocks on ext4 file systems and
> because of a small amount which seems to be claimed by the kernel.
> 

not convinced. df or findmnt --df all show size (total), used and avail, and
those tools a pretty much standard since decades. total_unpriv is really not
_that_ telling if one comes from the outside, as it isn't clear what unrpiv
refers to at all IMO and why there are two totals, if they should be sumed
together (i.e., is total the one for priv + unrpiv or just priv)...
I'd rather just stick to established defaults/terms and avoid inventing new
ones.




      reply	other threads:[~2022-10-12 11:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-24 10:26 Daniel Tschlatscher
2022-08-24 10:26 ` [pbs-devel] [PATCH proxmox-backup v4 2/3] expose the unpriviliged total in the api and use it in the GUI Daniel Tschlatscher
2022-08-24 10:26 ` [pbs-devel] [PATCH proxmox-backup v4 3/3] gui: change reporting of the estimated_time_full to "Full" if no space Daniel Tschlatscher
2022-10-05 15:56 ` [pbs-devel] [PATCH proxmox-backup v4 1/3] fix #4077: Estimated Full metric on ext4 file systems Thomas Lamprecht
2022-10-10 14:23   ` Daniel Tschlatscher
2022-10-12 11:31     ` Thomas Lamprecht [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=34d7c201-12ee-df7f-b0be-db7d6bdd91db@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=d.tschlatscher@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal