Volker A. Brandt wrote: >>> [most people don't seem to know Solaris has ramdisk devices] >>> >> That is because only a select few are able to unravel the enigma wrapped in >> a clue that is solaris :) >> > > Hmmm... very enigmatic, your remark. :-) > > > However, in this case I suspect it is because ramdisks don't really > work well on Solaris: > > <shelob:/home/volker,2846# uname -a > SunOS shelob 5.10 Generic_137111-02 sun4v sparc SUNW,Sun-Fire-T1000 > <shelob:/home/volker,2847# vmstat > kthr memory page disk faults cpu > r b w swap free re mf pi po fr de sr lf lf lf s0 in sy cs us sy id > 0 0 0 33849968 2223440 2 14 1 0 0 0 0 0 21 0 21 813 1263 957 0 0 99 > <shelob:/home/volker,2848# ramdiskadm > <shelob:/home/volker,2849# ramdiskadm -a testdisk 1g > ramdiskadm: couldn't create ramdisk "testdisk": Resource temporarily > unavailable > Exit 1 > <shelob:/home/volker,2850# ramdiskadm -a testdisk 768m > /dev/ramdisk/testdisk > <shelob:/home/volker,2851# vmstat > kthr memory page disk faults cpu > r b w swap free re mf pi po fr de sr lf lf lf rm in sy cs us sy id > 0 0 0 33849960 2223504 2 14 1 0 0 0 0 0 21 0 -0 813 1263 957 0 0 99 > <shelob:/home/volker,2852# ramdiskadm -a testdisk2 768m > ramdiskadm: couldn't create ramdisk "testdisk2": Resource temporarily > unavailable > Exit 1 > <shelob:/home/volker,2853# vmstat > kthr memory page disk faults cpu > r b w swap free re mf pi po fr de sr lf lf lf rm in sy cs us sy id > 0 0 0 33849952 2223552 2 14 1 0 0 0 0 0 21 0 -0 813 1263 957 0 0 99 > > > So they only work on and off. I never bothered to find out what the > problem was (in fact, I hadn't even tried the ramdiskadm cmd in that > version of Solaris before this email thread showed up). >
AIUI, the memory assigned to a ramdisk must be contiguous. This makes some sense in that they are designed to be bootable. If you've been running for a while, the chance of finding large, contiguous areas decreases. With tmpfs and lofiadm, the RAM requirement does not exist, but you are also not guaranteed to be using RAM. -- richard _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss