How to D-trace

2010.12.22 18:22

조인상 조회 수:16408

원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어

Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

원문 : http://www.ischo.net -- 조인상 //시스템 엔지니어

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

The DTrace How to Guide is intended to help a new user learn how to use DTrace for gathering and using system and
application information from a SolarisTM and OpenSolarisTM system. It covers how to build a D script and identifies the
providers that every System Administrator and developer should know when learning and using DTrace. A few
examples to help the reader get started using DTrace are also included.
After reading this guide the user will be able to construct scripts to gather useful information about running
applications that in turn can be used to improve the performance on Solaris.
See the Solaris Dynamic Tracing Guide at http://docs.sun.com/app/docs/doc/817-6223 for more details on the
D language and DTrace.

 

DTrace How to 가이드는 솔라리스와 오픈 솔라리스 시스템에서 시스템과 어플리케이션 정보를 수집하는데에 Dtrace를 어떻게

사용하는지에 대해 새로운 유저를 돕기 위해 제작되었다.

매뉴얼에서는 D 스크립트를 어떻게 짜고 시스템 관리자와 개발자등 제공자들이 Dtrace 를 어떻게 사용하고 배우는지를 표시한다.

독자들이 Dtrace 를 사용하는걸 시작할 수 있도록 돕는 몇가지 예제들이 포함되어 있다.

이 가이드를 읽은 후의 사용자들은 솔라리스에서 성능을 높이는데 사용할 수 있는 동작중인 어플리케이션에 대한 유용한 정보를 수집하기 위한 스크립트를 짤수 있게 될 것이다.

D 언어와 DTrace에 대한 좀더 자세한 사항은 http://docs.sun.com/app/docs/doc/817-6223 에 있는 솔라리스 Dynamic Tracing Guide를 참조하기 바란다.

 

 

Introduction to DTrace
DTrace is a comprehensive dynamic tracing facility that is built into Solaris and can be used by administrators and
developers to examine the behavior of both user programs and of the operating system itself. With DTrace you can explore
your system to understand how it works, track down performance problems across many layers of software, or locate the
cause of aberrant behavior. It is safe to use on production systems and does not require restarting either the system or
applications.
DTrace dynamically modifies the operating system kernel and user processes to record data at locations of interest, called
probes. A probe is a location or activity to which DTrace can bind a request to perform a set of actions, like recording a
stack trace, a timestamp, or the argument to a function. Probes are like programmable sensors scattered all over your
Solaris system in interesting places. DTrace probes come from a set of kernel modules called providers, each of which
performs a particular kind of instrumentation to create probes.
DTrace includes a new scripting language called D which is designed specifically for dynamic tracing. With D it is easy to
write scripts that dynamically turn on probes, collect the information, and process it. D scripts make it convenient for
users to share their knowledge and troubleshooting methods with others. A number of useful D scripts are included in
Solaris 10, and more can be found on Sun's BigAdmin site: sun.

 

D-Trace의 소개

D Trace는 유저프로그램과 운영체제 자체의 행동을 정의하기 위한 관리자와 개발자에 의해 사용될 수 있는

솔라리스에 탑재된 광범위한 동적 추적 기능이다.

DTrace로 시스템이 어떻게 동작하는지, 많은 층의 S/W층에서 성능문제를 추적하거나, 일탈증상에 대한 원인을 규명할 수 있다.

Dtrace는 probe라 불리우는 즐겨저장되는 공간에 데이터를 저장하기 위한 운영체제 커널과 사용자 프로세스를 동적으로 수정한다.

Probe는 Dtrace가 Stack trace, timestamp, Function의 Argument같은 것들을 기록하는것 같은 액션들을 수행하는 요청들을에게 할달될 수 있다.

Probe는 당신의 솔라리스 시스템에 넓게 퍼져 있는 프로그램 가능한 센서들과 같다.

Dtrace 는 D라고 불리는 특히 dynamic tracing 으로 디자인된 새로운 스크립트 언어를 포함한다.

D로 동적으로 probe를 동작시키고 정보를 모으고 실행할수 있는 스크립트를 쉽게 쓸 수 있다.

D 스크립트는 유저가 그들의 지식과 문제처리방법을 다른 사람들과 공유하기 쉽게 해준다.

솔라리스10에는 많은 유용한 D스크립트가 포함되어 있으며  Sun's BigAdmin site 에서도 더 많이 찾을 수 있다. : SUN

 

 

 

 

 

서버에 요청 중입니다. 잠시만 기다려 주십시오...