[精讚] [會員登入]
1601

[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] 安裝bind9 安裝dns服務器bind9 記錄

[Freebsd] 使用 ADSL 撥接上網 Freebsd上要使用 ADSL 撥接上網,該如何設定?

[FREEBSD] 在FreeBSD 如何使用 USB 隨身碟? 在FreeBSD 如何使用 USB 隨身碟?

[FREEBSD10] 解決vi/vim的中文字亂碼問題 vi, vim在Freebsd10使用UTF8時,中文字會出現亂碼,解決方法

[FREEBSD10] 安裝 dhcp 伺服器 Freebsd10 安裝 dhcp for IPv4伺服器

[Freebsd] 使用者的定時排程 crontab Freebsd 下若使用者要建立自己的 crontab,方法和 root來建有一些不同。

隨機好文

[jQuery] textarea 的取值和給值 HTML 的 TEXTAREA 標籤若要用 jquery 取值,不能使用 .text() 或 .html() ,使用 .

[jQuery] select 元件的取值及給值 html中的元件select,在jquery中要如何使用?

[Windows7] 移除IE10及移除IE11 Windows7 不得已的情況要移除IE11或IE10怎麼做?

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

[Wildfly10] 發佈war檔 deploy war file onto wildfly10