2

Duplicate:

RAMDrive for compiling - is there such a thing?

I have an idea how to speed up my IDE.

I want to create a RAM disk and move my solution onto this virtual disk.
I think that this can speed up the IDE because RAM is much faster than a HDD.

Has anyone done this before?

PS: I think, when I have some documents in my program(real world) which are used frequently(for example some document templates) it could be good idea to move these documents onto a RAM disk as well to speed up I/O. Am I wrong?

If power is a problem, a UPS could solve it.

4

8 回答 8

5

Honestly, if you have Vista/Windows Server 2008 x64 and you jam your workstation with 4 to 8 GB of RAM, for most tasks, everything will be in cache or stored by SuperFetch, which will be a lot easier to manage and just about as high performance as a RAM disk. The RAM disk won't do a thing for you if you're starving your other system RAM to make it work.

BTW, I tried your suggestion a couple of years ago. While it technically worked, copying the necessary data to the RAM disk on every boot took too long and was a pain.

于 2009-02-01T22:35:54.773 回答
3

I have a 128GB Samsung flash based hard drive and it is FAST. My whole system, VM and IDE included, load in less than one minute.

于 2009-02-01T22:27:36.413 回答
3

Given sufficient RAM, this problem's been solved for a long time. If you have lots of RAM, stuff from the HD gets cached in it anyhow, and the HD is only the bottleneck the first time you're loading something at boot. As far as the initial boot time, I'd suggest using sleep/suspend mode and simply not rebooting your computer frequently.

于 2009-02-01T23:05:08.117 回答
2

Personally I'd just buy a SSD disk, you could lose your whole soln at any time if your ram loses power.

Right now I have 4gb of ram and a 150gb 10k rpm velociraptor hard drive for my boot disk, running win xp pro 64bit and everything(VS 2008, sql management studio, and my testing VM's) is very fast.

于 2009-02-01T22:34:39.067 回答
2

在 Linux 下 /dev/shm 是一个 ramdisk,因此您可能会使用它作为编译目标获得一些快速成功(比 rsync 源等更容易,如果您有的话,还可以减少机器中 SSD 的任何磨损)。

于 2010-09-19T15:08:06.230 回答
1

I do remember reading about doing this with netbeans a while ago. This article has quite a good guide on doing it in linux.

NetBeans on speed

Currently can't find an article on how to do it in windows, however I know it's possible.

于 2009-02-01T22:32:00.507 回答
0

这可能不会让你买太多。如果你用你的 RAM 磁盘耗尽内存,你只会剥夺 OS RAM 的虚拟内存,这将导致更频繁的页面错误,从而可能会更多地写入硬盘。

如果您的 ram 失去动力,您随时可能失去整个解决方案。

元素是绝对正确的。无论出于何种原因,您的机器都可能随时锁定。如果您决定使用 RAM 磁盘,至少在您的桌面上有一个批处理文件,可以将所有内容复制到磁盘上,并经常运行它。

于 2009-02-02T00:18:59.123 回答
0

我之前发布了一个类似问题的答案。作为总结:是的,这是可能的,我曾经用我的浏览器来做(有一个关于如何让它在 linux 下运行的链接)。

正如其他人所提到的,如果你有大量的 RAM,那么无论如何都会为你缓存这些东西,但是 imo 拥有一个 ram 驱动器比让操作系统尝试处理它更明确一点。

如果你知道你一直想要 200mb 的代码在内存中,那么你就知道你可以放入一个 ram 驱动器并实现它。

但是,我确实想知道操作系统是否会缓存它两次(一次在内存驱动器上,一次在内存驱动器上),如果它不知道它在内存驱动器上...

于 2009-02-02T01:34:40.950 回答