P
Pedro Salazar
Hi,
I have a new machine with Intel Desktop Board D865GBF. 3GHz. A simple
program like this (I explain later) takes TEN times more to complete
than in my older machine with 1.7GHz, D850MV.
Same system (Windows 2000), same installed software, same hard disk
(IDE), same configuration.
I have tried with other hard disks, same result.
Note: if I withdraw the FlushFileBuffers function call, I have a
little better result in my new machine. I need to use this call or
something similar to asure data saving. (at least in the system's
buffer)
I've updated the last Intel BIOS without succesful result. I think the
disk is working fine, all benchmarks with the hard disk are so good in
my new machine as in the old.
Thanks in advance for any help.
Here the program:
#include "stdafx.h"
#include <stdio.h>
#include <io.h>
#include <windows.h>
int main(int argc, char* argv[])
{
FILE *m_file;
unsigned long i;
HANDLE hfile;
m_file = fopen ("testf", "r+b");
if (!m_file)
m_file = fopen ("testf", "w+b");
if (!m_file)
return 1;
hfile = (HANDLE) _get_osfhandle (_fileno (m_file));
for (i=0; i< 20000;++i)
{
fwrite ("d", 1, 1, m_file);
FlushFileBuffers (hfile);
}
return 0;
}
Old machine: 2 seconds.
New machine: 20 seconds.
I have a new machine with Intel Desktop Board D865GBF. 3GHz. A simple
program like this (I explain later) takes TEN times more to complete
than in my older machine with 1.7GHz, D850MV.
Same system (Windows 2000), same installed software, same hard disk
(IDE), same configuration.
I have tried with other hard disks, same result.
Note: if I withdraw the FlushFileBuffers function call, I have a
little better result in my new machine. I need to use this call or
something similar to asure data saving. (at least in the system's
buffer)
I've updated the last Intel BIOS without succesful result. I think the
disk is working fine, all benchmarks with the hard disk are so good in
my new machine as in the old.
Thanks in advance for any help.
Here the program:
#include "stdafx.h"
#include <stdio.h>
#include <io.h>
#include <windows.h>
int main(int argc, char* argv[])
{
FILE *m_file;
unsigned long i;
HANDLE hfile;
m_file = fopen ("testf", "r+b");
if (!m_file)
m_file = fopen ("testf", "w+b");
if (!m_file)
return 1;
hfile = (HANDLE) _get_osfhandle (_fileno (m_file));
for (i=0; i< 20000;++i)
{
fwrite ("d", 1, 1, m_file);
FlushFileBuffers (hfile);
}
return 0;
}
Old machine: 2 seconds.
New machine: 20 seconds.