[精讚] [會員登入]
1752

[Freebsd] 建立ramdisk

Freebsd 建立ramdisk,作為高速的暫存空間

分享此文連結 //n.sfs.tw/10346

分享連結 [Freebsd] 建立ramdisk @新精讚
(文章歡迎轉載,務必尊重版權註明連結來源)
2017-01-10 23:49:38 最後編修
2016-12-02 14:52:06 By 張○○
 

自動目錄

建立200mb的ramdisk,md1解除 md4

# mdconfig -a -t swap -s 200m -u 1
# newfs -U md1
/dev/md1: 200.0MB (409600 sectors) block size 16384, fragment size 2048
        using 4 cylinder groups of 50.02MB, 3201 blks, 6464 inodes.
        with soft updates
super-block backups (for fsck -b #) at:
 160, 102592, 205024, 307456
# mount /dev/md1 /mnt
# df /mnt

解除 md4

# mdconfig -d -u 4

參考資料

[1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-virtual.html

END

你可能感興趣的文章

[Freebsd14] 登入時自動加載alias (bash shell) alias登入時自動加戴雖然是不起眼的設定,但也讓我找了好久

[FreeBSD] 查看檔案詳細資訊 利用stat查看檔案詳細資訊

Freebsd 建立/刪除/修改使用者+特權使用者 Freebsd 下使用者建立、刪除、修改使用者,新增特權使用者

[FREEBSD] 使用 logrotate 來管理及備份日誌檔 Unix 系統中的日誌檔存放在 /var/log/ 中,可供我們查錯及觀察使用。日誌檔最大的問題是會不斷的長大。

[Freebsd8] PHP<5.5 安裝APC Freebsd8 上(php<5.5版本)安裝 pecl-APC

Freebsd上php+ session 的問題 php的session在freebsd上竟然預設是關掉的?簡直沒氣死我。

隨機好文

UTF-8 BOM (Byte Order Mark) 的問題 在 Michael Kaplan 那看到 Every character has a story #4: U+feff

[CodeIgniter 3] 資料庫的使用方法整理2/2 CI3 承襲 CI2,有很多的builder class可以用,依各人的使用習慣,有人喜歡一堆sql字串,有人喜歡用helper

[AS3] 變數型態 基本類型宣告 as3 有下列幾種基本類型:string, int, number, object, boolean, n

[Centos6] 安裝wordpress Centos 6下安裝wordpress,非常簡單

[MAC] 好用的傳檔程式Commander One(可用FTP、SFTP等協定) MAC上好用的傳檔程式,免費而且支援FTP、SFTP、Dropbox、Onedrive、GoogleDrive、WebDAV等協定