glances
glances copied to clipboard
Docker Glances not measuring RDMA NFS traffic on interface?
Describe the bug I am sorry if this is a stupid question and out of my "league". I have glances running on an Arch Linux host that has an RDMA NFS share. It seems as if glances is not seeing the RDMA traffic when it can see the Samba traffic just fine. Is this to be expected?
Thanks!
Desktop (please complete the following information):
- OS: Arch Linux 5.10.74-1-lts
- Glances v3.2.4.2 with PsUtil v5.8.0
- Docker image nicolargo/glances:latest
Hi @sotiris-bos
there is no stupid question here :) Glances do not see if it is a TCP or RDMA NFS share, it works at an higher level thanks to the PsUtil lib.
Please can you paste/copy the result of the following commands:
$ python
>>> import psutil
>>> psutil.version
>>> psutil.disk_partitions(True)
Hi @nicolargo , thanks for the reply!
I suppose since I am running this in a docker container you want those commands ran inside the container, correct?
In the container the psutil.version
command prints:
>>> psutil.version
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'psutil' has no attribute 'version'
I cannot run it directly on the host since import psutil
fails because psutil is not installed on the host OS.
I also found this in the psutil documentation, maybe this is what you wanted:
>>> psutil.version_info
(5, 8, 0)
>>>
>>> psutil.disk_partitions(True)
[sdiskpart(device='io/enc/dockervolumes/02635d38f3cee8066e662b8f00192b0e41cf4bd2b9f78ff00001b20bb31c5455', mountpoint='/', fstype='zfs', opts='rw,relatime,xattr,posixacl', maxfile=255, maxpath=4096), sdiskpart(device='proc', mountpoint='/proc', fstype='proc', opts='rw,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096), sdiskpart(device='tmpfs', mountpoint='/dev', fstype='tmpfs', opts='rw,nosuid,size=65536k,mode=755,inode64', maxfile=255, maxpath=4096), sdiskpart(device='devpts', mountpoint='/dev/pts', fstype='devpts', opts='rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666', maxfile=255, maxpath=4096), sdiskpart(device='sysfs', mountpoint='/sys', fstype='sysfs', opts='ro,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096), sdiskpart(device='tmpfs', mountpoint='/sys/fs/cgroup', fstype='tmpfs', opts='rw,nosuid,nodev,noexec,relatime,mode=755,inode64', maxfile=255, maxpath=4096), sdiskpart(device='cgroup', mountpoint='/sys/fs/cgroup/systemd', fstype='cgroup', opts='ro,nosuid,nodev,noexec,relatime,xattr,name=systemd', maxfile=255, maxpath=4096), sdiskpart(device='cgroup', mountpoint='/sys/fs/cgroup/perf_event', fstype='cgroup', opts='ro,nosuid,nodev,noexec,relatime,perf_event', maxfile=255, maxpath=4096), sdiskpart(device='cgroup', mountpoint='/sys/fs/cgroup/memory', fstype='cgroup', opts='ro,nosuid,nodev,noexec,relatime,memory', maxfile=255, maxpath=4096), sdiskpart(device='cgroup', mountpoint='/sys/fs/cgroup/cpu,cpuacct', fstype='cgroup', opts='ro,nosuid,nodev,noexec,relatime,cpu,cpuacct', maxfile=255, maxpath=4096), sdiskpart(device='cgroup', mountpoint='/sys/fs/cgroup/net_cls,net_prio', fstype='cgroup', opts='ro,nosuid,nodev,noexec,relatime,net_cls,net_prio', maxfile=255, maxpath=4096), sdiskpart(device='cgroup', mountpoint='/sys/fs/cgroup/blkio', fstype='cgroup', opts='ro,nosuid,nodev,noexec,relatime,blkio', maxfile=255, maxpath=4096), sdiskpart(device='cgroup', mountpoint='/sys/fs/cgroup/rdma', fstype='cgroup', opts='ro,nosuid,nodev,noexec,relatime,rdma', maxfile=255, maxpath=4096), sdiskpart(device='cgroup', mountpoint='/sys/fs/cgroup/devices', fstype='cgroup', opts='ro,nosuid,nodev,noexec,relatime,devices', maxfile=255, maxpath=4096), sdiskpart(device='cgroup', mountpoint='/sys/fs/cgroup/freezer', fstype='cgroup', opts='ro,nosuid,nodev,noexec,relatime,freezer', maxfile=255, maxpath=4096), sdiskpart(device='cgroup', mountpoint='/sys/fs/cgroup/cpuset', fstype='cgroup', opts='ro,nosuid,nodev,noexec,relatime,cpuset', maxfile=255, maxpath=4096), sdiskpart(device='cgroup', mountpoint='/sys/fs/cgroup/hugetlb', fstype='cgroup', opts='ro,nosuid,nodev,noexec,relatime,hugetlb', maxfile=255, maxpath=4096), sdiskpart(device='cgroup', mountpoint='/sys/fs/cgroup/pids', fstype='cgroup', opts='ro,nosuid,nodev,noexec,relatime,pids', maxfile=255, maxpath=4096), sdiskpart(device='mqueue', mountpoint='/dev/mqueue', fstype='mqueue', opts='rw,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096), sdiskpart(device='shm', mountpoint='/dev/shm', fstype='tmpfs', opts='rw,nosuid,nodev,noexec,relatime,size=65536k,inode64', maxfile=255, maxpath=4096), sdiskpart(device='io/enc/docker', mountpoint='/etc/resolv.conf', fstype='zfs', opts='rw,relatime,xattr,posixacl', maxfile=255, maxpath=4096), sdiskpart(device='io/enc/docker', mountpoint='/etc/hostname', fstype='zfs', opts='rw,relatime,xattr,posixacl', maxfile=255, maxpath=4096), sdiskpart(device='io/enc/docker', mountpoint='/etc/hosts', fstype='zfs', opts='rw,relatime,xattr,posixacl', maxfile=255, maxpath=4096), sdiskpart(device='nasrpool/enc/home/root', mountpoint='/glances/conf/glances.conf', fstype='zfs', opts='rw,relatime,xattr,posixacl', maxfile=255, maxpath=4096), sdiskpart(device='tmpfs', mountpoint='/run/docker.sock', fstype='tmpfs', opts='ro,size=52813048k,nr_inodes=819200,mode=755,inode64', maxfile=255, maxpath=4096), sdiskpart(device='proc', mountpoint='/proc/bus', fstype='proc', opts='ro,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096), sdiskpart(device='proc', mountpoint='/proc/fs', fstype='proc', opts='ro,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096), sdiskpart(device='proc', mountpoint='/proc/irq', fstype='proc', opts='ro,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096), sdiskpart(device='proc', mountpoint='/proc/sys', fstype='proc', opts='ro,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096), sdiskpart(device='proc', mountpoint='/proc/sysrq-trigger', fstype='proc', opts='ro,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096), sdiskpart(device='tmpfs', mountpoint='/proc/asound', fstype='tmpfs', opts='ro,relatime,inode64', maxfile=255, maxpath=4096), sdiskpart(device='tmpfs', mountpoint='/proc/acpi', fstype='tmpfs', opts='ro,relatime,inode64', maxfile=255, maxpath=4096), sdiskpart(device='tmpfs', mountpoint='/proc/kcore', fstype='tmpfs',opts='rw,nosuid,size=65536k,mode=755,inode64', maxfile=255, maxpath=4096), sdiskpart(device='tmpfs', mountpoint='/proc/keys', fstype='tmpfs', opts='rw,nosuid,size=65536k,mode=755,inode64', maxfile=255, maxpath=4096), sdiskpart(device='tmpfs', mountpoint='/proc/latency_stats', fstype='tmpfs', opts='rw,nosuid,size=65536k,mode=755,inode64', maxfile=255, maxpath=4096), sdiskpart(device='tmpfs', mountpoint='/proc/timer_list', fstype='tmpfs', opts='rw,nosuid,size=65536k,mode=755,inode64', maxfile=255, maxpath=4096), sdiskpart(device='tmpfs', mountpoint='/proc/sched_debug', fstype='tmpfs', opts='rw,nosuid,size=65536k,mode=755,inode64', maxfile=255, maxpath=4096), sdiskpart(device='tmpfs', mountpoint='/proc/scsi', fstype='tmpfs', opts='ro,relatime,inode64', maxfile=255, maxpath=4096), sdiskpart(device='tmpfs', mountpoint='/sys/firmware', fstype='tmpfs', opts='ro,relatime,inode64', maxfile=255, maxpath=4096)]
@sotiris-bos Could you tell me what exactly you meant by glances being able to see Samba Traffic but not the RDMA Traffic?
Also more details about the RDMA setup would be helpful.