Similar to question How to log CPU load?, I would like to log memory of a process.
The process I want to log, is killed on a remote server, and I want to find out the CPU load and the memory usage just before it was killed.
[update]
Both Stefano Palazzo's neat little python script and
Micha?'s one line output values that are smaller than in top for CPU and Mem. Do you have an idea why?
output top: …
在CUDA安装教程告诉我下面的两行添加到我的.bash_profile。
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
Run Code Online (Sandbox Code Playgroud)
但它不起作用(TM)。即使我将这些行添加到.bash_profileand .bashrc,我仍然必须手动输入导出,以便找到路径。
所以我的问题。可能是什么原因.bash_profile,并.bashrc没有负载/执行的出口?
谢谢!!
ps 我通过 ssh 进入机器,除了 CUDA 驱动器和 sdk 之外,它是一个全新的 Ubuntu 10.10 安装。
pps 全新安装一开始就没有.bash_profile。nano ~/.bash_profile是空的