madogiwa_shuminohitoの日記: 【tmpfs】
日記 by
madogiwa_shuminohito
( ´`)ノ<今度はtmpfsを試してみたのれす。
IBMのwebサイトにある、このDoc、Using the virtual memory (VM) filesystem and bind mountsによると、rmadiskとは違って、tmpfsは
- RAMだけでなくswapも使え
- 大きさも動的に変化し
- block deviceとは違うから、フォーマットの必要もなし
- 更にblazing speed.(炎のような?速さ)で、
- almost instantaneous(ほとんど瞬間的な)読み書きを実現
と、なんとも入れ込んだ表現なのれす。(藁
カーネルで機能を有効にすればOK
CONFIG_TMPFS=y
あとは、mountコマンドでマウントするか
# mount tmpfs /tmp -t tmpfs
/etc/fstabに記述すればOKなのれす。
tmpfs /dev/shm tmpfs default 0 0
ところで、/dev/shmは単なる、tmpfsのデフォルトのマウントポイントらしいのれす。つまり、/tmpでもいいわけなのれす。
【tmpfs】 More ログイン