Ramdisk: Difference between revisions
Jump to navigation
Jump to search
Created page with " su mkdir /mnt/ramdisk mount -t tmpfs -o size=4g xfs /mnt/ramdisk To make it permanent, add it to ''/etc/fstab'': tmpfs /mnt/ramdisk xfs nodev,nosuid,noexec,nodirat..." |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
On critical daq servers (clondaqx) directory ''/et'' have to reside in ramdisk. Create directory ''/et'', and add following line in ''/etc/fstab'': | |||
none /et tmpfs nodev,nosuid,noexec,nodiratime,size=4096M 0 0 | |||
it will show up after reboot. To enable it without reboot, type ''mkdir /et'' and ''mount /et''. | |||
'''General info''' | |||
Check available memory size: | |||
free -g | |||
Example of creating 4G ramdisk and mounting it as ''/mnt/ramdisk'': | |||
su | su | ||
mkdir /mnt/ramdisk | mkdir /mnt/ramdisk | ||
mount -t tmpfs -o size=4g xfs /mnt/ramdisk | mount -t tmpfs -o size=4g xfs /mnt/ramdisk | ||
Latest revision as of 17:56, 1 February 2024
On critical daq servers (clondaqx) directory /et have to reside in ramdisk. Create directory /et, and add following line in /etc/fstab:
none /et tmpfs nodev,nosuid,noexec,nodiratime,size=4096M 0 0
it will show up after reboot. To enable it without reboot, type mkdir /et and mount /et.
General info
Check available memory size:
free -g
Example of creating 4G ramdisk and mounting it as /mnt/ramdisk:
su mkdir /mnt/ramdisk mount -t tmpfs -o size=4g xfs /mnt/ramdisk