I want to read and write to a ramdisk on OpenSolaris for performance testing purposes. The tests would be aimed at network transmission and I want to rule out disk performance. I set up the ramdisk on the NFS server, machine A, with
mkfile -nv 1000m `pwd`/ramdisk
on a directory that was mounted via NFS onto machine B. Reading the ramdisk went fine, but writing to it, just overwrote the file. I then setup a ramdisk with
ramdiskadm -a ramdisk1 1000m
which I can write to fine but I can't access over NFS. The ramdisk is put on /dev/ramdisk which is a link to /devices/pseudo I added /devices/pseudo to /etc/dfs/sharetab and mounted it on machine B without error, but the contents of the directory on machine B are emtpy.
Here is the high-level recipe for what you want to do:
mkfile doesn't create ramdisks, only files on some storage area. Since you want to test performance I don't see how it would help.
A much simpler solution: (thanks to Adam Leventhal for this tidbit)
On Server
On client:
works like an in memory file system.