<?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>筍子工作雜記 &#187; Linux</title>
	<atom:link href="http://twycf.com/wordpress/archives/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://twycf.com/wordpress</link>
	<description>工作、休閒之類的雜記</description>
	<lastBuildDate>Wed, 18 Nov 2009 15:20:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>利用 nice , renice 指定程式優先權</title>
		<link>http://twycf.com/wordpress/archives/57</link>
		<comments>http://twycf.com/wordpress/archives/57#comments</comments>
		<pubDate>Tue, 09 May 2006 13:04:19 +0000</pubDate>
		<dc:creator>shinnlu</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://twycf.com/wordpress/archives/57</guid>
		<description><![CDATA[在寫這一篇的時候，忽然回想到退伍後的第一份工作，在中華電信帳務機房裡當OP(系統操作員)，這個工作主要內容除了接聽各營業據點的重置電話(終端機當機時需要 reset)、換磁帶以外，調整 job 的優先權是一項極重要的工作，各位可別小看了這項看似不起眼的工作，在帳務機房裡的大型主機裡，CPU Loading 常常是 100%，執行中的 job 經常是5~60支以上，而這些 job 執行時間短的可以是5秒以下，長的可以跑將近一天，而每天要跑的程式大同小異，但有時候會跑一些新方案的計算，所以把所有的工作在當天完成是基本的需求。如果今天跑不完，又累積到明天，會造成惡性循環，最好的情況是在周未可以跑完，最差的情況是所有的 job 全部在等該 job 釋放資源(或是等該 job 的結果)。
所以在一個高負載的 Unix 主機中，調整系統優先權(Priority) 可說是非常重要的一部份，而調整的結果也關係到能不能及時的完成工作，空出更多的 cpu time 來處理其他的 job(或是說釋放出資源給其他 job)
對於一個尚未執行的工作，我們可以用 nice 來指定其優先權
nice -n 15 /usr/local/sbin/smbd
對於一個己經執行的工作，我們則用 renice 來指定優先權
renice -n 15 /usr/local/sbin/smbd
其中的 15 則是指 Nice 值，系統中的 Nice 值可以從 -20 ~ 20，一般的 user 可以調整的範圍從 0 ~ 20，只有 super 可以指定 -20 ~ 0 的值，這個數值越低，則系統優先權越高，反之優先權越低。
對於越重要、需快速處理的工作，我們可以將他的Nice [...]]]></description>
		<wfw:commentRss>http://twycf.com/wordpress/archives/57/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>想自己架虛擬主機嗎?試試 ISPConfig 吧…</title>
		<link>http://twycf.com/wordpress/archives/65</link>
		<comments>http://twycf.com/wordpress/archives/65#comments</comments>
		<pubDate>Mon, 08 May 2006 04:58:25 +0000</pubDate>
		<dc:creator>shinnlu</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://twycf.com/wordpress/archives/65</guid>
		<description><![CDATA[ISPConfig 是一套虛擬空間管理程式，不但完全 Open-source ，而且採用的是 BSD License，對於想要走向商業行為的使用者，是非常有利的一點。
官方網頁、ScreenShot、線上體驗
可管理的服務列表
Httpd (virtual hosts, domain and IP based)
FTP
Bind (A, CNAME, MX and SPF Records)
POP3 Auto-Responder
MySQL client-databases
Webalizer statistics
Harddisk quota
Mail-Quota
Traffic limits
IP-addresses
SSL
SSI
Shell-access
Mailscanner (Antivirus)
Firewall
系統需求
Mandrake Linux starting from version 8.1 to 10.2
Mandriva 2006
Red Hat Linux starting from version 7.3 to 9.0
Fedora Core 1 &#8211; 5
SuSE Linux starting from version 7.2 to 10.0
Debian 3.0 (Woody) and Debian [...]]]></description>
		<wfw:commentRss>http://twycf.com/wordpress/archives/65/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

