小编Fra*_*ter的帖子

How to log memory and cpu usage of an application?

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: …

command-line cpu-load logging memory-usage

18
推荐指数
3
解决办法
4万
查看次数

`.bash_profile` 和 `.bashrc` 不执行导出的原因是什么?

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_profilenano ~/.bash_profile是空的

bash bashrc

5
推荐指数
1
解决办法
5354
查看次数

标签 统计

bash ×1

bashrc ×1

command-line ×1

cpu-load ×1

logging ×1

memory-usage ×1