On May 17, 3:12 pm, Bob I <bire...@yahoo.com> wrote:
> Pauldoo wrote:
> > On May 16, 10:07 pm, "John of Aix" <j.mur...@libertysurf.fr> wrote:
>
> >>Pauldoo wrote:
>
> >>>Hi,
> >>>I have noticed very slow I/O performance in Windows XP while
> >>>performing certain tasks, and I have been able to write a small test
> >>>which reliably demonstrates the problem. I'd like to explain this
> >>>problem and ask if anyone knows a workaround or set of tweaks to
> >>>improve the situation.
>
> >>>I create two large files (each too large to fit in memory, so they are
> >>>not entirely cached), and attempt to read them back. When I read the
> >>>files from beginning to end, one after the other, I get certain
> >>>performance (around 35 MiB/s). When I change to reading each file in
> >>>the same way, but read both files concurrently using threads, the
> >>>performance drops to something miserable (around 1-2 MiB/s).
> >>>Does anyone know of any settings or tweaks I can apply to mitigate
> >>>this problem?
>
> >>Well I suppose youi've done a defrag with something that seriously
> >>defragments?
>
> > Yes. The files were only slightly fragmented after first creation,
> > and making sure they were fully defragged made no difference.
>
> Providing your drive isn't running in PIO mode (check the IDE in Device
> manager). If you force the the hard drive to chase all over the platter
> to retrieve the the data, data transfer will drop to rock bottom. You
> could increase memory, use a faster harddrive, or stop setting up
> conditions to ask the system to do someting it is not capable of doing.
I don't have direct control over the requests sent to disk. The OS
does.
When reading two files in parallel from different threads I'd expect
the OS not thrash the disk. I'd expect it to compensate for the large
seek times of the harddisk by simply requesting more data between each
seek (just as Linux and Mac OS X do). This is not a problem in my
application, it's a problem with the braindead OS.
Is anyone familiar with any settings or tweaks I can apply to Windows
XP to make it behave more sensibly? I've noticed that Microsoft have
fixed these problems in Vista, and I wonder if the fixes are available
to XP through settings tweaks...
|