Posts in Linux
Monitoring GPU usage
- 04 September 2020
If you (like me) happen to be the performance freak, most likely you are well aware of process viewers like htop. Since I’ve started working with GPU-computing I missed htop-like tool tailored to monitor GPU usage. This is becoming more of an issue if you’re working in multi-GPU setups.
You can use nvidia-smi
which is shipped with NVIDIA drivers, but it’s not very interactive.
gpustat provide nice and interactive view of the processes running and resources used across your GPUs, but you’ll need to switch between windows if you want to also monitor CPU usage.
Apache2 reading from sshfs share
- 13 January 2016
Today, I have encountered problems trying to read data from sshfs share in apache2. I was getting 403 Forbidden error. It turned out you need to enable other_user in sshfs, so other users than the one mounting the share can access the data, as apache2 is using www-data user.
Inspired by serverfault and unix.stackexchange.
Progress of long processes in BASH
- 05 June 2014
You can view progress of your process execution in UNIX using pv or bar.
With pv
, you can even report progress of multiple modules of your pipeline.
This is very useful for tracing large database dump/restore progress: