21 七月, 2008

Nginx这么高效?

Nginx的Architecture and scalability一节里这么介绍:

Nginx运行时包括一个主进程和几个子进程,保持10K个HTTP连接,只耗用2.5M的内存。

2.5M/10K = 263Bytes

保留这么少的内存,意味着一旦HTTP请求进来,肯定少不了要申请内存,而频繁地内存申请释放操作要耗费很多CPU资源,然而Nginx又是出名的CPU资源小户,用到10%已经很了不起了(参考Why Use Nginx?中用户的表扬信)

用这么少的资源,不光要减少disk IO操作,也必须减少Memory操作才行,相信上面的“data copy operations are kept to a minimum.”是关键,不知道和这里提到的Patent有没有关联。

@todo: 做个记号,抽空研究一下源码。

几个链接:

http://www.nginx.net/

WIKI (English)

关于 Nginx 的几个误解(不能说是误解,对于一个迅速发展的开源软件,今天和明天在功能或者支持上有些不一致很正常)

Reducing data copy operations for writing data from a network to storage of a cached data storage system by organizing cache blocks as linked lists of data fragments


11 七月, 2008

Firefox 3 and Google Toolbar 3

来源:Download Google Toolbar 3.1.20080605W for Firefox 3.0 Support

Firefox升级到3.0后,部分用户不能使用Google toolbar,即时从官方网站下载最新的安装包也没用,安装时会跳出如下错误信息:

Google Toolbar for Firefox 3.0.20070525L could not be installed because it is not compatible with Firefox 3.0

注意,此处提到的3.0.20070525L是Google Toolbar的版本,事实上,Google已在上月中就release了和FF3完全兼容的最新Toolbar,版本是3.1.20080605W。但是因为Google网站自动判别客户机(OS+Browser)的程序有点错误,常常会引导用户下载这个老的不兼容版本的Toolbar。

如果碰到这种情况,你可以点击以下链接直接下载:

Windows: http://dl.google.com/firefox/google-toolbar-ff3-win.xpi
Mac OS X: http://dl.google.com/firefox/google-toolbar-ff3-mac.xpi
Linux: http://dl.google.com/firefox/google-toolbar-ff3-linux.xpi


17 八月, 2007

Video changes things, business learning, YouTube

Video changes things 2007-08-17 01:36:00

Permanent link | comment | Seth Godin |

With very little notice, YouTube has become a significant force in business learning. People that would never read a 200 page book will happily watch a three minute video. Here's a page with a dozen or so videos to get you started. Feel free to add your favorites. My guess is that the quality and the quantity of material like this is about to soar. [Dan points us to a similar site with a very different business model].

business learning”,确实如此。