-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
Description
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.
Paul2708