LinuxNotes

[ show all running processes ]

ps -aux | less

'ps' means: Process Status

The -a option tells ps to list the processes of all users on the system rather than just those of the current user, with the exception of group leaders and processes not associated with a terminal. A group leader is the first member of a group of related processes.

The -u option tells ps to provide detailed information about each process. The -x option adds to the list processes that have no controlling terminal, such as daemons, which are programs that are launched during booting (i.e., computer startup) and run unobtrusively in the background until they are activated by a particular event or condition.

As the list of processes can be quite long and occupy more than a single screen, the output of ps -aux can be piped (i.e., transferred) to the less command, which lets it be viewed one screenful at a time. The output can be advanced one screen forward by pressing the SPACE bar and one screen backward by pressing the b key.

[ create a new env with conda ]

conda create --name {ENV_NAME} python={PYTHON_VERSION}

There are 2 variables in the command line, ENV_NAME and PYTHON_VERSION. Decide them to your needs.

[ show the usage of the Nvidia GPUs]

nvidia-smi 

Some useful option:

-l : Output the status frequently, default parameter is 5. You can make it show every 10 seconds by nvidia-smi -l 10.

-i : Choose to show a certain GPU by this option.

-f : redirect the output to other file.

To get more informations officially, visit this doc: http://developer.download.nvidia.com/compute/DCGM/docs/nvidia-smi-367.38.pdf

猜你喜欢

转载自www.cnblogs.com/hizhaolei/p/9900883.html