Skip to content

Instantly share code, notes, and snippets.

@dongkwan-kim
Last active February 10, 2022 14:12
Show Gist options
  • Save dongkwan-kim/ce463bdc9e1130d6050e19064a7a9a5c to your computer and use it in GitHub Desktop.
Save dongkwan-kim/ce463bdc9e1130d6050e19064a7a9a5c to your computer and use it in GitHub Desktop.
nvidia-smi --query-compute-apps=pid,process_name,used_memory --format=csv
ps all --sort=-time | grep python
python -u analysis.py | tee log.txt
ps aux | grep -ie "query" | awk '{print $2}' | xargs kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment