This is neto from Brazil
How are you?
Doing an important Performance POC and the customer wants to use Windows 2008 for all tests. We have plans to use fio (http://git.kernel.dk/?p=fio.git;a=summary) and I wanted to compile the last fio change on Windows 64 bits.
After doing a lot of tests, here you have the step by step:
How to compile FIO on Windows 64 bits
- Install Cygwin - search for MinGW and install all MinGW packages.
- Download x86_64-w64-mingw32-gcc-4.7.2-release-win64_rubenvb
.7z (http://sourceforge.net/projects/mingw-w64/files) - Select Toolchains targeting Win64 -> Personal Builds -> rubenv -> gcc-4.7-release
- Unzip the directory mingw64 to c:\ (c:\mingw64)
- Add to PATH - c:\mingw64\bin
- Copy c:\mingw64\bin\mingw32-make to c:\mingw64\bin\make.exe
- Download pthreads-20100604.zip (http://sourceforge.net/projects/mingw-w64/files) - Select External binary packages (Win64 hosted) -> pthreads
- Unzip pthreads-20100604.zip
- Unzip pthreads-w64.zip
- Copy pthreadGC2-w64.dll to c:\mingw64\bin
- Copy c:\mingw64\bin\pthreadGC2-w64.dll to c:\mingw64\bin\pthreadGC2.dll and to fio source directory
- Open Cygwin Terminal
- Go to fio directory (source files)
- make clean
DONE - You will have a fio executable ready to be used :-)
I hope this procedure helps and saves a lot of time :-) (I am pretty sure this will help me again)
All the best
NetApp - I love this company!