- How to improve the real-time performance of a network stack?
- Posted by Liang Chen on February 23rd, 2006
Hi all,
I wrote a PPP stack in the user mode over the serial port modem for
networking. According to the testing, the PPP stack may choke occasionally
for the streaming traffic when it writes data into the serial port. So my
PPP stack could not work smoothly as the Windows PPP.
I suppose the problem may be introduced by the thread scheduling for the I/O
operation. Unfortunately, the increase of thread priority to real-time level
can not fully solve the problem.
Could anyone here give me some hints to improve the performance? Should I
port the stack into kernel or optimize the stack such as buffer management,
IO reduction?
Thanks!
Liang Chen
- Posted by Maxim S. Shatskih on February 23rd, 2006
Sorry, but what does it mean "choke"? Hangs? Crashes?
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"Liang Chen" <LiangChen@discussions.microsoft.com> wrote in message
news
CA0D87C-8106-472F-AFF4-99B56CADBDE4@microsoft.com...
- Posted by Liang Chen on February 23rd, 2006
hangs
"Maxim S. Shatskih" wrote:
- Posted by Maxim S. Shatskih on February 25th, 2006
Why it hangs? What is the call stack at this moment?
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"Liang Chen" <LiangChen@discussions.microsoft.com> wrote in message
news:0C4EF947-0AD8-4E8E-B07C-6D5802870437@microsoft.com...
- Posted by Liang Chen on February 27th, 2006
In the moment of hangs, my program stop at the asynchronous I/O mode of
WriteFile, but the call stack is out of my program. So I suppose the hangs
might be introduced by the thread scheduling.
-Liang
"Maxim S. Shatskih" wrote: