Hacker News new | ask | show | jobs
by at_a_remove 970 days ago
One underused angle for oodles of memory is the humble ramdisk. If you haven't run into these, you set aside a portion of memory to serve as a disk volume. If you have a temporary work product, some kind of intermediate stage bit you will not save, shoving it in a ramdisk provides some really amazing speedups. You can put a SQLite database in it on the fly, just for analysis, run at blazing speeds, keep the results. Image an optical disk into your ramdrive, chow away at it, keep the work product, and just clear the memory.
1 comments

What software do you use to create it ?
Software?

   mount none /ramdisk -t tmpfs
There is some OSS for creating ramdisks on windows, but I don’t remember the name.

In Linux it’s part of the kernel, and you can mount with type tempts.

Not sure about OSX or bsds