man getrusage 2
说
ru_maxrss (since Linux 2.6.32)
This is the maximum resident set size used (in kilobytes). For RUSAGE_CHILDREN, this is the resident set size of the largest
child, not the maximum resident set size of the process tree.
那么这个数字到底是什么意思?
澄清
—
DW
ru_maxss
一下:在Mac OS X(Darwin)计算机上以字节为单位,在BSD计算机和Linux计算机上以千字节为单位。请参阅stackoverflow.com/q/40773924/781723和stackoverflow.com/q/12050913/781723。
ru_maxrss
在Mac / BSD机器上以字节为单位的注释。