You can use the tool nvtop (Linux only)
to visualize the usage of Nvidia GPUs.
However,
it is only available on Linux
and is not suitable for tracking and visualize the GPU usage in a long time period.
Another simple approach to track and visualize the GPU usage is
to dump GPU usage statistics into a CSV file
using the following command
Build Docker Images Using Kaniko
-
Kaniko works differently from Docker. It runs inside a Docker container and detect and extract new layers to build Docker images. Since Kaniko manipulates the filesystem (layers) inside the Docker container, it can have unexpected side effect if not used carefully. For this reason, the developer team suggests users to …
WSL2 Filesystem
Performance Issue
The performance of IO is extremely bad if you access the the Windows filesystem from WSL 2. This is also true if you use Docker in WSL 2 (since Docker on WSL 2 share the same kernel as WSL 2). It is suggested that you stick to WSL …
Run Docker Containers Inside a Docker Container
You can run Docker containers inside a Docker container.
To allow this,
you have to pass the docker socks into the container
using the option -v /var/run/docker.sock:/var/run/docker.sock.
For more discussions,
please refer to
How To Run Docker in Docker Container [3 Easy Methods …
Compare Data Frames Using DataCompy in Python
Installation¶
Hands on the Python module subprocess
General Tips¶
The method
subprocess.runis preferred over older high-level APIs (subprocess.call,subprocess.check_callandsubprocess.check_output). The methodsubprocess.Popen(which powers the high-level APIs) can be used if you need advanced controls. When running a shell command usingsubprocess.run,Avoid using system shell (i.e., avoid using
shell=True) for 2 reasons. First, avoid shell injection attack. Second, there is no need for you to manually escape special characters in the command.