mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[GH-ISSUE #173] [BUG][upstream] used value of host memory is different from the result of free command #108
Labels
No labels
api
bug
bug
cli / tui
dependencies
documentation
documentation
documentation
duplicate
enhancement
exporter
invalid
pull-request
pynvml
question
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/nvitop#108
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @1saac-k on GitHub (Jul 25, 2025).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/173
Originally assigned to: @XuehaiPan on GitHub.
Required prerequisites
What version of nvitop are you using?
1.5.2.dev5 (the latest from source code)
Operating system and version
Ubuntu 24.04 LTS
NVIDIA driver version
575.51.03
NVIDIA-SMI
Python environment
3.10.16 (main, Feb 12 2025, 14:50:02) [Clang 19.1.6 ] linux
nvidia-ml-py==12.575.51
nvitop @ file:///home/<**>/ws/nvitop_origin
Problem description
The
usedvalue of CPU memory is incorrect due to a bug inpsutil, which is a dependency ofnvitop.Refer to https://github.com/giampaolo/psutil/issues/2604 (reported by me)
Steps to Reproduce
Here, we will ignore the difference in the
used/USEDvalue.In other shell,
Then,
used/shared/cache(it's not page cache) increases in free commandUSEDdoes not increaseTraceback
Logs
Expected behavior
Increase
USEDas free command.Additional context
It would be best if this is fixed in
psutil, as it's a bug inpsutil.However, we can also apply a workaround patch in nvitop as follows:
Below is result after run torch.empty(..)
[ MEM: ██▌ 4.0% USED: 18.77GiB ][ MEM: ██▌ 4.0% USED: 40.76GiB ]@XuehaiPan commented on GitHub (Jul 25, 2025):
Hi @kyet, thanks for filing the issue and also reporting it to the upstream. Let's wait for the response from the upstream maintainer.
@1saac-k commented on GitHub (Aug 14, 2025):
@XuehaiPan My upstream PR has been merged. It will be included in psutil 7.1.0.
9c7c46b413Let's wait for next release of psutil.
@XuehaiPan commented on GitHub (Aug 16, 2025):
Thanks for the information and contribution! @kyet