????8??free

????/bin/free??????????п??е???????????????????swap??????????????????檔

total used free shared buffers cached
Mem: 776492 263480 513012 0 52332 162504 -/+ buffers/cache: 48644 727848 Swap: 1044184 0 1044184

????9??Traffic-vis

????Traffic-vis????????Щ??????IP?????????????????????????????????????????????????HTML????GIF???????檔

???????Traffic-vis??????????SUSE LINUX ENTERPRISE SERVER?? ???????????????????eth0???????

????traffic-collector -i eth0 -s /root/output_traffic-collector

???????????killall??????????y??????????????д??????????????????? killall -9 traffic-collector

??????????????????????????????killall -9 traffic-collector ????????????к??????????????????????????????? ???????packets?? bytes?? TCP?????????????????????????????????????/???????????С?

?????????????????packets????/?????????????????

????traffic-sort -i output_traffic-collector -o output_traffic-sort -Hp

???????????HTML???????棬???????????????packets?????????TCP????????????????????????????????????????

????traffic-tohtml -i output_traffic-sort -o output_traffic-tohtml.html ???????GIF?????600X600??????棬??????????

????traffic-togif -i output_traffic-sort -o output_traffic-togif.gif -x 600 -y 600 GIF????????????????????????????????????TCP?????????IPX/SPXЭ?鰱???????磬???????????IPX??????????Э?顣??????????????????????????????IP?????????????????????????SUSE LINUX Enterprise Server?????Ethereal?? ????????????ù??????????????????????????????檔??????HTML????棬??????? cat output_traffic-collector | traffic-sort -Hp | traffic-tohtml -o output_traffic-tohtml.html ???????GIF????????????

????cat output_traffic-collector | traffic-sort -Hp | traffic-togif -o output_traffic-togif.gif -x 600 -y 600

????10??pmap

????pmap?????????????????????????????????pmap?ж??????????????????ù?????浼?????????? pmap <pid>

liyawei:~ # pmap 1 1: init
START SIZE RSS DIRTY PERM MAPPING 08048000 484K 244K 0K r-xp /sbin/init 080c1000 4K 4K 4K rw-p /sbin/init 080c2000 144K 24K 24K rw-p [heap] bfb5b000 84K 12K 12K rw-p [stack] ffffe000 4K 0K 0K ---p [vdso] Total: 720K 284K 40K
232K writable-private?? 488K readonly-private?? and 0K shared

????11??strace

????strace???????????????????????????????????????????Ч??????????????????????????????????????????????????? ???????????????????ID(PID)?????磺

strace -p <pid> # strace –p 2582rt_sigprocmask(SIG_SETMASK?? []?? NULL?? 8) = 0
read(7?? ""\"\\\"\\\\\\\"\\\\\\\\\\\\"...?? 16384) = 321 write(3?? "}H331q37275$271 311M304$317~)R9330Oj304257327"...?? 360) = 360
select(8?? [3 4 7]?? [3]?? NULL?? NULL) = 2 (in [7]?? out [3]) rt_sigprocmask(SIG_BLOCK?? [CHLD]?? []?? 8) = 0 rt_sigprocmask(SIG_SETMASK?? []?? NULL?? 8) = 0
read(7?? ""\"\\\"\\\\\\\"\\\\\\\\\\\\"...?? 16384) = 323 write(3?? "20430327$35206\306VL3705R2002262320^253253"...?? 360) = 360
select(8?? [3 4 7]?? [3]?? NULL?? NULL) = 2 (in [7]?? out [3]) rt_sigprocmask(SIG_BLOCK?? [CHLD]?? []?? 8) = 0 rt_sigprocmask(SIG_SETMASK?? []?? NULL?? 8) = 0
read(7?? ""\"\\\"\\\\\\\"\\\\\\\\\\\\"...?? 16384) = 323 write(3?? "243207204277Cw