locked
Win8 x64. Tcpip.sys DPC latency issue. RRS feed

  • Question

  • Hello.

    Upgraded from Win7 x64. Had this problem in june on Win8 x64 CP, but relized to turn back on Win7. Thougth just driver incompatiblity in early release.

    Now have same problem on Win8 Pro x64. Built-in nic chip Realtek® 8111E , 1 x Gigabit LAN Controller. All drivers updated. Each 1.5-2 hours 2-3 sec sound looks like robovoice, video freezes, mouse cursor too. LatencyMon helped to find guilty driver.

    uTorrent runs 24/7. Without uTorrent have no problem.

    Please, help me to fix this annoying problem.

    Friday, November 2, 2012 7:11 AM

Answers

  • You get the issues because of timing issues (tcpip.sys!IppTimeout). I cansee you use the latest driver ("Rt630x64.sys", "8.003.0730.2012"),so the only chance is to make sure that all offloading options are enabled in the driver options in device manager. If this doesn't help, wait for better Realtek drivers.

    "A programmer is just a tool which converts caffeine into code"

    • Marked as answer by Arthur Xie Tuesday, November 20, 2012 8:38 AM
    Saturday, November 3, 2012 1:43 PM
    Answerer
  • Make a xperf trace to see the cause. Install the WPT (http://social.technet.microsoft.com/wiki/contents/articles/4847.install-the-windows-performance-toolkit-wpt-en-us.aspx), open a CMD prompt with admin rights and type this:

    xperf -on latency -stackwalk profile -buffersize 1024 -MaxFile 256 -FileMode Circular && timeout -1 && xperf -d DPC_Interrupt.etl

    after you captured 30s of the DPC issues, go back to CMD prompt and press a key to stop the logging. Now compress the DPC_Interrupt.etl as 7z (LZMA2, ULTRA) to reduce the size. Upload this file to your SkyDrive or Dropbox and post a link here.

    "A programmer is just a tool which converts caffeine into code"

    • Marked as answer by Arthur Xie Tuesday, November 20, 2012 8:38 AM
    Friday, November 2, 2012 7:36 PM
    Answerer
  • yeah, I see:

    --------------------------
    DPC Info
    
    usecs,      7, or   0.00%
    Elapsed Time, >      512 usecs AND <=     1024 usecs,      0, or   0.00%
    Elapsed Time, >     1024 usecs AND <=     2048 usecs,      0, or   0.00%
    Elapsed Time, >     2048 usecs AND <=     4096 usecs,      0, or   0.00%
    Elapsed Time, >     4096 usecs AND <=     8192 usecs,      0, or   0.00%
    Elapsed Time, >     8192 usecs AND <=    16384 usecs,      1, or   0.00%
    Elapsed Time, >    16384 usecs AND <=    32768 usecs,      0, or   0.00%
    Elapsed Time, >    32768 usecs AND <=    65536 usecs,      9, or   0.00%
    Elapsed Time, >    65536 usecs AND <=   131072 usecs,      1, or   0.00%
    Total,                                                686300
    
    
    Total = 20464 for module tcpip.sys
    Elapsed Time, >     8192 usecs AND <=    16384 usecs,      1, or   0.00%
    Elapsed Time, >    16384 usecs AND <=    32768 usecs,      0, or   0.00%
    Elapsed Time, >    32768 usecs AND <=    65536 usecs,      9, or   0.04%
    Elapsed Time, >    65536 usecs AND <=   131072 usecs,      1, or   0.00%
    Total,                                                 20464


    looks like tcpip.sys is still the cause. But the Broadcom is a bit old and not so powerful for such an extreme downloader of ripped BD and DVD movies like you are ;)


    "A programmer is just a tool which converts caffeine into code"

    • Marked as answer by Arthur Xie Tuesday, November 20, 2012 8:38 AM
    Sunday, November 4, 2012 4:06 PM
    Answerer

All replies

  • Make a xperf trace to see the cause. Install the WPT (http://social.technet.microsoft.com/wiki/contents/articles/4847.install-the-windows-performance-toolkit-wpt-en-us.aspx), open a CMD prompt with admin rights and type this:

    xperf -on latency -stackwalk profile -buffersize 1024 -MaxFile 256 -FileMode Circular && timeout -1 && xperf -d DPC_Interrupt.etl

    after you captured 30s of the DPC issues, go back to CMD prompt and press a key to stop the logging. Now compress the DPC_Interrupt.etl as 7z (LZMA2, ULTRA) to reduce the size. Upload this file to your SkyDrive or Dropbox and post a link here.

    "A programmer is just a tool which converts caffeine into code"

    • Marked as answer by Arthur Xie Tuesday, November 20, 2012 8:38 AM
    Friday, November 2, 2012 7:36 PM
    Answerer
  • Log is done.

    https://www.dropbox.com/s/1bdo8ombdkueoy7/DPC_Interrupt.etl.7z

    Saturday, November 3, 2012 3:39 AM
  • You get the issues because of timing issues (tcpip.sys!IppTimeout). I cansee you use the latest driver ("Rt630x64.sys", "8.003.0730.2012"),so the only chance is to make sure that all offloading options are enabled in the driver options in device manager. If this doesn't help, wait for better Realtek drivers.

    "A programmer is just a tool which converts caffeine into code"

    • Marked as answer by Arthur Xie Tuesday, November 20, 2012 8:38 AM
    Saturday, November 3, 2012 1:43 PM
    Answerer
  • Thanks for help.

    I'll try another net card and wait for new realtek soft.

    Saturday, November 3, 2012 2:06 PM
  • Just tested external pic-e nic on broadcom chip.

    Problem  is still here.

    _________________________________________________________________________________________________________
    CONCLUSION
    _________________________________________________________________________________________________________
    Your system appears to be having trouble handling real-time audio and other tasks. You are likely to experience buffer underruns appearing as drop outs, clicks or pops. One or more DPC routines that belong to a driver running in your system appear to be executing for too long. At least one detected problem appears to be network related. In case you are using a WLAN adapter, try disabling it to get better results. One problem may be related to power management, disable CPU throttling settings in Control Panel and BIOS setup. Check for BIOS updates. 
    LatencyMon has been analyzing your system for  0:35:24  (h:mm:ss) on all processors in the system.


    _________________________________________________________________________________________________________
    SYSTEM INFORMATION
    _________________________________________________________________________________________________________
    Computer name:                                        CANOPUS
    OS version:                                           Windows 8 , 6.2, build: 9200 (x64)
    CPU:                                                  GenuineIntel Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
    Logical processors:                                   4
    Processor groups:                                     1
    RAM:                                                  8159 MB total


    _________________________________________________________________________________________________________
    CPU SPEED
    _________________________________________________________________________________________________________
    Reported CPU speed:                                   3300,0 MHz
    Measured CPU speed:                                   2170,0 MHz (approx.)

    Note: reported execution times may be calculated based on a fixed reported CPU speed. Disable variable speed settings like Intel Speed Step and AMD Cool N Quiet in the BIOS setup for more accurate results.


    _________________________________________________________________________________________________________
    MEASURED KERNEL TIMER LATENCIES
    _________________________________________________________________________________________________________
    Highest measured kernel timer latency (µs):           127546,587625


    _________________________________________________________________________________________________________
    MEASURED SMIs AND CPU STALLS
    _________________________________________________________________________________________________________
    Highest measured SMI, IPI or CPU stall (µs)           25,282543


    _________________________________________________________________________________________________________
    REPORTED DPCs
    _________________________________________________________________________________________________________
    Highest DPC routine execution time (µs):              130514,472424
    Driver with highest DPC routine execution time:       tcpip.sys - Драйвер TCP/IP, Microsoft Corporation

    Highest reported total DPC routine time (%):          0,140967
    Driver with highest DPC total execution time:         rspLLL64.sys - Resplendence Latency Monitoring and Auxiliary Kernel Library, Resplendence Software Projects Sp.

    Total time spent in DPCs (%)                          0,639417

    DPC count (execution time <250 µs):                   10615154
    DPC count (execution time 250-500 µs):                0
    DPC count (execution time 500-999 µs):                353
    DPC count (execution time 1000-1999 µs):              0
    DPC count (execution time 2000-3999 µs):              0
    DPC count (execution time >=4000 µs):                 0


    _________________________________________________________________________________________________________
     REPORTED ISRs
    _________________________________________________________________________________________________________
    Highest ISR routine execution time (µs):              174,609697
    Driver with highest ISR routine execution time:       ndis.sys - Драйвер NDIS 6.30, Microsoft Corporation

    Highest reported total ISR routine time (%):          0,187919
    Driver with highest ISR total time:                   ndis.sys - Драйвер NDIS 6.30, Microsoft Corporation

    Total time spent in ISRs (%)                          0,215462

    ISR count (execution time <250 µs):                   6226962
    ISR count (execution time 250-500 µs):                0
    ISR count (execution time 500-999 µs):                0
    ISR count (execution time 1000-1999 µs):              0
    ISR count (execution time 2000-3999 µs):              0
    ISR count (execution time >=4000 µs):                 0


    _________________________________________________________________________________________________________
     REPORTED HARD PAGEFAULTS
    _________________________________________________________________________________________________________
    Process with highest pagefault count:                 none

    Total number of hard pagefaults                       7165
    Hard pagefault count of hardest hit process:          1074
    Highest hard pagefault resolution time (µs):          736437,336970
    Total time spent in hard pagefaults (%):              0,502238
    Number of processes hit:                              0


    _________________________________________________________________________________________________________
     PER CPU DATA
    _________________________________________________________________________________________________________
    CPU 0 Interrupt cycle time (s):                       92,089777
    CPU 0 ISR highest execution time (µs):                174,609697
    CPU 0 ISR total execution time (s):                   18,305927
    CPU 0 ISR count:                                      6226962
    CPU 0 DPC highest execution time (µs):                130514,472424
    CPU 0 DPC total execution time (s):                   48,789446
    CPU 0 DPC count:                                      9995869
    _________________________________________________________________________________________________________
    CPU 1 Interrupt cycle time (s):                       3,963667
    CPU 1 ISR highest execution time (µs):                0,0
    CPU 1 ISR total execution time (s):                   0,0
    CPU 1 ISR count:                                      0
    CPU 1 DPC highest execution time (µs):                163,124848
    CPU 1 DPC total execution time (s):                   1,862921
    CPU 1 DPC count:                                      203921
    _________________________________________________________________________________________________________
    CPU 2 Interrupt cycle time (s):                       4,016615
    CPU 2 ISR highest execution time (µs):                0,0
    CPU 2 ISR total execution time (s):                   0,0
    CPU 2 ISR count:                                      0
    CPU 2 DPC highest execution time (µs):                159,695152
    CPU 2 DPC total execution time (s):                   1,778826
    CPU 2 DPC count:                                      200934
    _________________________________________________________________________________________________________
    CPU 3 Interrupt cycle time (s):                       4,162370
    CPU 3 ISR highest execution time (µs):                0,0
    CPU 3 ISR total execution time (s):                   0,0
    CPU 3 ISR count:                                      0
    CPU 3 DPC highest execution time (µs):                186,792727
    CPU 3 DPC total execution time (s):                   1,894489
    CPU 3 DPC count:                                      214794
    _________________________________________________________________________________________________________


    • Edited by SpecA Saturday, November 3, 2012 2:49 PM
    Saturday, November 3, 2012 2:48 PM
  • Now it's better:

    DPC count (execution time 500-999 µs):                353

    In your last trace execution time was much higher:

    Elapsed Time, >    16384 usecs AND <=    32768 usecs,      2, or   0.00%
    Elapsed Time, >    32768 usecs AND <=    65536 usecs,      6, or   0.00%
    Elapsed Time, >    65536 usecs AND <=   131072 usecs,      2, or   0.00%
    Elapsed Time, >   131072 usecs AND <=   262144 usecs,      1, or   0.00%


    "A programmer is just a tool which converts caffeine into code"

    Sunday, November 4, 2012 12:01 PM
    Answerer
  • But tcpip.sys is still lagging;
    Highest DPC routine execution time (µs):              130514,472424
    Driver with highest DPC routine execution time:       tcpip.sys - Driver TCP/IP, Microsoft Corporation
    It causes freezes.
    Tried to change nic driver settings (ofloads, buffers on/off).
    Had no positive effect
    Sunday, November 4, 2012 12:25 PM
  • give me the latest xperf trace.

    "A programmer is just a tool which converts caffeine into code"

    Sunday, November 4, 2012 12:38 PM
    Answerer
  • yeah, I see:

    --------------------------
    DPC Info
    
    usecs,      7, or   0.00%
    Elapsed Time, >      512 usecs AND <=     1024 usecs,      0, or   0.00%
    Elapsed Time, >     1024 usecs AND <=     2048 usecs,      0, or   0.00%
    Elapsed Time, >     2048 usecs AND <=     4096 usecs,      0, or   0.00%
    Elapsed Time, >     4096 usecs AND <=     8192 usecs,      0, or   0.00%
    Elapsed Time, >     8192 usecs AND <=    16384 usecs,      1, or   0.00%
    Elapsed Time, >    16384 usecs AND <=    32768 usecs,      0, or   0.00%
    Elapsed Time, >    32768 usecs AND <=    65536 usecs,      9, or   0.00%
    Elapsed Time, >    65536 usecs AND <=   131072 usecs,      1, or   0.00%
    Total,                                                686300
    
    
    Total = 20464 for module tcpip.sys
    Elapsed Time, >     8192 usecs AND <=    16384 usecs,      1, or   0.00%
    Elapsed Time, >    16384 usecs AND <=    32768 usecs,      0, or   0.00%
    Elapsed Time, >    32768 usecs AND <=    65536 usecs,      9, or   0.04%
    Elapsed Time, >    65536 usecs AND <=   131072 usecs,      1, or   0.00%
    Total,                                                 20464


    looks like tcpip.sys is still the cause. But the Broadcom is a bit old and not so powerful for such an extreme downloader of ripped BD and DVD movies like you are ;)


    "A programmer is just a tool which converts caffeine into code"

    • Marked as answer by Arthur Xie Tuesday, November 20, 2012 8:38 AM
    Sunday, November 4, 2012 4:06 PM
    Answerer
  • OK.

    Will try to configure uTorrent, windows cash, check HDD e.t.c

    Thanks again for help.

    Sunday, November 4, 2012 4:17 PM
  • I have the same problem and have tried two different wireless adapters Intel 4965 AGN and Broadcom BCM4321 the result is the same every 2 hours a 2-3 sec DPC spike caused by tcpip.sys occurs. This did not happen me with Windows 7 64-bit so considering it takes place in different hardware configurations it is definitely a system bug introduced with Windows 8 64-bit.

    JTS

    Monday, January 21, 2013 8:18 PM
  • also provide the xperf file.

    "A programmer is just a tool which converts caffeine into code"

    Monday, January 21, 2013 8:33 PM
    Answerer
  • I have the same issue. Tested on 2 eth cards: atheros 8161 gigabit LAN and trendnet teg-pcitxr. Tested with 2 torrent clients: uTorrent and BitComet. Every 10-20 mins tcpip.sys eats CPU with short sound stuck.
    Thursday, February 7, 2013 9:31 AM
  • also run xperf and give me the ETL file.

    "A programmer is just a tool which converts caffeine into code"

    Thursday, February 7, 2013 8:19 PM
    Answerer
  • I have the same issue also. Noticed after upgrading to Win8 64bit. LAN: Realtek® 8111E Gigabit LAN with latest drivers. Used both bittorrents clients: BitTorrent 7.7.3 and uTorrent 3.2.3

    Sunday, February 10, 2013 5:41 PM
  • activate all offloading options in device manager.

    "A programmer is just a tool which converts caffeine into code"

    Sunday, February 10, 2013 7:40 PM
    Answerer
  • ARP offload and NS offload are turned on.
    Sunday, February 10, 2013 8:13 PM
  • do you use the latest driver?

    "A programmer is just a tool which converts caffeine into code"

    Sunday, February 10, 2013 8:32 PM
    Answerer
  • Yes, using the latest 8.10.1226.2012 version.
    Monday, February 11, 2013 5:22 PM
  • Here is my xperf file: http://sdrv.ms/VPEvTv
    • Edited by MaratCJ Tuesday, February 12, 2013 10:47 AM
    Tuesday, February 12, 2013 10:47 AM
  • I'm having problems with this Realtek chip too, as well as Win8 64-bit, what causes this DPC problem??

    Friday, February 15, 2013 7:24 PM
  • Here is my xperf file: http://sdrv.ms/VPEvTv
    try a fixed IP and no DHCP. µtorrent does a lot of iphlpapi.dll DHCP calls.

    "A programmer is just a tool which converts caffeine into code"

    Saturday, February 16, 2013 8:02 AM
    Answerer
  • Tried to use static IP, but the issue persists. Still tcpip.sys causes DPC latency problem.

    Sunday, February 17, 2013 1:16 PM
  • try a different NIC.

    "A programmer is just a tool which converts caffeine into code"

    Sunday, February 17, 2013 7:54 PM
    Answerer
  • Hello everyone!

    Just wanna say that Win8.1 totally fixed problem for me.

    One year beta testing is over.))

    Regards.

    Saturday, October 19, 2013 4:19 AM
  • I'm following this discussion since last year and I'm having the exact same issue but after i updated to Windows 8.1 the problem solved.
    • Edited by Rony Amsalem Wednesday, October 30, 2013 9:40 PM
    Saturday, October 19, 2013 5:09 AM
  • Hello everyone!

    Just wanna say that Win8.1 totally fixed problem for me.


    thanks for the feedback :)

    "A programmer is just a tool which converts caffeine into code"

    Saturday, October 19, 2013 7:44 AM
    Answerer
  • Same for me. Seems like the issue has gone away with the updating to 8.1! So the problem appeared to be not in network card ;-) 

    Thanks for this update! :)

    Monday, October 28, 2013 6:28 PM
  • You's are lucky. I updated to windows 8.1 and i still have high dpc for tcpip.sys and ndis.sys. Updating my lan driver didnt seem to help.
    Thursday, November 7, 2013 6:53 AM