[ CnUnix ] in KIDS 글 쓴 이(By): terzeron (microkid) 날 짜 (Date): 2006년 8월 11일 금요일 오전 09시 58분 06초 제 목(Title): Re: [q] ps -al man ps . . . size SZ approximate amount of swap space that would be required if the process were to dirty all writable pages and then be swapped out. This number is very rough! sz SZ size in physical pages of the core image of the process. This includes text, data, and stack space. Device mappings are currently excluded; this is subject to change. See vsz and rss. 둘 중의 어느 것일까요? ^^ 결론은 ps나 top이 아니라 pmap으로 heap과 stack의 크기를 봐야 한다는 겁니다. (proc FS의 정보를 보는 것과 유사한 방법입니다.) pmap -x <프로세스ID> | perl -ne "print if /heap|stack/;" 이거 2개 말고는 프로그래머가 메모리 관리를 위해 신경 쓸 게 별로 없습니다. --- 어떤 성취가, 어떤 조롱이, 또는 어떤 고뇌가 나를 기다리고 있을지 나는 모른다. 나는 아무 것도 모른다. 그러나 나는 아직 과거의 경이로운 기적의 시대가 영원히 과거의 것이 되어 버리지는 않았다는 사실을 굳게 믿고 있다. - Stanislaw Lem - |