Forum: https://forum.pfsense.org/index.php?topic=106547.0 The underlying FreeBSD command seems to allocate space in MiB - e.g. https://www.freebsd.org/doc/handbook/disks-virtual.html examples show a 5m disk getting 10240 sectors (of 512 bytes) = 5120 KiB = 5 MiB. Even though the formatted space shown by df ends up being less, the underlying total allocated space is the specified size in MiB. /etc/rc.embedded does commands like: mdmfs -S -M -s 123m md /tmp Which will make a 123MiB memory disk.
Use MiB units for memory disk size
Forum: https://forum.pfsense.org/index.php?topic=106547.0
The underlying FreeBSD command seems to allocate space in MiB - e.g. https://www.freebsd.org/doc/handbook/disks-virtual.html examples show a 5m disk getting 10240 sectors (of 512 bytes) = 5120 KiB = 5 MiB. Even though the formatted space shown by df ends up being less, the underlying total allocated space is the specified size in MiB.
/etc/rc.embedded does commands like:
mdmfs -S -M -s 123m md /tmp
Which will make a 123MiB memory disk.