Click here to Skip to main content
16,016,770 members
Home / Discussions / C#
   

C#

 
GeneralRe: IO completion ports and unexpected performance. Pin
Angelos Petropoulos10-Jun-04 1:48
Angelos Petropoulos10-Jun-04 1:48 
GeneralRe: IO completion ports and unexpected performance. Pin
scadaguy10-Jun-04 2:27
scadaguy10-Jun-04 2:27 
GeneralRe: IO completion ports and unexpected performance. Pin
Angelos Petropoulos10-Jun-04 13:25
Angelos Petropoulos10-Jun-04 13:25 
GeneralRe: IO completion ports and unexpected performance. Pin
scadaguy11-Jun-04 3:06
scadaguy11-Jun-04 3:06 
GeneralRe: IO completion ports and unexpected performance. Pin
Angelos Petropoulos11-Jun-04 3:27
Angelos Petropoulos11-Jun-04 3:27 
GeneralRe: IO completion ports and unexpected performance. Pin
k.mohan kumar28-Jan-09 20:11
k.mohan kumar28-Jan-09 20:11 
GeneralRe: IO completion ports and unexpected performance. Pin
Angelos Petropoulos11-Jun-04 1:44
Angelos Petropoulos11-Jun-04 1:44 
GeneralRe: IO completion ports and unexpected performance. Pin
scadaguy11-Jun-04 3:24
scadaguy11-Jun-04 3:24 
Your results definitely seem odd. Okay, try this. Taking the same code you used in these tests add a counter variable to count the number of sends (or even total bytes) sent by the client. Do something similar on the server. That way you are counting how much work the server and client are completing. Rerun the tests for a fixed amount of time and compare CPU time, context switches, processor queue length, and the new measurement of total sends that the client sent and the server received. I'm wondering if you are going to find that although IOCP's are using more CPU they are peforming a lot more work. Perhaps the thread version is using less CPU because the threads are spending more time a wait state.

If you think about this makes since. Remember, performance is how fast something executes and scalability is how well that something is able to utilize the resource. I'm thinking that you may be seeing the scalability advantage of IOCP's in that they are able to utilize a lot more of the CPU because they are spending less time in a wait state.

There has to be some logical explanation for the results you posted here because I know IOCP's are better than using threads.
GeneralRe: IO completion ports and unexpected performance. Pin
Angelos Petropoulos11-Jun-04 3:37
Angelos Petropoulos11-Jun-04 3:37 
GeneralRe: IO completion ports and unexpected performance. Pin
Angelos Petropoulos11-Jun-04 5:29
Angelos Petropoulos11-Jun-04 5:29 
GeneralRe: IO completion ports and unexpected performance. Pin
Colby James Smith1-Sep-04 10:06
Colby James Smith1-Sep-04 10:06 
Questionwhat is the differcence between close and dispose with Process instance? Pin
fu09-Jun-04 2:36
fu09-Jun-04 2:36 
AnswerRe: what is the differcence between close and dispose with Process instance? Pin
Heath Stewart9-Jun-04 2:54
protectorHeath Stewart9-Jun-04 2:54 
GeneralRe: what is the differcence between close and dispose with Process instance? Pin
fu09-Jun-04 16:52
fu09-Jun-04 16:52 
GeneralRe: what is the differcence between close and dispose with Process instance? Pin
Heath Stewart10-Jun-04 3:09
protectorHeath Stewart10-Jun-04 3:09 
AnswerRe: what is the differcence between close and dispose with Process instance? Pin
Alvaro Mendez9-Jun-04 8:45
Alvaro Mendez9-Jun-04 8:45 
GeneralCrystal Report and Dataset Pin
amatyasik9-Jun-04 2:00
amatyasik9-Jun-04 2:00 
GeneralRe: Crystal Report and Dataset Pin
Heath Stewart9-Jun-04 2:14
protectorHeath Stewart9-Jun-04 2:14 
GeneralRe: Crystal Report and Dataset Pin
Alex Getman9-Jun-04 7:00
Alex Getman9-Jun-04 7:00 
General. Pin
hssaroch9-Jun-04 1:40
hssaroch9-Jun-04 1:40 
GeneralRe: FTP and Telnet client class in C# Pin
Heath Stewart9-Jun-04 2:51
protectorHeath Stewart9-Jun-04 2:51 
AnswerRe: FTP and Telnet client class in C# Pin
sudreshan_116-Jul-09 1:08
sudreshan_116-Jul-09 1:08 
QuestionUSB port programming?? Pin
EdgarBM9-Jun-04 1:26
EdgarBM9-Jun-04 1:26 
AnswerRe: USB port programming?? Pin
Heath Stewart9-Jun-04 2:44
protectorHeath Stewart9-Jun-04 2:44 
GeneralA ListBox problem Pin
chenshch9-Jun-04 1:26
chenshch9-Jun-04 1:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.