0
如果我們在AIX上執行命令ps -Z,則會得到進程設置的SHMPGSZ。 有沒有什麼辦法以編程方式檢索這些信息?以編程方式在AIX上檢索SHMPGSZ?
如果我們在AIX上執行命令ps -Z,則會得到進程設置的SHMPGSZ。 有沒有什麼辦法以編程方式檢索這些信息?以編程方式在AIX上檢索SHMPGSZ?
開始通過使用getprocs
在procinfo結構(procinfo.h),有:
char pi_shm_l2psize; /* log2 of a proc's shared mem pg sz */