<?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>Kanru&#039;s 探險日誌 &#187; awesome</title>
	<atom:link href="http://blog.kanru.info/archives/tag/awesome/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.kanru.info</link>
	<description>當發現美好的事物時，所要做的第一件事，就是把它分享給所有人</description>
	<lastBuildDate>Sun, 23 May 2010 09:51:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Strange slowness and the reason</title>
		<link>http://blog.kanru.info/archives/531</link>
		<comments>http://blog.kanru.info/archives/531#comments</comments>
		<pubDate>Sun, 07 Dec 2008 11:37:15 +0000</pubDate>
		<dc:creator>kanru</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[爬網探險]]></category>
		<category><![CDATA[awesome]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[zsh]]></category>

		<guid isPermaLink="false">http://blog.kanru.info/?p=531</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>最近系統在開啟 firefox 後常常會使得整個系統越來越慢，一開始以為是因為我用 minefield 的關係。到 bugzilla 搜尋了半天只發現跟啟用 jemalloc 會拖慢系統的相關問題，我以為就是這個原因，因為有一次我 /tmp 開不夠大，結果被 jemalloc 的 mmap 檔塞爆了。但是調整 jemalloc 相關參數之後仍不見起色。</p>

<p>於是我換回預設的 iceweasel 3.0.3，但情況還是一樣。只要開啟 firefox 之後系統就會明顯變慢，但是看記憶體用量也不會越變越多，是正常範圍。越來越覺得可能不是 firefox 的錯，不然 bugzilla 與 web 上早就叫苦連天了。</p>

<p>今天突然想到我在編譯 kernel 的時候有加入 CONFIG_HIGHPTE 選項，以為是因此拖慢系統，又認為可能是因為開啟 CONFIG_HIGHMEM4G 所以又增加額外 overhead，於是開始研究解決方法。</p>

<p>開啟 CONFIG_HIGHMEM4G 是因為我總共有 1.25 G 的記憶體可以用，但是 Linux 預設只能使用實體記憶體 9xx MB 的大小，不得已只好開啟 CONFIG_HIGHMEM4G，可以參考 <a href="http://kerneltrap.org/node/2450">Kernel Trap</a> 這篇。</p>

<p>搜尋一下在 2004 年與 2006 年都有把 2G memory split 選項加入的<a href="http://markmail.org/message/wipber3lohcbpmxb">討論</a>，但是目前編譯 2.6.28-rc7 時還是要先開啟 EMBEDDED 才能選 VMSPLIT_2G&#8230;</p>

<p>總之編譯了 kernel 重開機測試，打開 htop 監看記憶體用量與 CPU 用量，突然發現我所有的 process 都是 nice 5，想起 awesome 有個 bug report 就是一樣的問題，因為某一次的修改讓 awesome 會用 SHELL 環境變數裡面的 shell 來執行程式，而有問題的是 zsh，因為 zsh 預設會給 background process 比較高的 nice 值，而我只有瞄過這個 bug report 沒有多想&#8230;</p>

<p>我使用 cpufreq 的 ondemand governor，如果 process 的 nice 值大於零則不會替該 process 調高 CPU 速度，因此很有可能這樣才讓系統顯得緩慢 (永遠都是 798 MHz)，從 .xsession 把 SHELL 指定為 /bin/sh 之後 nice 值都正常了，直到現在系統都沒有變慢的情形。</p>

<p>令人好奇的是，究竟是因為我改了 kernel 參數而變好的，還是改了 SHELL 才變好的呢&#8230; 我猜大概是後者影響比較多吧。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kanru.info/archives/531/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Awesome 3.0 released</title>
		<link>http://blog.kanru.info/archives/336</link>
		<comments>http://blog.kanru.info/archives/336#comments</comments>
		<pubDate>Thu, 18 Sep 2008 14:33:48 +0000</pubDate>
		<dc:creator>kanru</dc:creator>
				<category><![CDATA[爬網探險]]></category>
		<category><![CDATA[awesome]]></category>

		<guid isPermaLink="false">http://blog.kanru.info/?p=336</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://awesome.naquadah.org/">Awesome</a> 3.0 釋出了！</p>

<p>可以在 <a href="http://awesome.naquadah.org/download/">http://awesome.naquadah.org/download/</a> 下載，搭配 xcb-util 3.0 服用</p>

<p>用 debian sid+experimental 的，等一會兒就會有了 <img src='http://blog.kanru.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kanru.info/archives/336/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Awesome Window Manager</title>
		<link>http://blog.kanru.info/archives/299</link>
		<comments>http://blog.kanru.info/archives/299#comments</comments>
		<pubDate>Mon, 01 Sep 2008 07:48:13 +0000</pubDate>
		<dc:creator>kanru</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[爬網探險]]></category>
		<category><![CDATA[awesome]]></category>

		<guid isPermaLink="false">http://blog.kanru.info/?p=299</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://awesome.naquadah.org/">awesome</a> 是眾多衍生自 <a href="http://www.suckless.org/dwm/">dwm</a> 的 window manager 的其中之一，是一種 <a href="http://en.wikipedia.org/wiki/Tiling_window_manager">tiling window manager</a>。第一次接觸到 tiling wm 是 <a href="http://modeemi.fi/~tuomov/ion/">ion</a>，但是因為設定不容易且用不習慣，一下就放棄了。幾個月前發現時常有人在 Debian Planet 上 awesome, awesome 的嚷嚷，花了點時間才搜尋到這個 wm 的首頁，稍微試用一下卻馬上就被吸引住了！目前的 stable 版本也就是我第一次使用的是 awesome 2.3 版，主打的是簡單的設定檔，良好的 EWMH 支持，XRandr/Xinerama 支持等，還有就是比 virtual desktop 更方便的 tag 用法，動態的 layout 等。噢，還有一個一定要提的就是 widget 的支援，awesome 提供基礎的顯示元件如 text, graph, image 等，可以利用 script 把資訊更新到 widget 上，可以輕鬆的自製 widget。</p>

<p>2.3 版用的還挺習慣的，widget 雖然需要用 script 去更新資料，但是也有許多人寫好許多模組利用 ruby, perl 或是獨立程式去更新資料。可是在我還在適應期，還沒開始自訂我的環境時，<a href="http://julien.danjou.info/blog/">jd</a> 宣佈開始 awesome 3 的開發，要全面使用 XCB 並引入 Lua 作為設定/程式介面。心養養的我就開始使用 git 版的 awesome，awesome 3 因為引入 XCB 幾乎全面改寫，而 Lua 使得 awesome 大部分的操作都便得動態且可以自訂，如 widget 就可以用 Lua 完成，client 的操作、tag 的切換、快捷鍵的設定，通通都可以透過 Lua 設定卻又維持一定的可讀性。因此，awesome 3 的定位變成了進階使用者為主，高度客製化的 framework window manager。</p>

<p>使用寬螢幕或是大螢幕時，常要調整視窗大小，不容易完全利用到整個螢幕的空間，compiz 等 3d wm 雖然特效絢麗，但是仍比不上 tiling wm 的方便有效率。awesome 推出沒多久就受到許多人的青睞，在這次的 DebConf8 就有數位 DD 使用 awesome 上台演說呢 XD</p>

<p>底下這張圖是 GGLucas 的四螢幕，充分展現了 awesome 在多螢幕環境的威力 <img src='http://blog.kanru.info/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>

<div class="wp-caption alignnone" style="width: 682px"><a href="http://data.glacicle.com/screens/jul_arch_awesome.png"><img alt="GGLucass Awesome Screenshot" src="http://data.glacicle.com/screens/jul_arch_awesome.png" title="GGLucass Awesome Screenshot" width="672" height="105" /></a><p class="wp-caption-text">GGLucas&#39;s Awesome Screenshot</p></div>

<p>awesome 3 預計下禮拜就要釋出了，Debian 的使用者可以直接從 experimental 安裝 3.0~rc5</p>

<p>從官網節錄的一些特性：</p>

<ul>
<li>目前唯一使用 XCB 的 window manager</li>
<li>良好的文件</li>
<li>所有工作皆可用鍵盤完成</li>
<li>Multihead 支援，可用 XRandR, Xinerama, Zaphod</li>
<li>實做 Freedesktop 標準：EWMH, XDG Base Directory, XEmbed, System Tray</li>
<li>根據不同 tag 的 policy 自動排列視窗</li>
<li>使用 tag 而不是 workspace，可以根據需要選擇要顯示哪些 tag 內的視窗，可以同時選擇多個 tag</li>
<li>可以使用眾多的 Lua 擴充：dynamic tagging, widget feeding, tabs, …</li>
<li>D-Bus 支援</li>
</ul>

<p>awesome 的客製化可以參考 <a href="http://awesome.naquadah.org/wiki/index.php?title=Main_Page">Wiki</a> 以及 <a href="http://awesome.naquadah.org/apidoc/">Lua api doc</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kanru.info/archives/299/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
