S
S
sdevalex2012-08-07 14:18:23
linux
sdevalex, 2012-08-07 14:18:23

Ready solution. Replacing the HDD folder with a folder in RamDisk?

Tired of the slow initialization of Rails and Rake. I tried to transfer the application to RamDisk and by eye the initialization is 3-4 times faster. You also need to try to transfer RVM files and I think the increase will be 2-3 times more.
Is there a ready-made solution that works according to this algorithm:
- gets a list of folder paths
- renames folders
- creates a RamDisk of a specified size
- mounts it to a specified location and copies folders
- replaces real folder paths with temporary ones
- configures automatic transfer of folders from Ram through the specified time intervals
Already created a similar topic, but suddenly there is a solution so as not to now time. Do not offer SSD, it is better to create a similar solution.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eddy_Em, 2012-08-07
@Eddy_Em

> folders
directories or directories?
> RamDisk
Shared memory/tmpfs?
Really transferring the contents of directories to / dev / shm will allow you to start faster? After all, all the same, all the files will have to be read and written to the RAM.
Or do you mean creating a file system in shm at the boot stage? Well, this can be written in init scripts. There is nothing complicated.

V
Vampiro, 2012-08-07
@Vampiro

IMHO, creating a bash script would take less time than writing posts even for me, a person far from linux. You have sketched all the lines, it remains to enter the command for each. and hang something on the crowns a la rsync.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question