The best way to create a ram disk on linux is tmpfs. It’s a filesystem living in ram, so there is no need for ext2. You can create a tmpfs of 16Gb size with:
mount -o size=16G -t tmpfs none /mnt/tmpfs
Source: ramdisk – Creating a ram disk on Linux – Unix & Linux Stack Exchange