分類彙整: Computer

FreeBSD 於 PAE 模式掛載 Samba 檔案系統

(For English version, please read previous post.)
(儘管 jnlin 及 lwhsu 一再敦促我將 kmd.twbbs.org 的主機升級至 amd64 架構;但由於歷史因素,我的伺服器在近期仍舊會維持 i386 的架構)

一般來說,FreeBSD 使用者若想掛載 Samba 檔案系統,只要輸入 “mount_smbfs” 指令即可。其餘載入 “smbfs.ko” 模組的動作會在背景自動完成,一切要歸功於 KLD (Kernel LoaDable module)。

但是當系統以 PAE 模式開機時,採用的核心是靜態連結的;因此無法使用核心模組。類似的情況也發生在掛載光學儲存裝置時,例如:CD、DVD 或其他。

研究了一下,在此提出解法…
閱讀全文 FreeBSD 於 PAE 模式掛載 Samba 檔案系統 →

Mounting Samba File System in FreeBSD with PAE Kernel Configuration

(中文版請見下一篇文章)
(Though jnlin and lwhsu are pushing me migrate the host of kmd.twbbs.org to amd64 architecture; for some historical reasons, my server will stay in i386-arch within a few years.)

In general case, FreeBSD users who want to mount a samba file system to node can be simply done by using “mount_smbfs” command; then, it will load “smbfs.ko” module automatically.
Thanks to KLD!! (Kernel LoaDable module)

But when booting the system into PAE mode, the kernel were static linked; so, kernel modules are invalid in this scenario. A similar circumstance would happen while trying mounting optical drives, such as CD, DVD and etc.
And there is a workaround….
閱讀全文 Mounting Samba File System in FreeBSD with PAE Kernel Configuration →

FreeBSD 於不同儲存媒體 make world 的效能差異

前陣子提到 FreeBSD make world 的測速
當時測試的結果令人驚奇的是,ramdisk 的效能居然略遜於傳統硬碟上的測試結果
個人推測原因可能是儘管 ramdisk 空間開得夠大,但還是會倚賴 swap
繞一圈存取磁碟的結果,自然略遜於直接在傳統硬碟上的表現
於是這次找了擁有 8G 記憶體的 FreeBSD box (其實就是 kmd.twbbs.org 的主機) 重新測試
並針對 make 的 -j 參數最佳化作探討。
閱讀全文 FreeBSD 於不同儲存媒體 make world 的效能差異 →