[精讚] [會員登入]
1695

[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

你可能感興趣的文章

Freebsd 套件和套件有關的指令 在 Freebsd 上的套件(packages)要如何安裝,可以自行下載檔案解壓編譯,或是利用 ports。

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

[Freebsd14] 安裝bind9 安裝dns服務器bind9 記錄

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

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

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

隨機好文

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

Linux shell 的date表示法 linux下SHELL中的date表示法

看懂DSUB DVI HDMI USB等各式影音接頭 看懂DSUB DVI HDMI等各式影音接頭

世紀帝國征服者新版本--被遺忘的帝國 世紀帝國征服者新版本--被遺忘的帝國 世紀二代的征服者是精典遊戲中的精典,aofe更好玩...

[MySQL/Mariadb] console 將查詢結果輸出到檔案 在mysql 的console中該如何將查詢結果輸出到檔案?