Click here to Skip to main content
15,881,715 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: A big Q Pin
Hamid_RT29-Nov-07 4:28
Hamid_RT29-Nov-07 4:28 
QuestionIOCP server Pin
Jhony george28-Nov-07 1:15
Jhony george28-Nov-07 1:15 
AnswerRe: IOCP server Pin
Cedric Moonen28-Nov-07 1:44
Cedric Moonen28-Nov-07 1:44 
QuestionRe: IOCP server [modified] Pin
Jhony george28-Nov-07 1:57
Jhony george28-Nov-07 1:57 
AnswerRe: IOCP server Pin
Cedric Moonen28-Nov-07 2:18
Cedric Moonen28-Nov-07 2:18 
GeneralRe: IOCP server Pin
Jhony george28-Nov-07 2:26
Jhony george28-Nov-07 2:26 
GeneralRe: IOCP server Pin
Mark Salsbery28-Nov-07 5:32
Mark Salsbery28-Nov-07 5:32 
GeneralRe: IOCP server Pin
Mike Dimmick28-Nov-07 5:55
Mike Dimmick28-Nov-07 5:55 
I think he's actually trying to emulate clients using a single thread per client. However, he's running into the same problem - you can't create huge numbers of threads in a single process because you run out of virtual memory. I think he's falling foul of the fact that even though he's only asking for a 4KB stack reserve, he's actually getting 64KB as that's the minimum that Windows VirtualAlloc will reserve. He's therefore blowing 256MB of virtual address space on thread stacks out of the 2GB available, presumably the rest being allocated by some other data structures and by the amount of code loaded into the process.

This is assuming that he's not actually blowing some other system data structure (handle table?) first.

Large-scale testing of servers is pretty tricky without actually getting thousands of people together each operating their own client. Right now my thin-client application server only has a Windows port of the client which can be automated, so I have one process per client (and it's a console-mode process, so one window per client). The practical limit is about 600 clients per test box, which is consuming about 70% of a 2 x Xeon 5150 box's CPU power due to a few odd timing loops and all the overhead of console mode output being RPCs to the CSRSS process which actually draws the windows.


DoEvents: Generating unexpected recursion since 1991

GeneralRe: IOCP server Pin
Mark Salsbery28-Nov-07 6:08
Mark Salsbery28-Nov-07 6:08 
AnswerRe: IOCP server Pin
Mark Salsbery28-Nov-07 5:26
Mark Salsbery28-Nov-07 5:26 
AnswerRe: IOCP server Pin
Mike Dimmick28-Nov-07 5:43
Mike Dimmick28-Nov-07 5:43 
QuestionLPBITMAPINFOHEADER Pin
keyto28-Nov-07 0:49
keyto28-Nov-07 0:49 
AnswerRe: LPBITMAPINFOHEADER Pin
CPallini28-Nov-07 0:57
mveCPallini28-Nov-07 0:57 
AnswerRe: LPBITMAPINFOHEADER Pin
David Crow28-Nov-07 3:03
David Crow28-Nov-07 3:03 
QuestionHow to use VC++ Unit Test project to test C++ project Pin
lchild38528-Nov-07 0:09
lchild38528-Nov-07 0:09 
QuestionVC 2005 compiler error Pin
neha.agarwal2728-Nov-07 0:01
neha.agarwal2728-Nov-07 0:01 
AnswerRe: VC 2005 compiler error Pin
toxcct28-Nov-07 0:21
toxcct28-Nov-07 0:21 
GeneralRe: VC 2005 compiler error Pin
neha.agarwal2728-Nov-07 0:31
neha.agarwal2728-Nov-07 0:31 
GeneralRe: VC 2005 compiler error Pin
CPallini28-Nov-07 0:45
mveCPallini28-Nov-07 0:45 
GeneralRe: VC 2005 compiler error Pin
neha.agarwal2728-Nov-07 1:00
neha.agarwal2728-Nov-07 1:00 
GeneralRe: VC 2005 compiler error Pin
David Crow29-Nov-07 2:45
David Crow29-Nov-07 2:45 
GeneralI know... Pin
CPallini29-Nov-07 3:07
mveCPallini29-Nov-07 3:07 
GeneralRe: VC 2005 compiler error Pin
toxcct28-Nov-07 1:34
toxcct28-Nov-07 1:34 
GeneralRe: VC 2005 compiler error Pin
neha.agarwal2728-Nov-07 1:38
neha.agarwal2728-Nov-07 1:38 
GeneralRe: VC 2005 compiler error Pin
toxcct28-Nov-07 1:40
toxcct28-Nov-07 1:40 

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.