Is it sensible to use a ramdisk on a build server?

家住魔仙堡 提交于 2019-12-03 01:45:10
nos

As long as you have enough memory, it's a very sensible thing to do.

The only real drawback is, naturally, your build gets lost on shutdown/power failure which usually isn't a big concern for the CI builds.

I just ran some tests on my "build server" (actually a Powershell script) which checks out 3600 files from Subversion, compiles them (DOT.NET) and runs some Unit Tests.

On my normal (not super fast) hard drive the process takes 35 sec.

Using the Dataram RamDisk tool with the default FAT32 setup on Windows 7 is takes 45 sec.

Reformatting it with NTFS brings that down to 30 sec.

But using an SSD (in my case a OCZ Vertex 2) only takes 27 sec.

I did several test runs but the times are always the same.

What can we learn from this?

A Ram disk is not always faster, make sure you test different products with different settings.

A Solid State Drive may even be faster than a RAM disk, which surprised me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!