출처 :http://developers.sun.com/solaris/articles/kstat_api.html?feed=DSC
Introduction
Working in Sun's Adoption Systems Practice for the Solaris 10 OS, I do performance analysis and support software development in the U.S. Frequently, during the course of my work, I run across situations in which customers are usingsystem()
to execute a script that usesawk
,perf
,grep
,cut
, and so on to extract various operating system metrics of interest. The numerous forks and execs are expensive and harm performance. I usually suggest using thelibkstat
APIs to determine the desired metrics from within the program code. I am often asked to provide examples on how to use thekstat
APIs.
This article provides examples on how to use thekstat
andlibkstat
APIs to extract metrics from the Solaris OS. The examples include "Walking Through All thekstat
" and "Getting NICkstat
Output Using the Java Platform."
Download the document asPDF.
'Unix Linux' 카테고리의 다른 글
병렬 "make" 를 사용하여 빌드 시간 최적화 하기 (0) | 2007.03.28 |
---|---|
[솔라리스] 공유 개체/라이브러리 빌드 및 링크 방법 (0) | 2007.03.27 |
[솔라리스] 64비트로 계산할 수 있도록 컴파일하는 방법 (0) | 2007.03.27 |