<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Kpld's Blog</title>
	<atom:link href="http://kpld8888.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kpld8888.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 30 Sep 2010 06:25:48 +0000</lastBuildDate>
	<language>zh-cn</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='kpld8888.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Kpld's Blog</title>
		<link>http://kpld8888.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://kpld8888.wordpress.com/osd.xml" title="Kpld&#039;s Blog" />
	<atom:link rel='hub' href='http://kpld8888.wordpress.com/?pushpress=hub'/>
		<item>
		<title>migrate blog to here and bakup</title>
		<link>http://kpld8888.wordpress.com/2010/09/30/migrate-blog-to-here-and-bakup/</link>
		<comments>http://kpld8888.wordpress.com/2010/09/30/migrate-blog-to-here-and-bakup/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 06:24:22 +0000</pubDate>
		<dc:creator>kpld8888</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kpld8888.wordpress.com/?p=203</guid>
		<description><![CDATA[http://kpld.blogspot.com http://kpld.livejournal.com<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=203&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://kpld.blogspot.com">http://kpld.blogspot.com</a><br />
<a href="http://kpld.livejournal.com">http://kpld.livejournal.com</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpld8888.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpld8888.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpld8888.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpld8888.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpld8888.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpld8888.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpld8888.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpld8888.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpld8888.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpld8888.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpld8888.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpld8888.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpld8888.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpld8888.wordpress.com/203/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=203&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpld8888.wordpress.com/2010/09/30/migrate-blog-to-here-and-bakup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1ed492eed14746d82c1a10970ac2e98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpld8888</media:title>
		</media:content>
	</item>
		<item>
		<title>Include path and link path environment variables</title>
		<link>http://kpld8888.wordpress.com/2010/08/20/include-path-and-link-path-environment-variables-2/</link>
		<comments>http://kpld8888.wordpress.com/2010/08/20/include-path-and-link-path-environment-variables-2/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 23:38:26 +0000</pubDate>
		<dc:creator>kpld8888</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://kpld8888.wordpress.com/2010/08/20/include-path-and-link-path-environment-variables-2</guid>
		<description><![CDATA[C_INCLUDE_PATHCPLUS_INCLUDE_PATHLIBRARY_PATHCPATH<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=74&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="msgcns!8AC759DD08B8D806!610" class="bvMsg"> <strong>C_INCLUDE_PATH<br /></strong><strong>CPLUS_INCLUDE_PATH<br /></strong><strong>LIBRARY_PATH<br /></strong><strong>CPATH</strong></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpld8888.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpld8888.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpld8888.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpld8888.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpld8888.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpld8888.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpld8888.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpld8888.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpld8888.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpld8888.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpld8888.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpld8888.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpld8888.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpld8888.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=74&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpld8888.wordpress.com/2010/08/20/include-path-and-link-path-environment-variables-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1ed492eed14746d82c1a10970ac2e98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpld8888</media:title>
		</media:content>
	</item>
		<item>
		<title>deb package generation</title>
		<link>http://kpld8888.wordpress.com/2010/08/19/deb-package-generation-2/</link>
		<comments>http://kpld8888.wordpress.com/2010/08/19/deb-package-generation-2/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 23:52:01 +0000</pubDate>
		<dc:creator>kpld8888</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://kpld8888.wordpress.com/2010/08/19/deb-package-generation-2</guid>
		<description><![CDATA[1. tar xvf &#60;PackageName&#62;_&#60;Version&#62;.tar.gz2. cd &#60;PackageName&#62;_&#60;Version&#62;3. dh_make ../&#60;PackageName&#62;_&#60;Version&#62;.tar.gz4. modify file debian/control5. dpkg-buildpackage,then generate ../&#60;PackageName&#62;_&#60;Version&#62;_arch.deb<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=75&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="msgcns!8AC759DD08B8D806!608" class="bvMsg"> 1. tar xvf &lt;PackageName&gt;_&lt;Version&gt;.tar.gz<br />2. cd &lt;PackageName&gt;_&lt;Version&gt;<br />3. dh_make ../&lt;PackageName&gt;_&lt;Version&gt;.tar.gz<br />4. modify file debian/control<br />5. dpkg-buildpackage,then generate ../&lt;PackageName&gt;_&lt;Version&gt;_arch.deb </div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpld8888.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpld8888.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpld8888.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpld8888.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpld8888.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpld8888.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpld8888.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpld8888.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpld8888.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpld8888.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpld8888.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpld8888.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpld8888.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpld8888.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=75&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpld8888.wordpress.com/2010/08/19/deb-package-generation-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1ed492eed14746d82c1a10970ac2e98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpld8888</media:title>
		</media:content>
	</item>
		<item>
		<title>Hash</title>
		<link>http://kpld8888.wordpress.com/2010/08/04/hash/</link>
		<comments>http://kpld8888.wordpress.com/2010/08/04/hash/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 01:58:24 +0000</pubDate>
		<dc:creator>kpld8888</dc:creator>
				<category><![CDATA[Live Space]]></category>

		<guid isPermaLink="false">http://kpld8888.wordpress.com/2010/08/04/hash</guid>
		<description><![CDATA[// RS Hash Function unsigned int RSHash(char *str) { unsigned int b = 378551; unsigned int a = 63689; unsigned int hash = 0; while (*str) { hash = hash * a + (*str++); a *= b; } return (hash &#38; 0x7FFFFFFF); } // JS Hash Function unsigned int JSHash(char *str) { unsigned int hash [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=66&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="color:#008000;"><span style="font-family:Courier New,monospace;">// RS Hash Function</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"><span style="color:#0000ff;">unsigned int</span> RSHash(<span style="color:#0000ff;">char</span> *str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">{</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned</span> <span style="color:#0000ff;">int</span> b = 378551;</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned </span><span style="color:#0000ff;">int</span> a = 63689;</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned </span><span style="color:#0000ff;">int</span> hash = 0;</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">while </span>(*str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> {</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> hash = hash * a + (*str++);</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> a *= b;</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> }</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">return</span> (hash &amp; 0x7FFFFFFF);</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">}</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="color:#008000;"><span style="font-family:Courier New,monospace;">// JS Hash Function</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"><span style="color:#0000ff;">unsigned int</span> JSHash(<span style="color:#0000ff;">char</span> *str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">{</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned</span> <span style="color:#0000ff;">int</span> hash = 1315423911;</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">while </span>(*str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> {</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> hash ^= ((hash &lt;&lt; 5) + (*str++) + (hash &gt;&gt; 2));</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> }</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> </span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">return </span>(hash &amp; 0x7FFFFFFF);</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">}</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="color:#008000;"><span style="font-family:Courier New,monospace;">// P. J. Weinberger Hash Function</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"><span style="color:#0000ff;">unsigned int</span> PJWHash(<span style="color:#0000ff;">char</span> *str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">{</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned</span> <span style="color:#0000ff;">int</span> BitsInUnigne<span style="color:#000000;">dInt</span> = (<span style="color:#0000ff;">unsigned</span> <span style="color:#0000ff;">int</span>)(sizeof(<span style="color:#0000ff;">unsigned</span> <span style="color:#0000ff;">int</span>) * 8);</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned </span><span style="color:#0000ff;">int</span> ThreeQuarters    = (<span style="color:#0000ff;">unsigned</span> <span style="color:#0000ff;">int</span>)((BitsInUnigned<span style="color:#000000;">Int</span> * 3) / 4);</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned </span><span style="color:#0000ff;">int</span> OneEighth        = (<span style="color:#0000ff;">unsigned</span> <span style="color:#0000ff;">int</span>)(BitsInUnigned<span style="color:#000000;">Int</span> / 8);</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned </span><span style="color:#0000ff;">int</span> HighBits         = (<span style="color:#0000ff;">unsigned</span> <span style="color:#0000ff;">int</span>)(0xFFFFFFFF) &lt;&lt; (BitsInUnigned<span style="color:#000000;">Int</span> &#8211; OneEighth);</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned </span><span style="color:#0000ff;">int</span> hash             = 0;</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned </span><span style="color:#0000ff;">int</span> test             = 0;</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">while</span> (*str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> {</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> hash = (hash &lt;&lt; OneEighth) + (*str++);</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">if </span>((test = hash &amp; HighBits) != 0)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> {</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> hash = ((hash ^ (test &gt;&gt; ThreeQuarters)) &amp; (~HighBits));</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> }</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> }</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">return </span>(hash &amp; 0x7FFFFFFF);</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">}</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="color:#008000;"><span style="font-family:Courier New,monospace;">// ELF Hash Function</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"><span style="color:#0000ff;">unsigned</span> <span style="color:#0000ff;">int</span> ELFHash(<span style="color:#0000ff;">char</span> *str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">{</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned </span><span style="color:#0000ff;">int</span> hash = 0;</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned </span><span style="color:#0000ff;">int</span> x    = 0;</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">while </span>(*str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> {</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> hash = (hash &lt;&lt; 4) + (*str++);</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">if </span>((x = hash &amp; 0xF0000000L) != 0)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> {</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> hash ^= (x &gt;&gt; 24);</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> hash &amp;= ~x;</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> }</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> }</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">return</span> (hash &amp; 0x7FFFFFFF);</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">}</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="color:#008000;"><span style="font-family:Courier New,monospace;">// BKDR Hash Function</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"><span style="color:#0000ff;">unsigned</span> <span style="color:#0000ff;">int</span> BKDRHash(<span style="color:#0000ff;">char</span> *str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">{</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned </span><span style="color:#0000ff;">int</span> seed = 131; <span style="color:#008000;">// 31 131 1313 13131 131313 etc..</span></span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned </span><span style="color:#0000ff;">int</span> hash = 0;</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">while </span>(*str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> {</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> hash = hash * seed + (*str++);</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> }</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">return</span> (hash &amp; 0x7FFFFFFF);</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">}</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="color:#008000;"><span style="font-family:Courier New,monospace;">// SDBM Hash Function</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"><span style="color:#0000ff;">unsigned</span> <span style="color:#0000ff;">int</span> SDBMHash(<span style="color:#0000ff;">char</span> *str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">{</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned </span><span style="color:#0000ff;">int</span> hash = 0;</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">while </span>(*str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> {</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> hash = (*str++) + (hash &lt;&lt; 6) + (hash &lt;&lt; 16) &#8211; hash;</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> }</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">return</span> (hash &amp; 0x7FFFFFFF);</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">}</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="color:#008000;"><span style="font-family:Courier New,monospace;">// DJB Hash Function</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"><span style="color:#0000ff;">unsigned</span> <span style="color:#0000ff;">int</span> DJBHash(<span style="color:#0000ff;">char</span> *str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">{</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned </span><span style="color:#0000ff;">int</span> hash = 5381;</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">while </span>(*str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> {</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> hash += (hash &lt;&lt; 5) + (*str++);</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> }</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">return</span> (hash &amp; 0x7FFFFFFF);</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">}</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="color:#008000;"><span style="font-family:Courier New,monospace;">// AP Hash Function</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"><span style="color:#0000ff;">unsigned</span> <span style="color:#0000ff;">int</span> APHash(<span style="color:#0000ff;">char</span> *str)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">{</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">unsigned</span> <span style="color:#0000ff;">int</span> hash = 0;</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">int </span>i;</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">for</span> (i=0; *str; i++)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> {</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">if </span>((i &amp; 1) == 0)</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> {</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> hash ^= ((hash &lt;&lt; 7) ^ (*str++) ^ (hash &gt;&gt; 3));</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> }</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">else<br />
</span></span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> {</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> hash ^= (~((hash &lt;&lt; 11) ^ (*str++) ^ (hash &gt;&gt; 5)));</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> }</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;"> }</span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;">
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Arial,serif;"><span style="font-family:Courier New,monospace;"> <span style="color:#0000ff;">return</span> (hash &amp; 0x7FFFFFFF);</span></span></p>
<p style="margin-top:0;margin-bottom:0;line-height:.42cm;"><span style="font-family:Courier New,monospace;">}</span></p>
<p style="margin-top:0;margin-bottom:0;">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpld8888.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpld8888.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpld8888.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpld8888.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpld8888.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpld8888.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpld8888.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpld8888.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpld8888.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpld8888.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpld8888.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpld8888.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpld8888.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpld8888.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=66&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpld8888.wordpress.com/2010/08/04/hash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1ed492eed14746d82c1a10970ac2e98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpld8888</media:title>
		</media:content>
	</item>
		<item>
		<title>linux kernel crash analyze</title>
		<link>http://kpld8888.wordpress.com/2010/07/29/linux-kernel-crash-analyze-2/</link>
		<comments>http://kpld8888.wordpress.com/2010/07/29/linux-kernel-crash-analyze-2/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 16:56:39 +0000</pubDate>
		<dc:creator>kpld8888</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://kpld8888.wordpress.com/2010/07/29/linux-kernel-crash-analyze-2</guid>
		<description><![CDATA[ksymoops -m System.map &#60; oops.txt<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=77&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="msgcns!8AC759DD08B8D806!594" class="bvMsg"> ksymoops -m System.map &lt; oops.txt</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpld8888.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpld8888.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpld8888.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpld8888.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpld8888.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpld8888.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpld8888.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpld8888.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpld8888.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpld8888.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpld8888.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpld8888.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpld8888.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpld8888.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=77&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpld8888.wordpress.com/2010/07/29/linux-kernel-crash-analyze-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1ed492eed14746d82c1a10970ac2e98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpld8888</media:title>
		</media:content>
	</item>
		<item>
		<title>debug linux kernel with Eclipse</title>
		<link>http://kpld8888.wordpress.com/2010/07/25/debug-linux-kernel-with-eclipse-2/</link>
		<comments>http://kpld8888.wordpress.com/2010/07/25/debug-linux-kernel-with-eclipse-2/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 06:31:57 +0000</pubDate>
		<dc:creator>kpld8888</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://kpld8888.wordpress.com/2010/07/25/debug-linux-kernel-with-eclipse-2</guid>
		<description><![CDATA[http://issaris.blogspot.com/2007/12/download-linux-kernel-sourcecode-from.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=78&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="msgcns!8AC759DD08B8D806!583" class="bvMsg"> <span style="font-family:Tahoma;">http://issaris.blogspot.com/2007/12/download-linux-kernel-sourcecode-from.html</span></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpld8888.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpld8888.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpld8888.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpld8888.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpld8888.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpld8888.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpld8888.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpld8888.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpld8888.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpld8888.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpld8888.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpld8888.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpld8888.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpld8888.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=78&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpld8888.wordpress.com/2010/07/25/debug-linux-kernel-with-eclipse-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1ed492eed14746d82c1a10970ac2e98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpld8888</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux的I/O调度</title>
		<link>http://kpld8888.wordpress.com/2010/07/08/linux%e7%9a%84io%e8%b0%83%e5%ba%a6-2/</link>
		<comments>http://kpld8888.wordpress.com/2010/07/08/linux%e7%9a%84io%e8%b0%83%e5%ba%a6-2/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 00:33:38 +0000</pubDate>
		<dc:creator>kpld8888</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://kpld8888.wordpress.com/2010/07/08/linux%e7%9a%84io%e8%b0%83%e5%ba%a6-2</guid>
		<description><![CDATA[1. 电梯调度算法：io请求按块号排序放在一个普通队列。 2. Deadline算法：电梯调度算法，并增加了读FIFO队列与写FIFO队列。先按普通队列处理，若超时，再按FIFO队列进行处理。 3. Anticipatory算法：Deadline算法，并增加预测机制（6毫秒）。 4. CFQ（公平调度）算法：每个进程有自己的io请求队列，每个队列分配一个时间片。若超时，就处理下一个进程的队列。否则处理当前队列直至为空，之后空转10ms，看是否有新的请求。若无，则处理下一进程。此算法适合高负载的情况。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=80&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="msgcns!8AC759DD08B8D806!550" class="bvMsg">
<div>1. 电梯调度算法：io请求按块号排序放在一个普通队列。</div>
<div>2. Deadline算法：电梯调度算法，并增加了读FIFO队列与写FIFO队列。先按普通队列处理，若超时，再按FIFO队列进行处理。</div>
<div>3. Anticipatory算法：Deadline算法，并增加预测机制（6毫秒）。</div>
<div>4. CFQ（公平调度）算法：每个进程有自己的io请求队列，每个队列分配一个时间片。若超时，就处理下一个进程的队列。否则处理当前队列直至为空，之后空转10ms，看是否有新的请求。若无，则处理下一进程。此算法适合高负载的情况。</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpld8888.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpld8888.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpld8888.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpld8888.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpld8888.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpld8888.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpld8888.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpld8888.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpld8888.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpld8888.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpld8888.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpld8888.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpld8888.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpld8888.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=80&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpld8888.wordpress.com/2010/07/08/linux%e7%9a%84io%e8%b0%83%e5%ba%a6-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1ed492eed14746d82c1a10970ac2e98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpld8888</media:title>
		</media:content>
	</item>
		<item>
		<title>useful tools</title>
		<link>http://kpld8888.wordpress.com/2010/06/20/useful-tools-2/</link>
		<comments>http://kpld8888.wordpress.com/2010/06/20/useful-tools-2/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 23:13:07 +0000</pubDate>
		<dc:creator>kpld8888</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://kpld8888.wordpress.com/2010/06/20/useful-tools-2</guid>
		<description><![CDATA[lxzrz: Communication package providing the X, Y, and ZMODEM file transfer protocols        http://www.ohse.de/uwe/software/lrzsz.html kibitz: similar to multi-user mode of screen        http://expect.nist.gov/          http://nails.blog.51cto.com/640492/138028 dstat: Dstat is a versatile replacement for vmstat, iostat and ifstat        http://dag.wieers.com/home-made/dstat/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=81&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="msgcns!8AC759DD08B8D806!546" class="bvMsg"> lxzrz: Communication package providing the X, Y, and ZMODEM file transfer protocols
<div>       http://www.ohse.de/uwe/software/lrzsz.html</div>
<div>kibitz: similar to multi-user mode of screen</div>
<div>       http://expect.nist.gov/  </div>
<div>       http://nails.blog.51cto.com/640492/138028</div>
<div>dstat: Dstat is a versatile replacement for vmstat, iostat and ifstat</div>
<div>       http://dag.wieers.com/home-made/dstat/</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpld8888.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpld8888.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpld8888.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpld8888.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpld8888.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpld8888.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpld8888.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpld8888.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpld8888.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpld8888.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpld8888.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpld8888.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpld8888.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpld8888.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=81&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpld8888.wordpress.com/2010/06/20/useful-tools-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1ed492eed14746d82c1a10970ac2e98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpld8888</media:title>
		</media:content>
	</item>
		<item>
		<title>switch server under ssh</title>
		<link>http://kpld8888.wordpress.com/2010/06/18/switch-server-under-ssh-2/</link>
		<comments>http://kpld8888.wordpress.com/2010/06/18/switch-server-under-ssh-2/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 18:12:12 +0000</pubDate>
		<dc:creator>kpld8888</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://kpld8888.wordpress.com/2010/06/18/switch-server-under-ssh-2</guid>
		<description><![CDATA[input &#34;~&#34; and Ctrl+Z to go backuse fg to go to<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=82&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="msgcns!8AC759DD08B8D806!545" class="bvMsg"> input &quot;~&quot; and Ctrl+Z to go back<br />use fg to go to </div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpld8888.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpld8888.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpld8888.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpld8888.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpld8888.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpld8888.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpld8888.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpld8888.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpld8888.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpld8888.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpld8888.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpld8888.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpld8888.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpld8888.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=82&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpld8888.wordpress.com/2010/06/18/switch-server-under-ssh-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1ed492eed14746d82c1a10970ac2e98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpld8888</media:title>
		</media:content>
	</item>
		<item>
		<title>android notes</title>
		<link>http://kpld8888.wordpress.com/2010/06/12/android-notes-2/</link>
		<comments>http://kpld8888.wordpress.com/2010/06/12/android-notes-2/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 17:16:09 +0000</pubDate>
		<dc:creator>kpld8888</dc:creator>
				<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://kpld8888.wordpress.com/2010/06/12/android-notes-2</guid>
		<description><![CDATA[root shell:  adb shellupload file: adb remount             adb push c:111 /sdcard/download file: adb pull /sdcard/xxx c:install app: adb install [-s] xxx.apk      # -s: to sdcarduninstall app: adb uninstall [-k] xxx.apk  # -k: keep dataget serialno: adb get-serialno<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=84&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="msgcns!8AC759DD08B8D806!544" class="bvMsg"> root shell:  adb shell<br />upload file: adb remount<br />             adb push c:111 /sdcard/<br />download file: adb pull /sdcard/xxx c:<br />install app: adb install [-s] xxx.apk      # -s: to sdcard<br />uninstall app: adb uninstall [-k] xxx.apk  # -k: keep data<br />get serialno: adb get-serialno</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpld8888.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpld8888.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpld8888.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpld8888.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpld8888.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpld8888.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpld8888.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpld8888.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpld8888.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpld8888.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpld8888.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpld8888.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpld8888.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpld8888.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpld8888.wordpress.com&amp;blog=5477507&amp;post=84&amp;subd=kpld8888&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpld8888.wordpress.com/2010/06/12/android-notes-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1ed492eed14746d82c1a10970ac2e98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpld8888</media:title>
		</media:content>
	</item>
	</channel>
</rss>
