Skip to content

Disk usage doesn't show your disk usage (nfs) #255

@minrk

Description

@minrk

Problem

Disk usage currently reports the psutil disk.used and disk.total.
For nfs, that's the total used/space of the file system, not the user's own space/quota. So the user only sees that someone is using, not whether they are the one using up everything.

Proposed Solution

  • Option to collect via du (much slower) when the home filesystem is shared.
  • Get quota as limit (e.g. from env), instead of disk.total

Additional context

This was discovered testing with c.ResourceUseDisplay.track_disk_usage = True on the 2i2c jupyter-health hub where I had 250MB used, but the metric reported 7GB, which confused me until I understood what the metric was doing.

I'm not sure how this should best interact with e.g. 2i2c's storage quota functionality, but that seems relevant.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions