19

That is: a file system designed specifically for ramdisks? I know I could use any old file system but I want something specialized for performance.

3
  • 1
    Possible duplicate of superuser.com/questions/121989/… – Michael Hampton Jul 13 '12 at 18:14
  • Not a duplicate: I am looking for an optimized file system - that question just uses HFS+ – Ramon Jul 13 '12 at 19:28
  • It's unclear what you define as "an optimized file system". – poige Mar 24 '16 at 17:53
5

Short answer: no, there's no Tmpfs for Mac OS X. Tinkering with RAM-disks in Mac OS X is just naively mimicking what you get with Linux Tmpfs if you consider Linux' version as archetype — simply due to Tmpfs doesn't cut specified amount of RAM from system memory, allowing to swappage out its least-recently-used pages to swap.

Long answer is the same. ;)

1
4

Once you have a ram disk device, you can put any fs on it you like. HFS+ is going to be at least within an order of magnitude as good as any other fs. Since you're on a Mac, it's the most natural FS to put on your ram disk.

But as stated in the other (duplicate) question's answer: unix is pretty darn good at caching files with memory it's not using for other things. Taking space away from your OS and dedicating it to a ramdisk is usually not a good plan.

If you want to lower your i/o wait times and you have a very specific need, perhaps add an SSD to your system and use that.

Without knowing the details of your performance needs, it's very hard to answer your question with specifics.

1

There are couple of FUSE implementations, which should work on Mac:

It seems you can also use hdiutil:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.