Hello, I'm totally new to programming.
I have a issue with hard disk performance i/o with my windows 2003 servers
one of my vendor sent me the code below, they said it's testing write speed of hard disk but when I run this code on few of my windows 2003 servers, the actual file size are different.
about 60% of them, it creates file size with 55MB but on rest 40% of servers I have, it creates file size of 5 MB. weird thing is that one that generates 5MB text file, it takes me about 2 minutes in order to finish generating file. but when it generates 55MB file, it takes less than 10 seconds.
all of servers are running windows 2003 standard version on a RAID 1 confuguration. I checked if any of windows updates, windows services, or drivers are causing this issue but I can't find any so that I'm hoping if anyone can give me some advice for what's causing different result.
Here's the code
Thank youCode:for (int i = 0; i < 100000 ; i++) { FILE *pFile = fopen( "text.txt" , "at"); fprintf( pFile, "1234567890feoiv jeoifjonfrjobejrgojbomerjgobogorgmborjbo\n" ); fclose(pFile); } FILE *pFile = fopen( "text.txt" , "at"); fprintf( pFile, "VERSION:1:TIME:%d\n" , timeGetTime() - dwPre ); fclose( pFile );



LinkBack URL
About LinkBacks



