At present, I only know that I need 3 commands to view the video memory. If anyone knows that only one command is enough, welcome to give pointers.
Okay, let's start the text.
There are three main steps to view the video memory occupied by the program:
- Find your own process id
- Find the server (node) according to the id, which card will be recorded on the server (node)
- View the video memory usage according to the server node and card number
for example:
- Find your own process id
bjobs -w
It can be seen that the process number is: 58170
2. Find the server (node) according to the id, and which card will be recorded on the server (node)
bjobs -l 58170
Find r1cmpsrvs79-14ig0602:gpus=3. Among them, "r1cmpsrvs79-14ig0602" represents the node number; "gpus=3" represents the 3rd card
3. The last step. View the video memory usage according to the server node and card number
lsload -gpuload -w r1cmpsrvs79-14ig0602
Find the No. 3 card, you can see that a shared 27.5G of video memory.