I was wondering how can I make the IO faster by writing and reading temporary files to main memory. I've used to write to /dev/shm in Linux.
But now I'm in Windows 7. Anyone knows the answer ?
Thanks
/dev/shm is a traditional shared memory concept. One program will create a memory portion, which other processes (if permitted) can access. Mounting tmpfs at /dev/shm is handled automatically by systemd. Rationale: Any user can upload and execute files inside the /dev/shm similar to the /tmp partition.
/dev/shm is a temporary file storage filesystem (see tmpfs ) that uses RAM for the storage. It can function as shared memory that facilitates IPC. It is a world-writeable directory. The size of /dev/shm is limited by excess RAM on the system, and hence you're more likely to run out of space on this filesystem.
/dev/shm has a 3.9G size. How could I change the size of /dev/shm ? linux.
Use /tmp/ for temporary files. Use /dev/shm/ when you want shared memory (ie, interprocess communication through files). You can rely on /tmp/ being there, but /dev/shm/ is a relatively recent Linux only thing. Copy link CC BY-SA 2.5. Follow this answer to receive notifications.
If I understood it correctly (based on this post) what you are looking for is Memory Mapped Files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With