<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>XinHuang &#187; Linux</title>
	<atom:link href="http://www.xhuang.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xhuang.net</link>
	<description>在路上</description>
	<lastBuildDate>Tue, 23 Aug 2011 12:51:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>iphone ios 4.3更新后pptp vpn 无法连接</title>
		<link>http://www.xhuang.net/201106/linux/pptp_vpn_can_not_connect_after_update_iphone_ios_4_3/</link>
		<comments>http://www.xhuang.net/201106/linux/pptp_vpn_can_not_connect_after_update_iphone_ios_4_3/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 09:38:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[ios 4.3]]></category>
		<category><![CDATA[pptp vpn]]></category>
		<category><![CDATA[连接]]></category>

		<guid isPermaLink="false">http://www.xhuang.net/?p=209</guid>
		<description><![CDATA[今天给某同学开了个vpn账号给他的iphone 4用,结果发现无法连接,经万能的google后才知道对于ios 4.3来说存在这个问题 于是编辑/etc/ppp/options.pptpd文件,在require-mppe-128后加了两行 nopcomp noaccomp 一切正常了&#8230;]]></description>
			<content:encoded><![CDATA[<p>今天给某同学开了个vpn账号给他的iphone 4用,结果发现无法连接,经万能的google后才知道对于ios 4.3来说存在这个问题</p>
<p>于是编辑/etc/ppp/options.pptpd文件,在require-mppe-128后加了两行</p>
<p>nopcomp</p>
<p>noaccomp</p>
<p>一切正常了&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xhuang.net/201106/linux/pptp_vpn_can_not_connect_after_update_iphone_ios_4_3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>install openvpn support for milestone</title>
		<link>http://www.xhuang.net/201003/linux/install-openvpn-support-for-milestone/</link>
		<comments>http://www.xhuang.net/201003/linux/install-openvpn-support-for-milestone/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 11:46:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[busybox]]></category>
		<category><![CDATA[milestone]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[tun]]></category>

		<guid isPermaLink="false">http://www.xhuang.net/?p=152</guid>
		<description><![CDATA[杯具开始了： milestone不支持mppe128位加密，pptpvpn无法连接，只能选择不加密，接着升级android2.1后选择不加密也无法连接，杯具啊 没办法，只能选择openvpn，接着，真正的杯具开始了 1.必须先获取root权限，详细信息参考http://www.androider.hk/?p=77 2.在market下载openvpn Installer，自动在/system/xbin/下安装openvpn 3.安装TunnelDroid，发现不支持tun，于是用adb把下好的tun.ko拷贝进/system/lib/modules/(先要remount /system,使可写)，但是先下的一个tun.ko无法load，应该继续找，好不容易才找到tun.ko 4.继续运行，继续错误，/system/xbin/bb/ifconfig不存在，果然，需要安装busybox,参考http://www.droidcn.com/viewthread.php?tid=1434 5.大功告成！]]></description>
			<content:encoded><![CDATA[<p>杯具开始了：</p>
<p>milestone不支持mppe128位加密，pptpvpn无法连接，只能选择不加密，接着升级android2.1后选择不加密也无法连接，杯具啊</p>
<p>没办法，只能选择openvpn，接着，真正的杯具开始了</p>
<p>1.必须先获取root权限，详细信息参考<a href="http://www.androider.hk/?p=77">http://www.androider.hk/?p=77</a></p>
<p>2.在market下载openvpn Installer，自动在/system/xbin/下安装openvpn</p>
<p>3.安装TunnelDroid，发现不支持tun，于是用adb把下好的tun.ko拷贝进/system/lib/modules/(先要remount /system,使可写)，但是先下的一个tun.ko无法load，应该继续找，好不容易才找到<a href="http://www.xhuang.net/wp-content/uploads/tun.zip" target="_blank">tun.ko</a></p>
<p>4.继续运行，继续错误，/system/xbin/bb/ifconfig不存在，果然，需要安装busybox,参考<a href="http://www.droidcn.com/viewthread.php?tid=1434  " target="_blank">http://www.droidcn.com/viewthread.php?tid=1434</a></p>
<p>5.大功告成！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xhuang.net/201003/linux/install-openvpn-support-for-milestone/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>change apache rewrite to nginx</title>
		<link>http://www.xhuang.net/201003/linux/change-apache-rewrite-to-nginx/</link>
		<comments>http://www.xhuang.net/201003/linux/change-apache-rewrite-to-nginx/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 10:42:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.xhuang.net/?p=134</guid>
		<description><![CDATA[全面从apache转向nginx了，可是对于某些程序.htaccess内的rewrite兼职深恶痛绝，没办法，找了个网站自动转，节约我的脑细胞了 http://www.anilcetin.com/convert-apache-htaccess-to-nginx/]]></description>
			<content:encoded><![CDATA[<p>全面从apache转向nginx了，可是对于某些程序.htaccess内的rewrite兼职深恶痛绝，没办法，找了个网站自动转，节约我的脑细胞了</p>
<p><a href="http://www.anilcetin.com/convert-apache-htaccess-to-nginx/">http://www.anilcetin.com/convert-apache-htaccess-to-nginx/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xhuang.net/201003/linux/change-apache-rewrite-to-nginx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ddwrt通过vpn反击域名劫持</title>
		<link>http://www.xhuang.net/201003/linux/vpn_for_domain_hijacking_by_ddwrt/</link>
		<comments>http://www.xhuang.net/201003/linux/vpn_for_domain_hijacking_by_ddwrt/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 10:28:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[ddwrt]]></category>
		<category><![CDATA[域名劫持]]></category>

		<guid isPermaLink="false">http://www.xhuang.net/?p=128</guid>
		<description><![CDATA[基于大家都知道的原因，某党对一些特定域名进行了劫持，使得此区域内的人民无法访问这些网站。因为dns解析本身不是一个加密的传输过程，所以劫持域名是很easy的。这样一来，原本可以通过proxy，ssh tunnel等方式访问的这些网站由于无法获得正确的ip地址而无法访问。怎么办？ 既然dns解析这个过程是不加密的，容易被劫持，那我们就把它变成加密的。那我们必须用vpn保证dns解析的传输在经过某党的GFW的时候是一个加密的数据，让它没辙。 我家用的路由器刷成了ddwrt，这样一来我就可以配置ddwrt，让它自动拨号到某一墙外的vpn server，然后通过指定路由表来保证对dns的访问是通过vpn的。 我们的dns server选用8.8.8.8 在ddwrt输入：ip route add 8.8.8.8 via 10.20.0.1（vpn网关） 输入netstat -rn可以看到如下路由表 Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface 8.8.8.8         10.20.0.1       255.255.255.255 UGH       0 0          0 [...]]]></description>
			<content:encoded><![CDATA[<p>基于大家都知道的原因，某党对一些特定域名进行了劫持，使得此区域内的人民无法访问这些网站。因为dns解析本身不是一个加密的传输过程，所以劫持域名是很easy的。这样一来，原本可以通过proxy，ssh tunnel等方式访问的这些网站由于无法获得正确的ip地址而无法访问。怎么办？</p>
<p>既然dns解析这个过程是不加密的，容易被劫持，那我们就把它变成加密的。那我们必须用vpn保证dns解析的传输在经过某党的GFW的时候是一个加密的数据，让它没辙。</p>
<p>我家用的路由器刷成了ddwrt，这样一来我就可以配置ddwrt，让它自动拨号到某一墙外的vpn server，然后通过指定路由表来保证对dns的访问是通过vpn的。</p>
<p><a href="http://www.xhuang.net/wp-content/uploads/2010/03/ddwrt.png"><img class="alignnone size-medium wp-image-129" title="ddwrt" src="http://www.xhuang.net/wp-content/uploads/2010/03/ddwrt-300x172.png" alt="" width="300" height="172" /></a></p>
<p>我们的dns server选用8.8.8.8</p>
<p>在ddwrt输入：ip route add 8.8.8.8 via 10.20.0.1（vpn网关）</p>
<p>输入netstat -rn可以看到如下路由表</p>
<p>Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface</p>
<p>8.8.8.8         10.20.0.1       255.255.255.255 UGH       0 0          0 ppp1</p>
<p>root@DD-WRT:~# traceroute 8.8.8.8</p>
<p>traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 38 byte packets</p>
<p>1  10.20.0.1 (10.20.0.1)  268.120 ms  267.180 ms  268.262 ms</p>
<p>对于8.8.8.8的访问都从远程vpn网关走了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xhuang.net/201003/linux/vpn_for_domain_hijacking_by_ddwrt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>配置 Debian Server – snmp</title>
		<link>http://www.xhuang.net/201002/linux/%e9%85%8d%e7%bd%ae-debian-server-%e2%80%93-snmp/</link>
		<comments>http://www.xhuang.net/201002/linux/%e9%85%8d%e7%bd%ae-debian-server-%e2%80%93-snmp/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 17:43:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>

		<guid isPermaLink="false">http://www.xhuang.net/?p=124</guid>
		<description><![CDATA[apt-get install snmp snmpd 增加防火墙： iptables -A INPUT -p udp -s serverip &#8211;dport 161 -j ACCEPT 启动后发现127.0.0.1:161，根据网上提示修改snmpd.conf文件，结果文件中没有 vi /etc/init.d/snmpd，发现/etc/default/snmpd文件中有SNMPDOPTS=&#8217;-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid  127.0.0.1&#8242; 删除127.0.0.1后完成 vx:/etc/default# netstat -anp &#124; grep 161 udp        0      0 0.0.0.0:161             0.0.0.0:*         [...]]]></description>
			<content:encoded><![CDATA[<p>apt-get install snmp snmpd</p>
<p>增加防火墙：</p>
<p>iptables -A INPUT -p udp -s serverip &#8211;dport 161 -j ACCEPT</p>
<p>启动后发现127.0.0.1:161，根据网上提示修改snmpd.conf文件，结果文件中没有</p>
<p>vi /etc/init.d/snmpd，发现/etc/default/snmpd文件中有SNMPDOPTS=&#8217;-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid  127.0.0.1&#8242;</p>
<p>删除127.0.0.1后完成</p>
<div id="_mcePaste">vx:/etc/default# netstat -anp | grep 161</div>
<div id="_mcePaste">udp        0      0 0.0.0.0:161             0.0.0.0:*                           3470/snmpd</div>
]]></content:encoded>
			<wfw:commentRss>http://www.xhuang.net/201002/linux/%e9%85%8d%e7%bd%ae-debian-server-%e2%80%93-snmp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>配置 Debian Server &#8211; openvpn with mysql</title>
		<link>http://www.xhuang.net/201002/linux/%e9%85%8d%e7%bd%ae-debian-server-openvpn-with-mysql/</link>
		<comments>http://www.xhuang.net/201002/linux/%e9%85%8d%e7%bd%ae-debian-server-openvpn-with-mysql/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 15:11:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.xhuang.net/?p=122</guid>
		<description><![CDATA[apt-get install openvpn openvpn常规配置参加其它 mysql -u root -p create database vpn; GRANT ALL ON vpn.* TO vpn@localhost IDENTIFIED BY &#8216;vpn123&#8242;; flush privileges; use vpn; CREATE TABLE vpnuser ( name char(20) NOT NULL, password char(128) default NULL, active int(10) NOT NULL DEFAULT 1, PRIMARY KEY (name) ); insert into vpnuser (name,password) values(&#8216;xhuang&#8217;,password(&#8216;xhuang&#8217;)); vi /etc/pam.d/openvpn auth sufficient [...]]]></description>
			<content:encoded><![CDATA[<p>apt-get install openvpn</p>
<p>openvpn常规配置参加其它</p>
<p>mysql -u root -p</p>
<p>create database vpn;</p>
<p>GRANT ALL ON vpn.* TO vpn@localhost IDENTIFIED BY &#8216;vpn123&#8242;;</p>
<p>flush privileges;</p>
<p>use vpn;</p>
<p>CREATE TABLE vpnuser ( name char(20) NOT NULL, password char(128) default NULL, active int(10) NOT NULL DEFAULT 1, PRIMARY KEY (name) );</p>
<p>insert into vpnuser (name,password) values(&#8216;xhuang&#8217;,password(&#8216;xhuang&#8217;));</p>
<p>vi /etc/pam.d/openvpn</p>
<p>auth sufficient pam_mysql.so user=vpn passwd=vpn123 host=localhost db=vpn \<br />
table=vpnuser usercolumn=name passwdcolumn=password \<br />
where=active=1 sqllog=0 crypt=2<br />
account required pam_mysql.so user=vpn passwd=vpn123 host=localhost db=vpn \<br />
table=vpnuser usercolumn=name passwdcolumn=password \<br />
where=active=1 sqllog=0 crypt=2</p>
<p>需要自己编译openvpn-auth-pam.so</p>
<p>下载openvpn 2.0.9源码:wget http://openvpn.net/release/openvpn-2.0.9.tar.gz</p>
<p>apt-get install make gcc libpam0g-dev</p>
<p>cd openvpn-2.0.9/plugin/auth-pam</p>
<p>make</p>
<p>cp openvpn-auth-pam.so /etc/openvpn/</p>
<p>chmod 775 /etc/openvpn/openvpn-auth-pam.so</p>
<p>vi /etc/openvpn/openvpn.conf</p>
<div id="_mcePaste">port 443</div>
<div id="_mcePaste">proto udp</div>
<div id="_mcePaste">dev tun</div>
<div id="_mcePaste">ca ca.crt</div>
<div id="_mcePaste">cert server.crt</div>
<div id="_mcePaste">key server.key</div>
<div id="_mcePaste">dh dh1024.pem</div>
<div id="_mcePaste">server 10.8.0.0 255.255.0.0</div>
<div id="_mcePaste">push &#8220;redirect-gateway def1&#8243;</div>
<div id="_mcePaste">push &#8220;dhcp-option DNS 208.69.228.30&#8243;</div>
<div id="_mcePaste">push &#8220;dhcp-option DNS 4.2.2.1&#8243;</div>
<div id="_mcePaste">ifconfig-pool-persist ipp.txt</div>
<div id="_mcePaste">keepalive 10 120</div>
<div id="_mcePaste">tls-auth ta.key 0</div>
<div id="_mcePaste">plugin ./openvpn-auth-pam.so openvpn</div>
<div id="_mcePaste">client-cert-not-required</div>
<div id="_mcePaste">username-as-common-name</div>
<div id="_mcePaste">comp-lzo</div>
<div id="_mcePaste">max-clients 20</div>
<div id="_mcePaste">user nobody</div>
<div id="_mcePaste">group nobody</div>
<div id="_mcePaste">persist-key</div>
<div id="_mcePaste">persist-tun</div>
<div id="_mcePaste">status openvpn-status.log</div>
<div id="_mcePaste">verb 4</div>
<div id="_mcePaste"></div>
<div><span style="font-family: 'Heiti SC Light', 'Times New Roman', 'Bitstream Charter', Times, serif; color: #444444;"><span style="font-size: medium;"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; color: #000000; font-size: small;"><span>client:</span></span></span></span></div>
<div><span style="font-family: 'Heiti SC Light', 'Times New Roman', 'Bitstream Charter', Times, serif; color: #444444;"><span style="font-size: medium;"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; color: #000000; font-size: small;"><span></p>
<div>client</div>
<div>dev tun</div>
<div>proto udp</div>
<div>remote ip 443</div>
<div>remote-random</div>
<div>resolv-retry infinite</div>
<div>nobind</div>
<div>persist-key</div>
<div>persist-tun</div>
<div>ca pca.crt</div>
<div>auth-user-pass</div>
<div>ns-cert-type server</div>
<div>tls-auth pta.key 1</div>
<div>comp-lzo</div>
<div>verb 4</div>
<p></span></span></span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.xhuang.net/201002/linux/%e9%85%8d%e7%bd%ae-debian-server-openvpn-with-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>配置 Debian Server &#8211; PPTP VPN</title>
		<link>http://www.xhuang.net/201002/linux/%e9%85%8d%e7%bd%ae-debian-server-pptp-vpn/</link>
		<comments>http://www.xhuang.net/201002/linux/%e9%85%8d%e7%bd%ae-debian-server-pptp-vpn/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 14:17:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.xhuang.net/?p=118</guid>
		<description><![CDATA[apt-get install pptpd vi /etc/pptpd.conf localip 10.20.0.1 remoteip 10.20.0.100-200 vi /etc/ppp/pptpd-options ms-dns 208.69.228.30 ms-dns 4.2.2.1 vi /etc/ppp/chap-secrets username pptpd password * vi /etc/sysctl.conf net.ipv4.ip_forward=1 sysctl -p /etc/sysctl.conf iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE /etc/init.d/pptpd restart]]></description>
			<content:encoded><![CDATA[<p>apt-get install pptpd</p>
<p>vi /etc/pptpd.conf</p>
<p>localip 10.20.0.1<br />
remoteip 10.20.0.100-200</p>
<p>vi /etc/ppp/pptpd-options</p>
<div id="_mcePaste">ms-dns 208.69.228.30</div>
<div id="_mcePaste">ms-dns 4.2.2.1</div>
<p>vi /etc/ppp/chap-secrets</p>
<p>username pptpd password *</p>
<p>vi /etc/sysctl.conf</p>
<p>net.ipv4.ip_forward=1</p>
<p>sysctl -p /etc/sysctl.conf</p>
<p>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE</p>
<p>/etc/init.d/pptpd restart</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xhuang.net/201002/linux/%e9%85%8d%e7%bd%ae-debian-server-pptp-vpn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>配置 Debian Server-nginx+mysql+php</title>
		<link>http://www.xhuang.net/201002/linux/config-debian-server-nginxmysqlphp/</link>
		<comments>http://www.xhuang.net/201002/linux/config-debian-server-nginxmysqlphp/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 13:56:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[fast-cgi]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.xhuang.net/?p=113</guid>
		<description><![CDATA[http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-debian-lenny 记住，千万不要用php5.3，否则就麻烦咯]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-debian-lenny">http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-debian-lenny</a></p>
<p>记住，千万不要用php5.3，否则就麻烦咯</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xhuang.net/201002/linux/config-debian-server-nginxmysqlphp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>unixbench测试</title>
		<link>http://www.xhuang.net/201001/linux/unixbench_score/</link>
		<comments>http://www.xhuang.net/201001/linux/unixbench_score/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 10:14:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.xhuang.net/?p=109</guid>
		<description><![CDATA[1.VPS/openvz/192M/E5300/ INDEX VALUES TEST                                        BASELINE     RESULT      INDEX Dhrystone 2 using register variables        376783.7  5247702.6      139.3 Double-Precision Whetstone                     [...]]]></description>
			<content:encoded><![CDATA[<p>1.VPS/openvz/192M/E5300/</p>
<div id="_mcePaste">INDEX VALUES</div>
<div id="_mcePaste">TEST                                        BASELINE     RESULT      INDEX</div>
<div id="_mcePaste">Dhrystone 2 using register variables        376783.7  5247702.6      139.3</div>
<div id="_mcePaste">Double-Precision Whetstone                      83.1      964.2      116.0</div>
<div id="_mcePaste">Execl Throughput                               188.3     4576.3      243.0</div>
<div id="_mcePaste">File Copy 1024 bufsize 2000 maxblocks         2672.0   105728.0      395.7</div>
<div id="_mcePaste">File Copy 256 bufsize 500 maxblocks           1077.0    35252.0      327.3</div>
<div id="_mcePaste">File Read 4096 bufsize 8000 maxblocks        15382.0   822425.0      534.7</div>
<div id="_mcePaste">Pipe-based Context Switching                 15448.6   215811.8      139.7</div>
<div id="_mcePaste">Pipe Throughput                             111814.6  1083985.5       96.9</div>
<div id="_mcePaste">Process Creation                               569.3    13649.9      239.8</div>
<div id="_mcePaste">Shell Scripts (8 concurrent)                    44.8      623.8      139.2</div>
<div id="_mcePaste">System Call Overhead                        114433.5   995473.2       87.0</div>
<div id="_mcePaste">=========</div>
<div id="_mcePaste">FINAL SCORE                                                     188.5</div>
<p>INDEX VALUES            TEST                                        BASELINE     RESULT      INDEX<br />
Dhrystone 2 using register variables        376783.7  5247702.6      139.3Double-Precision Whetstone                      83.1      964.2      116.0Execl Throughput                               188.3     4576.3      243.0File Copy 1024 bufsize 2000 maxblocks         2672.0   105728.0      395.7File Copy 256 bufsize 500 maxblocks           1077.0    35252.0      327.3File Read 4096 bufsize 8000 maxblocks        15382.0   822425.0      534.7Pipe-based Context Switching                 15448.6   215811.8      139.7Pipe Throughput                             111814.6  1083985.5       96.9Process Creation                               569.3    13649.9      239.8Shell Scripts (8 concurrent)                    44.8      623.8      139.2System Call Overhead                        114433.5   995473.2       87.0                                                                 =========     FINAL SCORE                                                     <strong>188.5</strong></p>
<p>2.VPS/XenVPS/128M/256swap/1*X3220</p>
<p>INDEX VALUES</p>
<p>TEST                                        BASELINE     RESULT      INDEX</p>
<p>Dhrystone 2 using register variables        376783.7  5954617.8      158.0</p>
<p>Double-Precision Whetstone                      83.1     1309.4      157.6</p>
<p>Execl Throughput                               188.3     1898.4      100.8</p>
<p>File Copy 1024 bufsize 2000 maxblocks         2672.0    54459.0      203.8</p>
<p>File Copy 256 bufsize 500 maxblocks           1077.0    15178.0      140.9</p>
<p>File Read 4096 bufsize 8000 maxblocks        15382.0   406666.0      264.4</p>
<p>Pipe Throughput                             111814.6   317361.7       28.4</p>
<p>Pipe-based Context Switching                 15448.6    91247.9       59.1</p>
<p>Process Creation                               569.3     4368.9       76.7</p>
<p>Shell Scripts (8 concurrent)                    44.8      528.6      118.0</p>
<p>System Call Overhead                        114433.5   271997.7       23.8</p>
<p>=========</p>
<p>FINAL SCORE                                                      <strong>96.7</strong></p>
<p>3.dell 2950/Xeon 5130*2/4G/raid 0(2*146)</p>
<p>INDEX VALUES</p>
<p>TEST                                        BASELINE     RESULT      INDEX</p>
<p>Dhrystone 2 using register variables        376783.7 20154868.8      534.9</p>
<p>Double-Precision Whetstone                      83.1     1080.4      130.0</p>
<p>Execl Throughput                               188.3     8746.1      464.5</p>
<p>File Copy 1024 bufsize 2000 maxblocks         2672.0   146493.0      548.3</p>
<p>File Copy 256 bufsize 500 maxblocks           1077.0    38212.0      354.8</p>
<p>File Read 4096 bufsize 8000 maxblocks        15382.0  1363281.0      886.3</p>
<p>Pipe-based Context Switching                 15448.6   561180.6      363.3</p>
<p>Pipe Throughput                             111814.6  1515846.2      135.6</p>
<p>Process Creation                               569.3    27917.4      490.4</p>
<p>Shell Scripts (8 concurrent)                    44.8     1915.7      427.6</p>
<p>System Call Overhead                        114433.5  2119432.0      185.2</p>
<p>=========</p>
<p>FINAL SCORE                                                     <strong>353.1</strong></p>
<p>4.<span style="font-weight: normal;">dell 2850/Xeon 3.0*2/2g/raid5 (3*146)</span></p>
<p><span style="font-weight: normal;">INDEX VALUES</span></p>
<p>TEST                                        BASELINE     RESULT      INDEX</p>
<p>Dhrystone 2 using register variables        376783.7  8832282.0      234.4</p>
<p>Double-Precision Whetstone                      83.1      593.7       71.4</p>
<p>Execl Throughput                               188.3     5678.6      301.6</p>
<p>File Copy 1024 bufsize 2000 maxblocks         2672.0   102169.0      382.4</p>
<p>File Copy 256 bufsize 500 maxblocks           1077.0    30361.0      281.9</p>
<p>File Read 4096 bufsize 8000 maxblocks        15382.0   821021.0      533.8</p>
<p>Pipe-based Context Switching                 15448.6   236686.0      153.2</p>
<p>Pipe Throughput                             111814.6   981097.0       87.7</p>
<p>Process Creation                               569.3    17623.3      309.6</p>
<p>Shell Scripts (8 concurrent)                    44.8     1238.6      276.5</p>
<p>System Call Overhead                        114433.5  1283837.1      112.2</p>
<p>=========</p>
<p>FINAL SCORE                                                     <strong>211.3</strong></p>
<p>5.ibm 365/Xeon 2.8*2/4G/raid5(4*146)</p>
<p>INDEX VALUES</p>
<p>TEST                                        BASELINE     RESULT      INDEX</p>
<p>Dhrystone 2 using register variables        376783.7  6704488.6      177.9</p>
<p>Double-Precision Whetstone                      83.1      517.7       62.3</p>
<p>Execl Throughput                               188.3     5169.7      274.5</p>
<p>File Copy 1024 bufsize 2000 maxblocks         2672.0    97765.0      365.9</p>
<p>File Copy 256 bufsize 500 maxblocks           1077.0    27526.0      255.6</p>
<p>File Read 4096 bufsize 8000 maxblocks        15382.0   657348.0      427.3</p>
<p>Pipe-based Context Switching                 15448.6   252913.1      163.7</p>
<p>Pipe Throughput                             111814.6  1373811.4      122.9</p>
<p>Process Creation                               569.3    14007.6      246.0</p>
<p>Shell Scripts (8 concurrent)                    44.8      865.7      193.2</p>
<p>System Call Overhead                        114433.5  1572901.6      137.5</p>
<p>=========</p>
<p>FINAL SCORE                                                     <strong>195.5</strong></p>
<p>6.macbook pro/2G/<span style="font-family: 'Lucida Grande', 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 11px;">Core 2 Duo 2.26G</span></p>
<p>INDEX VALUES</p>
<p>TEST                                        BASELINE     RESULT      INDEX</p>
<p>Dhrystone 2 using register variables        376783.7  9436477.8      250.4</p>
<p>Double-Precision Whetstone                      83.1     1904.4      229.2</p>
<p>Execl Throughput                               188.3     1155.1       61.3</p>
<p>File Copy 1024 bufsize 2000 maxblocks         2672.0    83321.0      311.8</p>
<p>File Copy 256 bufsize 500 maxblocks           1077.0    22021.0      204.5</p>
<p>File Read 4096 bufsize 8000 maxblocks        15382.0   465187.0      302.4</p>
<p>Pipe Throughput                             111814.6   692730.0       62.0</p>
<p>Pipe-based Context Switching                 15448.6   114287.7       74.0</p>
<p>Process Creation                               569.3     4800.8       84.3</p>
<p>Shell Scripts (8 concurrent)                    44.8      394.0       87.9</p>
<p>System Call Overhead                        114433.5   744941.5       65.1</p>
<p>=========</p>
<p>FINAL SCORE                                                     <strong>127.9</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xhuang.net/201001/linux/unixbench_score/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx fastcgi cache启用前后性能对比</title>
		<link>http://www.xhuang.net/201001/linux/nginx-fastcgi-cache/</link>
		<comments>http://www.xhuang.net/201001/linux/nginx-fastcgi-cache/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 09:03:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[性能]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.xhuang.net/?p=89</guid>
		<description><![CDATA[测试环境: ramhost的vps,192M内存,跑wordpress,用apache的ab测试一个page 先看不启用cache的 Server Software: nginx/0.7.64 Server Hostname: www.xhuang.net Server Port: 80 Document Path: /about/ Document Length: 18015 bytes Concurrency Level: 20 Time taken for tests: 207.347340 seconds Complete requests: 1000 Failed requests: 982 (Connect: 0, Length: 982, Exceptions: 0) Write errors: 0 Total transferred: 18304372 bytes HTML transferred: 18048116 bytes Requests per second: 4.82 [...]]]></description>
			<content:encoded><![CDATA[<p>测试环境:</p>
<p>ramhost的vps,192M内存,跑wordpress,用apache的ab测试一个page</p>
<p>先看不启用cache的</p>
<p>Server Software:        nginx/0.7.64</p>
<p>Server Hostname:        www.xhuang.net</p>
<p>Server Port:            80</p>
<p>Document Path:          /about/</p>
<p>Document Length:        18015 bytes</p>
<p>Concurrency Level:      20</p>
<p>Time taken for tests:   207.347340 seconds</p>
<p>Complete requests:      1000</p>
<p>Failed requests:        982</p>
<p>(Connect: 0, Length: 982, Exceptions: 0)</p>
<p>Write errors:           0</p>
<p>Total transferred:      18304372 bytes</p>
<p>HTML transferred:       18048116 bytes</p>
<p><strong>Requests per second:    4.82 [#/sec] (mean)</strong></p>
<p>Time per request:       4146.947 [ms] (mean)</p>
<p>Time per request:       207.347 [ms] (mean, across all concurrent requests)</p>
<p>Transfer rate:          86.21 [Kbytes/sec] received</p>
<p>接着启用cache</p>
<p>Server Software:        nginx/0.7.64</p>
<p>Server Hostname:        www.xhuang.net</p>
<p>Server Port:            80</p>
<p>Document Path:          /about/</p>
<p>Document Length:        18064 bytes</p>
<p>Concurrency Level:      20</p>
<p>Time taken for tests:   66.140248 seconds</p>
<p>Complete requests:      1000</p>
<p>Failed requests:        998</p>
<p>(Connect: 0, Length: 998, Exceptions: 0)</p>
<p>Write errors:           0</p>
<p>Total transferred:      18323035 bytes</p>
<p>HTML transferred:       18066267 bytes</p>
<p><strong>Requests per second:    15.12 [#/sec] (mean)</strong></p>
<p>Time per request:       1322.805 [ms] (mean)</p>
<p>Time per request:       66.140 [ms] (mean, across all concurrent requests)</p>
<p>Transfer rate:          270.53 [Kbytes/sec] received</p>
<p>good!</p>
<p>配置请看<a href="http://blog.chinaunix.net/u2/69948/showart_1885428.html" target="_blank">http://blog.chinaunix.net/u2/69948/showart_1885428.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xhuang.net/201001/linux/nginx-fastcgi-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
