I created a ramdisk using tmpfs as follows:
sudo mount -t tmpfs -o size=1024m tmpfs /myramdisk
I was looking into cgroup blkio subsystem bandwidth limits "read_bps_device" and "write_bps_device" but they seem to require the major and minor number of your block device that you want to throttle access to.
Is there any way to achieve a similar bandwidth limit to the in-memory tmpfs ramdisk?
UPDATE: I found a roundabout hacky way of accomplishing this. I first nfs export the ramdisk mount. Then nfs mount it over loopback on the same machine. I then use linux network traffic shaping to set bandwidth limits. This seems to provide what I need. I'm in the process of performing some measurements to see the penalty this hideous layering entails. I'll update info on that in a few days.