Cheatsheet

共55篇文章。

How to optimize your FS?

Kernel

It turns out that we have to optimize our FS before benchmarking. I have read some articles and maillist archives so I got some impression:

  1. Give correct parameters to newfs(1)
    avgfilesize, filesperdir, will control DIRPERF hashing.

  2. Turn on noatime mounts.

  3. etc.

Just make a note.

参与评论:How to optimize your FS?

Two Powerful UNIX® command lines

Cheatsheets

Top ten established HTTP connection from IP to our box (IP=127.0.0.1):

netstat -na | grep "127\.0\.0\.1\.80 " | grep ESTABLISHED | cut -c43- | cut -f1-4 -d'.' | sort | uniq -c | sort -nr | head -10

Merge FreeBSD-CURRENT changes to delphijfork:

retag `cvs -d /home/fcvs rdiff -rHEAD -rDELPHIJ_FORK_LASTMERGE src | grep Index: | awk '{print $2;}' | grep src`
参与评论:Two Powerful UNIX® command lines
搜索文章…(按ESC退出)