Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
该time命令包含一个格式参数“M”,根据timeLinux 上的手册页,该参数用于以下用途:
time
Maximum resident set size of the process during its lifetime, in Kilobytes.
但是,它看起来time无法测量进程在其生命周期内的最大虚拟集大小。如何在 Linux 上实现这一点?
编辑:删除了一个没有被问到的问题的答案。
看起来这样做的方法是VmPeak从/prod/[pid]/status. 参见过程(5)
VmPeak
/prod/[pid]/status