Skip to content

How can I pipe this sysfs data into a system monitoring tool so I can track it visually? #123

@opqriu

Description

@opqriu

I can check my GPU memory usage in the terminal with the following command,
but I'm not sure how to integrate it into a "Resource monitor".

~$ expr $(cat /sys/class/drm/card1/device/mem_info_vis_vram_used) / 1024 / 1024

~$ watch -n 5 \
'USED=$(cat /sys/class/drm/card1/device/mem_info_vis_vram_used); \
TOTAL=$(cat /sys/class/drm/card1/device/mem_info_vis_vram_total); \
echo "VRAM Usage: $((USED / 1024 / 1024)) / $((TOTAL / 1024 / 1024)) MiB"'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions