AIX 메모리 관련 스크립트 작성중입니다.
시스템 메모리를 측정, 스크립트를 작성중입니다.
TOTAL, Used, Free
위의 정보를 추출을 해야하는데
vmstat -v 명령어를 써 보면
1003520 memory pages
959977 lruable pages
3073 free pages
1 memory pools
259726 pinned pages
80.0 maxpin percentage
20.0 minperm percentage
80.0 maxperm percentage
21.9 numperm percentage
210500 file pages
0.0 compressed percentage
0 compressed pages
21.9 numclient percentage
위와같이 출력이 되고있습니다.
이중에
memory pages 1003520 * 4096 / 1024 / 1024
lruable pages 959977 * 4096 / 1024 / 1024
free pages 3073 * 4096 / 1024 / 1024
이 정보들로 값을 쓰고있는데,
topas로 보는 결과들과 상이한 정보여서 난해합니다.
total의 경우 딱 맞아 떨이지나,
lruable pages
free pages
위의 두 값들은 비이상적으로 판단되고있습니다.
혹시 vmstat -v 옵션 말고
다른 명령어로 토탈, 현재사용량, 남은 사용량
등을 확인할수 있는 명령어가 뭐 없을까요? (svmon, topas, 등등 제외...)
이런 방법은 어떨지요....
svmon -O summary=basic,unit=auto
svmon -G -O unit=GB
root 권한은...
없는상태여서,
제한사항이 많네여...ㅠㅠ
댓글 달기