[Tfug] Small-ish (capacity + size) disk alternatives
Bexley Hall
bexley401 at yahoo.com
Tue Jan 29 22:45:24 MST 2013
Hi,
On 1/29/2013 4:24 PM, TR wrote:
> Something like this will map ram to a filesystem. Put it in an init
> scripts.
>
> <snip>
>
> if [ -e /dev/shm/.mounted ]; then
> echo "/dev/shm is already mounted, nothing to do"
> else
> rm -f /dev/shm
> mkdir /dev/shm
> mount -t tmpfs shmfs -o size=16384M /dev/shm
> touch /dev/shm/.mounted
> </snip>
Yes, but that assumes you've got (e.g., 30G) of RAM lying around :>
The whole point of the disk drive is as "slow (inexpensive)
memory" in places where *fast* (expensive) memory is not
necessary!
(It's also a win in that it allows for reducing capabilities
in the processor, etc. -- i.e., so you don't need DIRECT ACCESS
to all that memory)
More information about the tfug
mailing list