RE: Multithreaded File Writes
From: Shri Borde [MS] (sborde_at_online.microsoft.com)
Date: 07/09/04
- Next message: harry: "OutOfMemory Exception but heaps of free memory"
- Previous message: John Timney \(Microsoft MVP\): "Re: PHP and ASP.NET go HEAD to HEAD"
- In reply to: Robin Day: "Multithreaded File Writes"
- Next in thread: Justin Rogers: "Re: Multithreaded File Writes"
- Reply: Justin Rogers: "Re: Multithreaded File Writes"
- Reply: Lloyd Dupont: "Re: Multithreaded File Writes"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 09 Jul 2004 23:25:08 GMT
What is the CPU doing when its idle and there is no disk activity. You
should use a profiler to find out what is going on.
I dont think that writing from multiple threads could speed up the disk
writes.
Shri Borde [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
> From: "Robin Day" <robin.day@advorto.com>
> Subject: Multithreaded File Writes
> Date: Fri, 2 Jul 2004 17:37:42 +0100
> Lines: 16
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
> Message-ID: <eFWEnLFYEHA.384@TK2MSFTNGP10.phx.gbl>
> Newsgroups: microsoft.public.dotnet.framework.performance
> NNTP-Posting-Host: 82-68-248-116.dsl.in-addr.zen.co.uk 82.68.248.116
> Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
> Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.performance:7869
> X-Tomcat-NG: microsoft.public.dotnet.framework.performance
>
> I have a system (written in C#) which writes out a large number of small
> textfiles. (300,000+)
> Performance is an issue here, during the actual writing of the files stage
> of the application the processor runs at approx 20% and there is not
> continuous disk activity. You can also continue to use the machine hardly
> noticing any performance change in other applications.
> I have a theory that if I fire of the file writes in a multi threaded way
> then it may allow windows to make more use of the disk and processor in
> order to complete this part of the application faster.
> Has anyone had a similar task to do, or can anyone point me in the
direction
> of some good multi threaded file writing code in order to do this?
>
> Many Thanks in Advance
> Robin
>
>
>
- Next message: harry: "OutOfMemory Exception but heaps of free memory"
- Previous message: John Timney \(Microsoft MVP\): "Re: PHP and ASP.NET go HEAD to HEAD"
- In reply to: Robin Day: "Multithreaded File Writes"
- Next in thread: Justin Rogers: "Re: Multithreaded File Writes"
- Reply: Justin Rogers: "Re: Multithreaded File Writes"
- Reply: Lloyd Dupont: "Re: Multithreaded File Writes"
- Messages sorted by: [ date ] [ thread ]