![Ubuntu 16:04 LTS:对于交换空间来说,是否有“最大驻留集大小”等价物?](https://linux22.com/image/1528098/Ubuntu%2016%3A04%20LTS%EF%BC%9A%E5%AF%B9%E4%BA%8E%E4%BA%A4%E6%8D%A2%E7%A9%BA%E9%97%B4%E6%9D%A5%E8%AF%B4%EF%BC%8C%E6%98%AF%E5%90%A6%E6%9C%89%E2%80%9C%E6%9C%80%E5%A4%A7%E9%A9%BB%E7%95%99%E9%9B%86%E5%A4%A7%E5%B0%8F%E2%80%9D%E7%AD%89%E4%BB%B7%E7%89%A9%EF%BC%9F.png)
我用/usr/bin/time -v
它来获取有关我正在运行的应用程序的一些信息。
Command being timed: "./a"
User time (seconds): 0.00
System time (seconds): 0.00
Percent of CPU this job got: 0%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.12
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 4652
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 202
Voluntary context switches: 3
Involuntary context switches: 1
Swaps: 0
File system inputs: 0
File system outputs: 0
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
如果我理解正确的话,最大驻留集大小对应于应用程序在执行期间所需的最大 RAM。我有一个应用程序使用了 100% 的 RAM 和大量交换空间,我想为此打印一些等效内容。这可能吗?