1. 程式人生 > >Linux 記憶體檔案系統

Linux 記憶體檔案系統

Linux記憶體檔案系統:可滿足高IO的要求

  • ramdisk: 基於虛擬在記憶體中的其他檔案系統(ex2fs)。
    • 掛載方式:mount /dev/ram /mnt/ramdisk
  • ramfs: 實體記憶體檔案系統,只存在於實體記憶體中。其大小也不是固定的,而是隨著所需要的空間動態得增減。
    • 掛載方式:mount -t ramfs none /mnt/ramfs -o maxsize=2000
  • tmpfs: 虛擬記憶體檔案系統,不同於塊裝置形式實現的ramdisk, 也不同於真對實體記憶體實現的ramfs 檔案系統。
    • tmpfs 可以使用實體記憶體,也能使用交換分割槽。
    • 掛載方式:mount tmpfs /mnt/tmpfs -t tmpfs -o size=32m

保持更新,轉載請註明出處。