���� ����...

�ϴ� �ý��� �����ڶ�� �ý����� ���ɿ� �Ű澲�� ���� �� �����ϴ�...
����..���ȵ���� ������ ����� ��������...����~
�׷��� �ý����� ���Ѵٸ�...���� �ΰ��� ���鿡�� �ٶ󺸰� �˴ϴ�...
�������� ����...
�� �ΰ����� ���⼭ ���캼���� ���������Դϴ�..
�ý��� �����ڴ� ������ ���� ���׵��� ���������� �����ؾ� �մϴ�..

- cpu ��뷮
- ������ ��뷮
- ��ũ�� ����� i/o�� ��Ƽ��Ƽ
- �͹̳� ����̽��� ��Ƽ��Ƽ
- �ý��� ���� ��Ƽ��Ƽ
- context switching
- file access
- queue activity
- kernel table
- interprocess communication
- ����¡
- free memory and swap sapce
- KMA(Kernel Memory Allocation)
- RFS(Remote File Sharing)

�����ڴ� �̷��� ���׵��� cron(�����ֱ�� �۾��� ����)�� �̿��ؼ� �ֱ������� 
����/�����Ͽ� �� ����Ʈ�� �ۼ��ϵ��� �ؾ��մϴ�..

�׷��� ���������� ���� ���ɾ �ϳ��� ���캸��� �ϰڽ��ϴ�..
���� �� ���׿�..����~

�ϴ� ������ ���� ps(���μ��� ���� ����) ���ɾ �ٽ��ѹ� ���캾�ô�..
������ ��뿡�� -l �ɼǸ� �ָ� ���μ����� �ڼ��� ������ ������ �ݴϴ�..
�� �ʵ��� �ǹ̴� ������ �����ϴ�..
 
F    : ���μ��� �÷��� 
S    : ������� ����
       O : �������� �����
       S : Sleeping ������ �����
       R : Run Queue �� �ִ� ���μ���
       Z : Zombie ������ �����
       T : Job control signal�� ���� ������ �����
UID   : ����� �������� user ID ��
PID   : ����� ID
PPID  : ������ ID
C     : �����ٸ��� ���� ���μ��� ��뷮
CLS   : �����ٸ� Ŭ����
PRI   : ���μ����� �켱����
NI    : ���μ����� �켱 ���� ���� ��
ADDR  : ���μ����� �޸� �ּ�
SZ    : ���� �޸𸮿��� ���μ����� ��ü ũ��, ����Ÿ�� ���� ���׸�Ʈ ũ��
WCHAN : Sleeping ���¿� �ִ� ���μ����� �̺�Ʈ �ּ�
STIME : ���μ����� ���۽ð�
TTY   : ���μ����� ���� �͹̳�
TIME  : ���μ����� ���� �����ð�
COMMAND : ���ɾ�

�� -o �ɼ��� ����ϸ� ����ڰ� Ư�� ������ �����Ͽ� ��� ���μ����� ���¸� ���������ν�
������ ���μ����� ����ϰ� �ִ� �ý��� ���ҽ����� ������ �� �ֽ��ϴ�...
�� �ʵ��� �ǹ̴� ������ �����ϴ�..
������ ���� �ʵ�� �����ϰڽ��ϴ�..


user   : ����� ������ user ID
ruser  : ����� �������� user ID
group  : ����� ������ group ID
rgroup : ����� �������� group ID
pid   
ppid
pgid   : ������� group ID
pcpu   : ���� �ð��뿡 CPU ���ð��� ���� ����(%)
vsz    : ����޸𸮿��� ���μ��� ��ü ũ��
nice   : ���μ����� �ý��� �����ٸ��� ���� �켱������ ���� ��������
dd     : ����
hh     : �ð�
mm     : ��
ss     : ��
tty
comm
args   : ��� �ƱԸ�Ʈ�� �����ϰ� �ִ� ���ɾ�

==========================================================================================================================

# ps -l
 F S   UID   PID  PPID  C PRI NI     ADDR     SZ    WCHAN TTY      TIME CMD
 8 S     0  9421  9415  0  51 20 e173e0e0     61 e173e14c pts/4    0:00 sh
 8 O     0  9422  9421  0  51 20 e16717f8    354          pts/4    0:00 ps
# ps -efl | more
 F S      UID   PID  PPID  C PRI NI     ADDR     SZ    WCHAN    STIME TTY      TIME CMD
19 T     root     0     0  0   0 SY fec16d9c      0           11�� 26 ?        0:03 sched
 8 S     root     1     0  0  40 20 e0e1a750    162 e0e1a97c  11�� 26 ?        0:01 /etc/init -
19 S     root     2     0  0   0 SY e0e1a008      0 fec397bc  11�� 26 ?        0:01 pageout
19 S     root     3     0  0   0 SY e0e14758      0 feca0564  11�� 26 ?       28:41 fsflush
 8 S     root   323     1  0  40 20 e0e14010    359 e0e0dc9c  11�� 26 ?        0:00 /usr/lib/saf/sac -t 300
 8 S     root   268   267  0  44 20 e0e72760    627 e128972c  11�� 26 ?        0:00 htt_server -port 9010 -syslog -mess
 8 S     root   154     1  0  41 20 e0e72018    540 e0f12782  11�� 26 ?        0:00 /usr/sbin/rpcbind
 8 S     root    63     1  0  57 20 e0f48768    322 e0f48994  11�� 26 ?        0:00 /usr/lib/sysevent/syseventd
 8 S     root    65     1  0  57 20 e0f48020    270  8062f54  11�� 26 ?        0:00 /usr/lib/sysevent/syseventconfd
 8 S     root   223     1  0  44 20 e10f9770    733 e10f999c  11�� 26 ?        0:02 /usr/sbin/nscd
 8 S     root   140     1  0  40 20 e10f9028    395 e0f127c2  11�� 26 ?        0:00 /usr/lib/inet/in.ndpd
 8 S     root   206     1  0  47 20 e10f6778    763 e0f12482  11�� 26 ?        0:00 /usr/sbin/syslogd
 8 S     root   197     1  0  41 20 e10f6030    642  807fd1c  11�� 26 ?        0:00 /usr/lib/autofs/automountd
                             
                                  .
                                  .
                                  .
                                  .
                                  .
                                  .
                                  .
 # ps -ef -o 'user group pid ppid pcpu pmem vsz rss time stime tty args' | more
    USER    GROUP   PID  PPID %CPU %MEM  VSZ  RSS        TIME    STIME TT      COMMAND
    root     root     0     0  0.0  0.0    0    0        0:03  11��_26 ?       sched
    root     root     1     0  0.0  0.1  648  116        0:01  11��_26 ?       /etc/init -
    root     root     2     0  0.0  0.0    0    0        0:01  11��_26 ?       pageout
    root     root     3     0  0.1  0.0    0    0       28:41  11��_26 ?       fsflush
    root     root   323     1  0.0  0.2 1436  140        0:00  11��_26 ?       /usr/lib/saf/sac -t 300
                                   .
                                   .
                                   .
                                   .
                                   .
                                   .                             
==========================================================================================================================

������ vmstat ���ɿ� ���ؼ� ���캾�ϴ�...
�� ���ɾ�� ���μ���, ���� �޸�, ����¡, ��ũ, CPU ���� ���¸� ������ �� �ֽ��ϴ�..
��Ƽ���μ����� ���� ��� ���μ��� ��뷮�� ��հ����� ��Ÿ���ϴ�..
�ɼ��� ������ �����ϴ�..

c : cache flushing ���ġ
i : ����̽��� ���ͷ�Ʈ ��
s : ���� ���ĺ��� �ý��ۿ��� �߻��� ��ü �̺�Ʈ
S : ����¡ ��ſ� �������� ǥ��. ����¡�� re�� mf�� ������ ����� ��/������� ��Ÿ����.


�� �ʵ带 ���캸�ڽ��ϴ�...

procs: ���μ����� ���� �׿� �ش��ϴ� ����Ÿ�� ��Ÿ����.
  - r : ���� ������ ���·� ��� ť�� ���� ���μ����� ��. ���ڰ� ũ�� ���μ����� ����� ����ġ ���� ���� �ǹ�.
        �� ��ġ�� 3 �̻��� �Ѿ� ���ٸ� CPU�� �ٻ� ������ ���� �ȴ�..
  - b : ��/��� �ڿ��� �Ҵ���� ���� ���ϵ� ���μ���
  - w : swap-out�� ���μ�����. ���� ������ ��� ť���� ������ �ʰ� swap-out�� ���μ����� ���ٴ� ���� physical memory�� �����ϴٴ� ��

memory : ����޸𸮿� Phygical �޸��� ��뷮.. 
         free�޸𸮰� �ν���� �޸��� 6% ���� ��������� ������ ���� �޸𸮰� ������ ����̰�,
         �������� ��������

page : �� �� �߻��ϴ� fault page ���� �������� ����¡ ǥ��
  - re : page reclaim
  - mf : minor fault
  - pi : page in(KB)
  - po : page out(KB)
  - fr : free(KB)
  - de : short-term �޸� ������, ��, swap-in�� ���� ���ؼ� swap-out�ÿ� ������ �ΰ����� �޸��� �������̴�.
  - sr : clock �˰����� ���� ������ scanned. sr �� ���� �޸� �����ÿ� Ȱ��ȭ���� ������ ������ ���� ��Ÿ����.
         ��, sr �� ũ�ٴ� ���� ��� ���� �޸𸮰� �����ϴٴ� ���̴�. �� ��ġ�� �� 300 �̻��� �Ѿ� ������ ��밡�� �޸� ��������

disk : �ʴ� ��ũ ���ۼ�

faults : �ʴ� trap/interrupt ����
  - in : device interrupt(non clock)
  - sy : �ʴ� system fault
  - cs : CPU context switch ��

CPU : CPU ���� ���� �����(%)
 - us : ����� ��� �ð�
 - sy : �ý��� ��� �ð�
 - id : idel time       
          
==========================================================================================================================

# vmstat 3                               -- 3���ֱ�� �ý����� ��������
 procs     memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr cd f0 s0 --   in   sy   cs us sy id
 0 0 0 402156 24052   0   2  1  1  1  0  0  2  0  0  0  124  124  233  0  1 99
 0 0 0 326372  2764   0   2  2  0  0  0  0  1  0  0  0  139  100  232  0  0 100
 0 0 0 326372  2764   0   0  0  0  0  0  0  1  0  0  0  137   99  229  0  0 100
# vmstat -s                            -- �ý����� ������ ���� ���ݱ��� �߻��� ��� �̺�Ʈ�� ��Ÿ����.
        0 swap ins
        0 swap outs
        0 pages swapped in
        0 pages swapped out
  1338611 total address trans. faults taken
    79572 page ins
    94967 page outs
   264645 pages paged in
   235797 pages paged out
   522758 total reclaims
   522751 reclaims from free list
        0 micro (hat) faults
  1338611 minor (as) faults
    66710 major faults
   275034 copy-on-write faults
   269827 zero fill page faults
   207534 pages examined by the clock daemon
        7 revolutions of the clock hand
   258255 pages freed by the clock daemon
     8612 forks
      817 vforks
     7357 execs
131379033 cpu context switches
126398988 device interrupts
  1806843 traps
 70023420 system calls
  3482588 total name lookups (cache hits 97%)
    44446 user   cpu
   339472 system cpu
 55847698 idle   cpu
    78465 wait   cpu
# vmstat -S 3                                   -- ����¡�� ���� ����...si/so�� �߰���...(si: �ʴ� swap-in��, so: swap-out�� ��ü ���μ��� ��)
 procs     memory            page            disk          faults      cpu
 r b w   swap  free  si  so pi po fr de sr cd f0 s0 --   in   sy   cs us sy id
 0 0 0 402040 24016   0   0  1  1  1  0  0  2  0  0  0  124  124  233  0  1 99
 0 0 0 326340  2692   0   0  0  8  8  0  0  1  0  0  0  134   97  230  0  0 100
 0 0 0 326340  2692   0   0  0  8  8  0  0  1  0  0  0  133   99  229  0  0 100
# vmstat -i
interrupt         total     rate
--------------------------------
clock          56339497      100
fdc0                 55        0
--------------------------------
Total          56339552      100
     
==========================================================================================================================

������ ��ũ�� ���õ� ���������� ���ɾ�� ����� ���캸�ڽ��ϴ�...
iostat�� �� ��ũ���� �޴� �ε带 ������ �� �ִ� ���ɾ� �Դϴ�..
�ɼ��� ������ �����ϴ�..

c : user mode, system mode, I/O�� ���� waiting, idle � ���� ��� �ð��� ���� �����
D : �ʴ� ��ũ�� read, write�� utilzation�� ���� �����
t : �ʴ� �͹̳ο��� ���� read, write�� character ��
x : �߰��� ��� ��ũ���� ���� ǥ��

������ �� �ʵ��� �ǹ� �Դϴ�..

tin  : �͹̳� �Է�ť�� ���ڼ�
tout : �͹̳� ���ť�� ���ڼ�
bps  : �ʴ� ����
tps  : �ʴ� Ʈ�����
serv : ���� �ð��� ��հ�(����:ms)
us   : ����� ���
sy   : �ý��� ���
wr   : ����� wating
id   : idle
r/s  : �ʴ� �б�� 
w/s  : �ʴ� �����
kr/s : �ʴ� �б��(KB)
kw/s : �ʴ� �����(KB)
wait : ���񽺸� ���� Ʈ����� waiting ��հ�
actv : ���������� ���񽺵� Ʈ������� ��հ�
svc_t: ���� �ð� ��հ�(����: ms)
%w   : ť�� ������� �ʴ� �ð��� �����
%b   : ��ũ�� busy ������ �ð��� �����
==========================================================================================================================

# iostat 3
   tty       cmdk0          sd0           nfs1          nfs2           cpu
 tin tout kps tps serv  kps tps serv  kps tps serv  kps tps serv   us sy wt id
   0    7  14   2   40    0   0    7    0   0    1    0   0    0    0  1  0 99
   0   78   8   1    2    0   0    0    0   0    0    0   0    0    0  0  0 100
   0   27   8   1    2    0   0    0    0   0    0    0   0    0    0  1  0 99
# iostat -xtc 3                                                                        --  30���� ��� ��뷮�� 30%�� �Ѵ� ��ũ ���� �ð��� ������ �ʿ䰡 �ִ�.
                  extended device statistics                      tty         cpu
device       r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  tin tout  us sy wt id
cmdk0        0.2    1.4    2.5   11.4  0.1  0.0   39.5   0   1    0    7   0  1  0 99
fd0          0.0    0.0    0.0    0.0  0.0  0.0   95.7   0   0
sd0          0.0    0.0    0.0    0.0  0.0  0.0    7.0   0   0
nfs1         0.0    0.0    0.0    0.0  0.0  0.0    0.7   0   0
nfs2         0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
                  extended device statistics                      tty         cpu
device       r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  tin tout  us sy wt id
cmdk0        0.0    1.0    0.0    8.0  0.0  0.0    2.4   0   0    0  172   0  0  0 100
fd0          0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd0          0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
nfs1         0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
nfs2         0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
# iostat -D 3                                                                    -- �ý����� ��ũ ������� ���� Ȱ���Ҷ� ����...util�� 65% �̻��̸� �����Ϸ� �Ǵ��� �� �ִ�.
   cmdk0          sd0           nfs1          nfs2
rps wps util  rps wps util  rps wps util  rps wps util
  0   1  0.6    0   0  0.0    0   0  0.0    0   0  0.0
  1   1  1.4    0   0  0.0    0   0  0.0    0   0  0.0
  0   1  0.2    0   0  0.0    0   0  0.0    0   0  0.0
  
==========================================================================================================================

������ �ý����� ���� ���ҽ����� ������ ������ �� �ִ� ���ɾ�� sar(System Activity Reporter)�� �˾ƺ��ڽ��ϴ�..
�� ���ɾ ����ϸ� ����� ���¿��� �ڵ����� ����Ÿ�� ������ �� ������, Ư�� ������ ����Ͽ� ������ �ֱ⿡
���� ����Ÿ�� ���Ϸ� ������ �� �ֽ��ϴ�..

ù��° ����
t���� ������ �ֱ�� �Ͽ� n�� �ݺ������� ����.
-o �ɼ����� Ư�����Ͽ� ������ �� �ִ�. ���̳ʸ� ���·� ����

�� ����
�ַ� ���� �̹� sar������ ���� ����� �ξ��� ������ ������ ��쿡 �� ������ ���
-f �ɼ��� ����Ͽ� �ҷ��� ������ �����Ѵ�.
-s, -e �ɼ��� ����Ͽ� ���۰� ������ �ð��� ������ �� �ִ�.
-i �ɼ��� ������ �ֱ�(��)�� ��Ÿ����.

�ɼ� 
-a : Check file access operation
-b : Report buffer activity
-c : Report system calls
-d : Report block device activity
-g : Report paging activity( page-out & memory freeing)
-k : Report kernel memory allocation(KMA) activity
-m : Report message & semaphore acitivity
-p : Report pagin acitivity(page-in & fault activity)
-q : Report average queue length while occupied & percent of time occupied
-r : Report unused memory pages & disk blocks
-u : Report CPU utilization
-v : Report status of process. i-node, file tables
-x : Report remote file-shring activity
-w : Report system swapping & switching activity
-y : Report TTY device activity
-A : Report all data

����: Ư���ɼ��� ���� ������ �⺻ �ɼ��� -u

==========================================================================================================================

# sar 3 5                                                 -- 3�� �������� 5ȸ ����

SunOS yasicom 5.8 Generic_108529-09 i86pc    12/03/01

01:23:35    %usr    %sys    %wio   %idle
01:23:38       0       0       0     100
01:23:41       0       0       0     100
01:23:44       0       1       0      99
01:23:47       0       0       0     100
01:23:50       0       0       0     100

Average        0       0       0     100
# sar 3 5                                    -- Ư�� �ɼ� ���� cpu ���� 

SunOS yasicom 5.8 Generic_108529-09 i86pc    12/03/01

01:23:35    %usr    %sys    %wio   %idle
01:23:38       0       0       0     100
01:23:41       0       0       0     100
01:23:44       0       1       0      99
01:23:47       0       0       0     100
01:23:50       0       0       0     100

Average        0       0       0     100
# sar -o /tmp/sar_1.file 3 5

SunOS yasicom 5.8 Generic_108529-09 i86pc    12/03/01

01:24:50    %usr    %sys    %wio   %idle
01:24:53       0       2       0      98
01:24:56       0       0       0     100
01:24:59       0       0       0     100
01:25:02       0       0       0     100
01:25:05       0       0       0     100

Average        0       0       0     100
# ls -l /tmp/sar_1.file
-rw-r--r--   1 root     other      17640 12��  3��  01:25 /tmp/sar_1.file
# sar -f /tmp/sar_1.file

SunOS yasicom 5.8 Generic_108529-09 i86pc    12/03/01

01:24:50    %usr    %sys    %wio   %idle
01:24:53       0       2       0      98
01:24:56       0       0       0     100
01:24:59       0       0       0     100
01:25:02       0       0       0     100
01:25:05       0       0       0     100

Average        0       0       0     100
# sar -b 3 5                                      -- ������ activity ����

SunOS yasicom 5.8 Generic_108529-09 i86pc    12/03/01

01:26:14 bread/s lread/s %rcache bwrit/s lwrit/s %wcache pread/s pwrit/s                -- %rcache�� %wcache�� �ý��� ������ ��ȿ��
01:26:17       0       0     100       0       0     100       0       0
01:26:20       0       0     100       0       0     100       0       0
01:26:23       0       5     100       4       9      58       0       0
01:26:26       0       1     100       1       1       0       0       0
01:26:29       0       0     100       0       0     100       0       0

Average        0       1     100       1       2      52       0       0             -- %rcache�� 90 ���Ϸ� �������ų�, %wcache�� 65 ���Ϸ� �����Ǹ� ���� �����̽��� �������Ѽ� ���� ������Ŵ
#
#
#
# sar -d 10 3                                                 -- ��ũ ����� ����...10�ʰ������� 3��

SunOS yasicom 5.8 Generic_108529-09 i86pc    12/03/01

01:28:21   device        %busy   avque   r+w/s  blks/s  avwait  avserv

01:28:31   cmdk0             0     0.0       2      26     0.0     2.4
           fd0               0     0.0       0       0     0.0     0.0
           nfs1              0     0.0       0       0     0.0     0.0
           nfs2              0     0.0       0       0     0.0     0.0
           sd0               0     0.0       0       0     0.0     0.0
           uhci0,bu          0     0.0       0       0     0.0     0.0
           uhci0,ct          0     0.0       0       0     0.0     0.0
           uhci0,in          0     0.0       0       0     0.0     0.0
           uhci0,is          0     0.0       0       0     0.0     0.0
           uhci0,to          0     0.0       0       0     0.0     0.0

01:28:41   cmdk0             0     0.0       1      14     0.0     2.4
           fd0               0     0.0       0       0     0.0     0.0
           nfs1              0     0.0       0       0     0.0     0.0
           nfs2              0     0.0       0       0     0.0     0.0
           sd0               0     0.0       0       0     0.0     0.0
           uhci0,bu          0     0.0       0       0     0.0     0.0
           uhci0,ct          0     0.0       0       0     0.0     0.0
           uhci0,in          0     0.0       0       0     0.0     0.0
           uhci0,is          0     0.0       0       0     0.0     0.0
           uhci0,to          0     0.0       0       0     0.0     0.0

01:28:51   cmdk0             0     0.0       1      14     0.0     2.4
           fd0               0     0.0       0       0     0.0     0.0
           nfs1              0     0.0       0       0     0.0     0.0
           nfs2              0     0.0       0       0     0.0     0.0
           sd0               0     0.0       0       0     0.0     0.0
           uhci0,bu          0     0.0       0       0     0.0     0.0
           uhci0,ct          0     0.0       0       0     0.0     0.0
           uhci0,in          0     0.0       0       0     0.0     0.0
           uhci0,is          0     0.0       0       0     0.0     0.0
           uhci0,to          0     0.0       0       0     0.0     0.0


Average    cmdk0             0     0.0       1      18     0.0     2.4
           fd0               0     0.0       0       0     0.0     0.0
           nfs1              0     0.0       0       0     0.0     0.0
           nfs2              0     0.0       0       0     0.0     0.0
           sd0               0     0.0       0       0     0.0     0.0
           uhci0,bu          0     0.0       0       0     0.0     0.0
           uhci0,ct          0     0.0       0       0     0.0     0.0
           uhci0,in          0     0.0       0       0     0.0     0.0
           uhci0,is          0     0.0       0       0     0.0     0.0
           uhci0,to          0     0.0       0       0     0.0     0.0
# sar -g 10 3                                                           -- �޸𸮿� page-in ����...

SunOS yasicom 5.8 Generic_108529-09 i86pc    12/03/01

01:29:54  pgout/s ppgout/s pgfree/s pgscan/s %ufs_ipf                    -- pgscan/s�� �ʴ� ���������ε�...�� ���� ������ ���� �޸� ������ ����
01:30:04     0.90     1.80     1.80     0.00     0.00
01:30:14     0.90     1.80     1.80     0.00     0.00
01:30:24     0.90     1.80     1.80     0.00     0.00

Average      0.90     1.80     1.80     0.00     0.00
#
#
#
-- runq-sz�� �޸� �󿡼� ������� ���μ��� ������ ���� ��Ÿ����, ����ؼ� 2 �̻��� ��Ÿ���� cpu�� �Ѱ�ġ�� �ٴٸ� ������ �Ǵ�
-- %runocc�� � run queue�� �Ҵ�Ǿ����� ��Ÿ�� ������ ���ڰ� ���� ���� �켱 ������ ����
# sar -r 10 3        -- ����� ����          

SunOS yasicom 5.8 Generic_108529-09 i86pc    12/03/01

01:31:57 freemem freeswap
01:32:07     608   652136
01:32:17     606   652136
01:32:27     606   652136

Average      607   652136
# sar -r 10 3                              -- ���� �޸𸮿� swa3-file disk block

SunOS yasicom 5.8 Generic_108529-09 i86pc    12/03/01

01:34:32 freemem freeswap
01:34:42     610   652136
01:34:52     621   652136
01:35:02     622   652131

Average      617   652134                      -- ���� �޸𸮰� �ν���� �޸��� 6% ���� ����ؼ� ������ ���� �޸𸮰� ������ ���� �������� �������� 

==========================================================================================================================

������ ��Ʈ���� ���õ� ���� �����Դϴ�...
�ΰ��� ���ɾ ���캸�ڽ��ϴ�...

���� �� ��Ʈ�� �������̽��� ���� ���¸� �� �� �ִ� ���ɾ�� netstat ������ �ֽ��ϴ�..
�ɼ����� -i �� ����ϸ� tcp/ip Ʈ���ȿ� �־ �� �������̽��� ��Ŷ ��뷮 ���¸� Ȯ�� �� �� �ֽ��ϴ�..
�Ʒ��� ������ ���� ����..

Collision Rate = collis/opkts = 0/675407 = 0

�� ��ġ�� 5% ~ 10%�� ��������� ��Ʈ���� �����ε尡 �ʷ��� ���̶�� �� �� �ֽ��ϴ�..

Input packet Error Rate = ierrs/Ipkts
Ouput Packet Error Rate = Oerrs/Opkts

Input Packet Error Rate�� 0.25% ���� ũ�ԵǸ� �ý����� ��Ŷ�� ����ϰ� �˴ϴ�..
==========================================================================================================================

# netstat -i 5
    input   elxl0     output           input  (Total)    output
packets errs  packets errs  colls  packets errs  packets errs  colls
1553181 6     675370  0     0      2862401 6     1984590 0     0
11      0     1       0     0      21      0     11      0     0
10      0     2       0     0      20      0     12      0     0
10      0     2       0     0      20      0     12      0     0
12      0     2       0     0      22      0     12      0     0
10      0     2       0     0      22      0     14      0     0
10      0     2       0     0      20      0     12      0     0
9       0     2       0     0      19      0     12      0     0
7       0     2       0     0      17      0     12      0     0
10      0     3       0     0      20      0     13      0     0
8       0     2       0     0      16      0     10      0     0
                                 .
                                 .
                                 .
                                 .
                                 .
                                 .
# netstat -i
Name  Mtu  Net/Dest      Address        Ipkts  Ierrs Opkts  Oerrs Collis Queue
lo0   8232 loopback      localhost      1309340 0     1309340 0     0      0
elxl0 1500 192.168.0.0   yasicom        1553317 6     675407 0     0      0

Name  Mtu  Net/Dest                    Address                     Ipkts  Ierrs Opkts  Oerrs Collis
lo0   8252 localhost                   localhost                   1309340 0     1309340 0     0
elxl0 1500 fe80::201:2ff:fe7d:3cb4/10  fe80::201:2ff:fe7d:3cb4     1553320 6     675410 0     0

==========================================================================================================================

�ι�° ��Ʈ���� ���õ� �������� ���ɾ�� snoop�� �ֽ��ϴ�..
�̰��� ��Ʈ������ ��Ŷ�� ĸó�ϴµ� ����ϸ�, ��� �� Ŭ���̾�Ʈ�� �������� coll trace�� ���� �� �ֽ��ϴ�..
������ �� ���ɾ �̿��ؼ� ��Ʈ���� ��Ŷ�� Ư�� ���Ͽ� �����ϰ�, �ٽ� �� ���Ͽ� ����� ������ Ȯ���ϴ� ���Դϴ�.

==========================================================================================================================

# snoop -o /tmp/a
Using device /dev/elxl (promiscuous mode)
20 ^C
# snoop -i /tmp/a
  1   0.00000  192.168.0.1 -> yasicom      TELNET C port=3565
  2   0.00023      yasicom -> 192.168.0.1  TELNET R port=3565 Using device /dev/el
  3   0.15040  192.168.0.1 -> 192.168.0.255 UDP D=39213 S=3516 LEN=832
  4   0.04999  192.168.0.1 -> yasicom      TELNET C port=3565
  5   0.79813      yasicom -> 192.168.0.1  TELNET R port=3565
  6   0.10485  192.168.0.1 -> yasicom      TELNET C port=3565
  7   0.00020      yasicom -> 192.168.0.1  TELNET R port=3565
  8   0.20046  192.168.0.1 -> yasicom      TELNET C port=3565
  9   0.06794  192.168.0.1 -> 192.168.0.255 UDP D=39213 S=3517 LEN=276
 10   0.00068  192.168.0.1 -> 192.168.0.255 UDP D=39213 S=3518 LEN=120
 11   0.62573      yasicom -> 192.168.0.1  TELNET R port=3565
 12   0.10825  192.168.0.1 -> yasicom      TELNET C port=3565
 13   0.00021      yasicom -> 192.168.0.1  TELNET R port=3565
 14   0.20042  192.168.0.1 -> yasicom      TELNET C port=3565
 15   0.69107      yasicom -> 192.168.0.1  TELNET R port=3565 \r\00011
 16   0.11157  192.168.0.1 -> yasicom      TELNET C port=3565
 17   0.00020      yasicom -> 192.168.0.1  TELNET R port=3565 \r\00012 \r\00013 \r\00014
 18   0.09619  192.168.0.1 -> 192.168.0.255 UDP D=39213 S=3519 LEN=832
 19   0.10424  192.168.0.1 -> yasicom      TELNET C port=3565
 20   0.50641  192.168.0.1 -> 192.168.0.255 UDP D=39213 S=3520 LEN=276

==========================================================================================================================

���� ���ϳ��� �Ұ��ϰ�...�ֶ󸮽��� ���� ������ �����ϴ�..����~

���������� �Ұ��� ���� ��ĸ�...
sdtprocess��� ���Դϴ�..�� ���� CDE ȯ�濡�� ����ϴ� ���� ���� ���Դϴ�...
����...GUI���̱� ������ ���콺�� �ǰ��ǰ� ���鼭 ���� ������ �����ñ� �ٶ��ϴ�..
�۰�....��������� ������ top �̶� ���� �����ϰ� �ֽ��ϴ�.. www.sunfreeware.com�� ���ø�...�ֽ��ϴ�..
���� OS ������ �´� ������ �ٿ� �����ż�...pkgadd �Ͽ� ��ġ�Ͻñ� �ٶ��ϴ�...

��~
���� ������ �������� ����������...���߾���...�װ͵� ������ �� ���������κи� �ϸ� �Ǵµ� ���Դϴ�..
��...������ �� �������� �κ��� �Ҷ� �ϴµ�..ģ������ �������� �ٶ���..
���߽���...
����� ��...�ܿ� �� ��ŭ �����ϴµ�...�����Ͼ��̳� �ɷȳ�..�Ͻô� �д��� ��ø��� �����մϴ�..
��...���� �ֶ󸮽� �ʺ��̱� ����....å���� �����Ϸ�...�����Ϸ�...������� ��������ϴ�...
�� ������ ���ô� �д��� ����ϰ� ��������...
�̰��� '����Ÿ���̽��� ���� �ֶ󸮽� ���� ���� ����' �Դϴ�...
��¼�� ����Ÿ���̽��� ���� ���ʸ� ������ �������ٵ� �� ���� ����������..
�׷��ϱ� �� ������ �ֶ󸮽� �Ϻθ� �ַ����� �Ͻ÷��� �д��� ���� ���������� �� ������ �־�����ñ� �ٶ��ϴ�....
�� ���� �������� �������� �ʹ����� �����ϴ�..
��~ �׷��� �ѵ��Ե�........���� ������ �밡�� �߱���.... �� ������� �Ϻε� �Ʊ���...
��~ ����Ѵ� �¿�� �ھ߰ڽ���...
                                  
                                  # date
                                  2001�� 12��  3�� ������ ���� 01�� 57�� 39��