There is an ramdisk capability in Linux, which is achieved with mounting shmfs of tmpfs, like:
# mount -t shm shmfs -o size=20g /dev/shm
or
# mount –t tmpfs tmpfs /dev/shm
Also, some linuxes have ramfs
, which is "ramfs is similar to shmfs, except that pages are not pageable or swappable"
# mount -t ramfs ramfs /dev/shm
I want to create ramdisk on solaris 10 (sparc64) with big size (tens of GB). How can I do this in solaris? How can I create not just a ramdisk in solaris, but nonswappable ramdisk?
Then I want to use big file from ramdisk to mmap memory into 32-bit process, so the solution should allow me to mmap small parts of files from ramdisk into 32bit application.