<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.10" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments for 听松一隅</title>
	<link>http://blog.quehy.com</link>
	<description>ALaRechercheDuTempsPerdu</description>
	<pubDate>Sat, 04 Jul 2009 12:06:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.10</generator>

	<item>
		<title>Comment on lighttpd &#038; modcache ppt by Joshua Zhu</title>
		<link>http://blog.quehy.com/archives/212.html#comment-7604</link>
		<pubDate>Fri, 03 Jul 2009 07:46:59 +0000</pubDate>
		<guid>http://blog.quehy.com/archives/212.html#comment-7604</guid>
					<description>都是阙兄积累的经验啊，呵呵。

我列几条nginx比lighttpd实现上做的好的一些地方：
1、nginx和lighty用的都是event-driven，但是nginx所用epoll/kqueue用的是都ET模式。
2、nginx的内存池的管理也比较高效，一定程度上也省去了老担心memory leak的问题。lighty只是简单的malloc和free。
3、lighty的计时器管理方式非常原始（每1秒钟中断一次，遍历所有连接以处理超时），因此大量keep-alive连接以及各种读写超时对lighty来说会是个负担。
4、nginx的request字符串解析很漂亮，状态机分析，基本上是one pass。lighty与之相比要费多了。
5、......

虽然都是很细节的东西，可是正是这些细节，才是高效的原因啊。

P.S. 我也倾向于支持关闭掉keep-alive，原因是可以节省资源（如内存、计时器等），尤其是在有很多one-shot类型的请求时。这点上HAProxy的作者也持类似观点，甚至他都没让HAProxy支持keep-alive。</description>
		<content:encoded><![CDATA[<p>都是阙兄积累的经验啊，呵呵。</p>
<p>我列几条nginx比lighttpd实现上做的好的一些地方：<br />
1、nginx和lighty用的都是event-driven，但是nginx所用epoll/kqueue用的是都ET模式。<br />
2、nginx的内存池的管理也比较高效，一定程度上也省去了老担心memory leak的问题。lighty只是简单的malloc和free。<br />
3、lighty的计时器管理方式非常原始（每1秒钟中断一次，遍历所有连接以处理超时），因此大量keep-alive连接以及各种读写超时对lighty来说会是个负担。<br />
4、nginx的request字符串解析很漂亮，状态机分析，基本上是one pass。lighty与之相比要费多了。<br />
5、......</p>
<p>虽然都是很细节的东西，可是正是这些细节，才是高效的原因啊。</p>
<p>P.S. 我也倾向于支持关闭掉keep-alive，原因是可以节省资源（如内存、计时器等），尤其是在有很多one-shot类型的请求时。这点上HAProxy的作者也持类似观点，甚至他都没让HAProxy支持keep-alive。
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on mod_fastcgi fair load distribution patch by Du Song</title>
		<link>http://blog.quehy.com/archives/213.html#comment-7603</link>
		<pubDate>Fri, 03 Jul 2009 03:34:30 +0000</pubDate>
		<guid>http://blog.quehy.com/archives/213.html#comment-7603</guid>
					<description>啥时候能支持multiplex就更好了。</description>
		<content:encoded><![CDATA[<p>啥时候能支持multiplex就更好了。
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on mod_mem_cache patch for lighttpd 1.4.19 by Q</title>
		<link>http://blog.quehy.com/archives/197.html#comment-7598</link>
		<pubDate>Wed, 01 Jul 2009 04:00:55 +0000</pubDate>
		<guid>http://blog.quehy.com/archives/197.html#comment-7598</guid>
					<description>check_probation_lru调用的目的是防止只有一次访问的文件也被加载到内存里。也就是说需要访问过几次的文件才会被加载到内存中，这样可以提高内存缓存的效率</description>
		<content:encoded><![CDATA[<p>check_probation_lru调用的目的是防止只有一次访问的文件也被加载到内存里。也就是说需要访问过几次的文件才会被加载到内存中，这样可以提高内存缓存的效率
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on mod_mem_cache patch for lighttpd 1.4.19 by serena</title>
		<link>http://blog.quehy.com/archives/197.html#comment-7597</link>
		<pubDate>Wed, 01 Jul 2009 03:49:02 +0000</pubDate>
		<guid>http://blog.quehy.com/archives/197.html#comment-7597</guid>
					<description>mod_mem_cache中根据对象当前被点击否进行lru排队，在空间不够的情况下清除部分对象，但是check_probation_lru(srv, p, hash)中好像又用到对象被点击的历史记录，能否解释一下这个矛盾点？？？谢谢</description>
		<content:encoded><![CDATA[<p>mod_mem_cache中根据对象当前被点击否进行lru排队，在空间不够的情况下清除部分对象，但是check_probation_lru(srv, p, hash)中好像又用到对象被点击的历史记录，能否解释一下这个矛盾点？？？谢谢
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on mod_fastcgi fair load distribution patch by georgexsh</title>
		<link>http://blog.quehy.com/archives/213.html#comment-7595</link>
		<pubDate>Mon, 29 Jun 2009 11:02:22 +0000</pubDate>
		<guid>http://blog.quehy.com/archives/213.html#comment-7595</guid>
					<description>哇 果然放出了 赞!</description>
		<content:encoded><![CDATA[<p>哇 果然放出了 赞!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on mod_mem_cache patch for lighttpd 1.4.19 by Q</title>
		<link>http://blog.quehy.com/archives/197.html#comment-7594</link>
		<pubDate>Mon, 29 Jun 2009 03:40:20 +0000</pubDate>
		<guid>http://blog.quehy.com/archives/197.html#comment-7594</guid>
					<description>加载 mod_status，设置 status.statistics-url = "/lighttpd_status"。然后访问http://ip/lighttpd_status 可看到modcache 的缓存命中率</description>
		<content:encoded><![CDATA[<p>加载 mod_status，设置 status.statistics-url = &quot;/lighttpd_status&quot;。然后访问http://ip/lighttpd_status 可看到modcache 的缓存命中率
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on LINUX系统的SQUID优化 by freeke</title>
		<link>http://blog.quehy.com/archives/104.html#comment-7593</link>
		<pubDate>Mon, 29 Jun 2009 03:10:31 +0000</pubDate>
		<guid>http://blog.quehy.com/archives/104.html#comment-7593</guid>
					<description>如果用户上传和下载的视频都在几百M呢?这还能否适用于缓存呢?</description>
		<content:encoded><![CDATA[<p>如果用户上传和下载的视频都在几百M呢?这还能否适用于缓存呢?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on lighttpd &#038; modcache ppt by freeke</title>
		<link>http://blog.quehy.com/archives/212.html#comment-7592</link>
		<pubDate>Mon, 29 Jun 2009 03:05:50 +0000</pubDate>
		<guid>http://blog.quehy.com/archives/212.html#comment-7592</guid>
					<description>博主天天定阅您的博客,学习不少知识,表示感谢了!

近来想做视频网站的缓存,不知道这个技术是否可以用到呢?请问您对视频网站缓存有何建议呢?</description>
		<content:encoded><![CDATA[<p>博主天天定阅您的博客,学习不少知识,表示感谢了!</p>
<p>近来想做视频网站的缓存,不知道这个技术是否可以用到呢?请问您对视频网站缓存有何建议呢?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on mod_mem_cache patch for lighttpd 1.4.19 by chenqian</title>
		<link>http://blog.quehy.com/archives/197.html#comment-7591</link>
		<pubDate>Mon, 29 Jun 2009 03:02:00 +0000</pubDate>
		<guid>http://blog.quehy.com/archives/197.html#comment-7591</guid>
					<description>还有一个问题，想在试验环境下对lighttpd的cache性能做一个数据统计分析，有没有什么好的工具和方法，想听听你的意见。多谢！！</description>
		<content:encoded><![CDATA[<p>还有一个问题，想在试验环境下对lighttpd的cache性能做一个数据统计分析，有没有什么好的工具和方法，想听听你的意见。多谢！！
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on mod_mem_cache patch for lighttpd 1.4.19 by chenqian</title>
		<link>http://blog.quehy.com/archives/197.html#comment-7590</link>
		<pubDate>Mon, 29 Jun 2009 02:42:37 +0000</pubDate>
		<guid>http://blog.quehy.com/archives/197.html#comment-7590</guid>
					<description>请教，类似下面这样的统计值如何查看？谢谢！
status_counter_set(srv, CONST_STR_LEN(CACHE_HIT_PERCENT), ((float)reqhit/(float)reqcount)*100);</description>
		<content:encoded><![CDATA[<p>请教，类似下面这样的统计值如何查看？谢谢！<br />
status_counter_set(srv, CONST_STR_LEN(CACHE_HIT_PERCENT), ((float)reqhit/(float)reqcount)*100);
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
