Jump to content
Welcome to InsanelyMac Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Running from a RAMdisk?

2 posts in this topic

Recommended Posts

Okay, so I'm heavily intoxicated here. Please pardon if I'm making an ass of myself. But I was thinking, I have 8 GB of RAM in my MacBook Pro, 6 GB in my Mac Pro, and 32 GB in my Xserve. I very, very rarely use anywhere near all that. In fact, I very, very rarely deal with much more than all that every day. Is there any way to have a RAMdisk, so my first boot copies everything from a hard drive partition to a RAM disk and shutdown dumps it to an image or something? I'm just thinking, solid state disks are really fast, RAM is faster, SSD's are expensive, and I already have RAM. Is there any way to do something like this? Maybe using a hypervisor?

Share this post

Link to post
Share on other sites

I don't know about mounting the ENTIRE file system to shared ram (ramdisk) without doing this in chameleon or another bootloader.


However, you might be able to create /dev/shm, then copy an entire volume to /dev/shm then a symbolic link (or something similar) from that volume to the new 'volume'.. this would allow 100% of the hard drive read/writes to go to ram, but the problem with this is 1) you need way more than 8GB of ram. I think the min volume size for an osx disk is like 12gigs or something crazy. and 2) All writes to /dev/shm will not be written to the real volume causing data loss. Even if coding a script that writes to the hdd when changes are made as a sort of 'backup', still dataloss would be apparent when there is a power outage, and it only complicates system updates 100x more than it should too.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.