March, 2009归档文章

Maximizing Sysbench OLTP performance for MySQL

MySQL 的优化是一个永恒的话题,这篇博客介绍了作者用 sysbench 测试结果,并提供的最佳参数:

  1. Use multiple sysbench threads via the --num-threads parameter
  2. Set innodb_thread_concurrency = 0 in my.cnf
  3. Set innodb_buffer_size equal to or greater than the table size

The Dynamics of ZFS

OpenSolaris 2008.11 里面最迷人的恐怕就是基于 ZFS 的 TimeSlides 的引入,和 Apple? 的时间胶囊有得一拼。这篇 Blog 介绍了 ZFS 的基本组成,对于想要深入了解 ZFS 原理的人非常有用。

OpenSolaris development package repository build 106, x86/x64/SPARC

snv_106 开始支持 Sparc 了。 精彩的总归是精彩。
 (more...)

lsof -i 在 Solaris 10 下失效

解决办法:

Listing all the pids:
———————
/usr/bin/ps -ef | sed 1d | awk ‘{print $2}’

Mapping the files to ports using the PID:
————-
/usr/proc/bin/pfiles <PID> 2>/dev/null | /usr/xpg4/bin/grep <PID>
or
/usr/bin/ps -o pid -o args -p <PID> | sed 1d

Mapping the sockname to port using the port number:
———————-
for i in `ps -e|awk ‘{print $1}’`; do echo $i; pfiles $i 2>/dev/null | grep ‘port: 8080′; done
or
pfiles -F /proc/* | nawk ‘/^[0-9]+/ { proc=$2} ; /[s]ockname: AF_INET/ { print proc “\n ” $0 }’

There were two explanations why “lsof” did not show, what was expected:

1) One thing that might prevent lsof to print all, is if the ports are controlled by inetd
or some such (i.e. there is nothing actively listening on them until you try talking to them).

Also, try telneting to the port and then run lsof while the telnet session is connected.

2) On Solaris 10, using “lsof -i” to show mapping of processes to TCP ports incorrectly shows all
processes that have socket open as using port 65535, for example:

sshd 8005 root 8u IPv4 0x60007ebdac0 0t0 TCP *:65535
(LISTEN)
sendmail 1116 root 5u IPv4 0x60007ecce00 0t0 TCP *:65535
(LISTEN)

This is a known bug in lsof that can _not_ be fixed because of differences between Solaris 10
and previous versions. So the useful “lsof -i :<port>” is now not useful.

Sun Device Detection Tool 2.2

和 Linux 比较起来, Sun 最大的问题还是硬件兼容性问题。 Sun 自己的这个工具能让您检测自己的系统和 Solaris 10/OpenSolaris 8.11 的兼容性。

很好用。

不应该转换到 Linux 的十大原因!

很搞笑的文章,是对 Windoz 极大的讽刺。

(more…)

WindowsUpdate遇到错误号0×80070424的解决方法

大概是公司的 GPO disable 了一些东西,不能自动升级了。
(more…)

Fast Track to Excel 2007

这本书是纯粹讲微软的,和 LAMP 没有关系。但是作为阅读的一个记录,仍旧记录在此。

(more…)

放弃 Adobe

如果您决定要在3月10日打补丁的话,别忘了3月11日给 Adobe Reader 打 Zero Day 补丁。 这个已经发现了一个月的漏洞,Adobe 要到 3月11日才发布补丁,是不是太“及时”了。 :-)

微软将成为自己的掘墓人

Linux 桌面越来越流行,1998年 Eric Raymond 发布了第一篇万圣节文档。宣告了世界正式进入开源,10年过去了,微软的掘墓阶段终于开始。

自由市场的理性终将战胜垄断,专制!