S
S
sdevalex2012-03-27 20:12:25
linux
sdevalex, 2012-03-27 20:12:25

Ram disk for projects

If there are ready-made things that do something like this magic.
- take the desired directory, for example projects
- rename it to ".projects"
- mount the ram disk
- copy data from projects to .projects by cron

Can be done via Git by specifying a "detached" repository from a folder on the hard drive. And doing a pull on the crown ... now I'll try this option, but maybe there is ready-made software?

I think storage in RAM can speed up the launch of rails and git a little (usually I have 5-6gb free and I feel sorry for them).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Max, 2012-03-27
@7workers

If you have a lot of memory, then Linux will cache the disk to the maximum. It is unlikely that you will see the difference with your eyes, unless you measure microseconds. Try tweaking the parameters better:
stackoverflow.com/questions/2282276/write-through-ram-disk-or-massive-caching-of-file-system

G
Gribozavr, 2012-03-27
@gribozavr

Test the hypothesis first by manually creating the disk; conduct a correct warm-up benchmark. Linux has a disk cache and all the necessary files from the disk will certainly get into it, and so on if you have so much free memory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question