2013年1月24日星期四

MacPorts sync失敗

一直都覺得MacPorts sync太慢總時失敗,可能是rsync比較容易timeout的原因
找到官方文檔,原來可以用Tarball下載每天自動打包的Port Tree
配置方法超容易,修改$prefix/etc/macports/sources.conf
#rsync://rsync.macports.org/release/ports/ [default]
http://www.macports.org/files/ports.tar.gz [default]
把原本的rsync一行改成透過http下載的tarball
由於我不是經常地同步port tree,偶爾才升級一下。
每天打包的tarball比較適合我

2013年1月11日星期五

Linux系統工具


Linux System monitor tools:

htop - (top)interactive process viewer.
vmstat - Report virtual memory statistics.
w - Show who is logged on and what they are doing.
uptime - Tell how long the system has been running.
ps - report a snapshot of the current processes.
free - Display amount of free and used memory in the system.
iostat
sar
mpstat
pmap - report memory map of a proces.
ss - another utility to investigate sockets.
tcpdump - dump traffic on a network.
strace - trace system calls and signals.
/proc - cpuinfo, meminfo, zoneinfo, mounts
Nagios - Network monitoring application.
Cacti - web-base monitoring application.
lsof - list open files.

sysstat package:

iostat
sar
mpstat

iprout package:

ip
ss
tc

few more tools:

nmap
lsof
ntop
conky / GkrellM
vnstat
mtr
iptraf
nmon - system monitor tools


Traffic Monitor / Networking testing

There are some useful tools: vnstat can report the transfered data and transfer rate. mtr can trace route path with ping together, useful for finding the traffic neck. ss is the successor of netstat, much more efficient and faster.

nmap, a scanning tool. ntop, network traffic reporter.

sar can do:

Collective CPU usage
Individual CPU statistics
Memory used and available
Swap space used and available
Overall I/O activities of the system
Individual device I/O activities
Context switch statistics
Run queue and load average data
Network statistics
Report sar data from a specific time
and lot more..

熱門文章