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

后端 未结 2 1966
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 10:14

At my company we are currently researching various strategies for speeding up our CI builds. We have profiled our builds and determined that we are constrained by an I/O bottlen

相关标签:
2条回答
  • 2021-02-05 10:37

    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.

    0 讨论(0)
  • 2021-02-05 10:57

    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.

    0 讨论(0)
提交回复
热议问题