Xorg が重かった

これを設定してDVDが見れなくなってたので、設定は自己責任で(2009/07/05)
どうも動作がもっさりしてるなあと思ってて(1ヶ月以上も…)、システムモニタ見てみたら Xorg がかなりCPUを使ってることに気づいた。


調べてみると、 /etc/X11/xorg.conf の Device Section 内に

Option "AccelMethod" "XAA"

と書き加えるといいらしい。

それで xorg.conf は以下のようになった。

Section "Device"
	Identifier	"Configured Video Device"
	Option		"AccelMethod"	"xaa"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
	Device		"Configured Video Device"
EndSection

その後、再起動。
すると、動作がもっさりしてたのが、割とサクサク動くようになった(ように感じた)。Alt+Tabのウィンドウの切り替えとか、Firefoxのスクロールとか。


今はXorgのグラフィックアクセラレーションの仕組みはデフォルトで EXA(@Wikipedia(en)) が使われていて、その代わりに XAA(@Wikipedia(en))を使う、というような設定らしい。
Let's note CF-R4 で Intel 915GMS チップセットを使ってて、その関係かな・・?


参考:
http://d.hatena.ne.jp/moira/20080319/1205948775
Intel 945 Video Hint - Richard A. Johnson's Blog
http://develcuy.com/en/content/debian/exa-xaa-xorg-and-firefox-memory-leak