% hdid ram://size where size is the size in bytes. the system will round that number up or down as it sees fit.
% hdid ram://size