리눅스 메모리 사용률 계산하는 법

  • hotrod
    (hotrod)
  • hotrod's Avatar 이 글의 작성자
  • Offline
  • Newbie
  • Newbie
더보기
17 Oct 2019 07:13 - 17 Oct 2019 07:15 #4889 작성자: hotrod
hotrod 님의 글: 리눅스 메모리 사용률 계산하는 법
1)
free

2)
sudo pmap -x <process pid>

3)
ps aux
- Virtual Size (VSZ)

4)
/proc/$pid/status

5)
ps -eo size,pid,user,command --sort -size | \
    awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' |\
    cut -d "" -f2 | cut -d "-" -f1

6)
top | grep <PROCESS NAME>
Time to create page: 0.059 seconds
Powered by Kunena Forum