Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the /dev/shm equivalence in Windows System?

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

like image 205
ablimit Avatar asked Jun 10 '10 03:06

ablimit


People also ask

What is Dev SHM :/ dev SHM?

/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.

What is Dev SHM?

/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.

What is Dev SHM size?

/dev/shm has a 3.9G size. How could I change the size of /dev/shm ? linux.

What is Dev TMP?

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.


1 Answers

If I understood it correctly (based on this post) what you are looking for is Memory Mapped Files.

like image 78
Vagaus Avatar answered Sep 22 '22 08:09

Vagaus