Quantcast
Channel: Network Infrastructure Servers forum
Viewing all articles
Browse latest Browse all 5877

Server 2k8 r2: UDP traffic from over 30K IPs causing tcpip.sys to contend on spinlocks resulting in 1/2 second DPCs. Works fine in Win2k3.

$
0
0

We have a UDP server that accepts many connections.  In Win2k3 it can talk to anywhere from 90K to 120K IP addresses with no problem.

On Win2k8R2 it throttles and often tips over at 30K users.

I have xperf logs showing the problems.  DPCs start out taking reasonable amounts of time, but eventually grow to take half a second upwards of 3/4 of a second; at that point the network stack seems to tip over and start again.

I've appended some of the xperf data.  I don't see a way to provide an attachment.

The nic is the Intel 82576 with only one link active.  Again - same code same hardware runs fine on win2k3.

There are various routes to it, but huge swaths of code always end up in: NDIS.SYS!NdisAcquireReadWriteLock.

I would assume on the same lock, and I would guess it's a spin lock since it spends all its time in ntkrnlmp.exe!KeAcquireSpinLockAtDpcLevel.

In our sample the process had a weight of 540,714 units.  Of that at least 210,597 ended up trying to acquire that lock via WSASendTo.  Gory details appended.

From the DPC view, you can see the calls that were taking 1/2 a second or longer.  There are 110 of them in a 37 second sample.  The time to process varies randomly and there are many thousands in between.  This is appended as the second set of voluminous data.

OS is Win2k R2 SP1

The Intel 82576 NIC has the latest available drivers

I've already tried altering just about every network parameter to observe the results.  RSS enabled/disabled. RSS NIC configured for 1 or more CPUs.  Various timings for Interrupt deferral, etc...

The net effect of all this was that I could move the shape of the curves, and even stop the network from tipping over entirely; however the DPC times are still awful; the spinlocks are still spinning and the net throughput is still 1/4 of Win2k3.

Any suggestions?  What's the next step?

Joe

StackWeight% WeightCount
| | | | | |- ws2_32.dll!WSASendTo210597.18965.33210735
| | | | | | |- mswsock.dll!WSPSendTo210222.45855.32210356
| | | | | | | |- ntdll.dll!ZwDeviceIoControlFile209948.29715.31210079
| | | | | | | | ntdll.dll!LdrInitializeThunk209948.29715.31210079
| | | | | | | | ntdll.dll! ?? ::FNODOBFM::`string'209948.29715.31210079
| | | | | | | | wow64.dll!Wow64LdrpInitialize209948.29715.31210079
| | | | | | | | wow64.dll!RunCpuSimulation209948.29715.31210079
| | | | | | | | wow64cpu.dll!DeviceIoctlFileFault209948.29715.31210079
| | | | | | | | wow64cpu.dll!CpupSyscallStub209948.29715.31210079
| | | | | | | | |- ntkrnlmp.exe!KiSystemServiceCopyEnd209865.94375.31209996
| | | | | | | | | |- ntkrnlmp.exe!NtDeviceIoControlFile209861.94145.31209992
| | | | | | | | | | |- ntkrnlmp.exe!IopXxxControlFile209856.00895.31209986
| | | | | | | | | | | |- afd.sys!AfdFastIoDeviceControl209456.91325.3209583
| | | | | | | | | | | | |- afd.sys!AfdFastDatagramSend209323.66185.3209448
| | | | | | | | | | | | | |- afd.sys!AfdTLFastDgramSend208405.74645.27208521
| | | | | | | | | | | | | | |- tcpip.sys!UdpTlProviderSendMessages208270.05045.27208384
| | | | | | | | | | | | | | | |- ntkrnlmp.exe!KeExpandKernelStackAndCalloutEx208216.88025.27208330
| | | | | | | | | | | | | | | | |- tcpip.sys!UdpTlProviderSendMessagesCalloutRoutine208164.77575.27208277
| | | | | | | | | | | | | | | | | |- tcpip.sys!UdpSendMessages208158.80015.27208271
| | | | | | | | | | | | | | | | | | |- tcpip.sys!UdpSendMessagesOnPathCreation204713.11385.18204823
| | | | | | | | | | | | | | | | | | | |- tcpip.sys!WfpAleFastUdpInspection127845.64293.23127912
| | | | | | | | | | | | | | | | | | | | |- NDIS.SYS!NdisAcquireReadWriteLock127041.0473.21127099
| | | | | | | | | | | | | | | | | | | | |- ntkrnlmp.exe!RtlLookupEntryHashTable264.2722450.01267
| | | | | | | | | | | | | | | | | | | | |- tcpip.sys!WfpAleFastUdpInspection<itself>171.428080173
| | | | | | | | | | | | | | | | | | | | |- tcpip.sys!WfpAlepIsSameEndpoint131.6412290133
| | | | | | | | | | | | | | | | | | | | |- netio.sys!WfpRefreshEntryLru125.1814350126
| | | | | | | | | | | | | | | | | | | | |- tcpip.sys!memset39.508324040
| | | | | | | | | | | | | | | | | | | | |- netio.sys!KfdIsLayerEmpty30.500205031
| | | | | | | | | | | | | | | | | | | | |- netio.sys!KfdGetLayerCacheEpoch18.334937019
| | | | | | | | | | | | | | | | | | | | |- NDIS.SYS!NdisReleaseReadWriteLock15.799406016
| | | | | | | | | | | | | | | | | | | | |- ntkrnlmp.exe! ?? ::FNODOBFM::`string'3.99294204
| | | | | | | | | | | | | | | | | | | | |- tcpip.sys!KfdIsLayerEmpty3.93705204
| | | | | | | | | | | | | | | | | | | |- tcpip.sys!IpNlpFastSendDatagram63245.492521.663271
| | | | | | | | | | | | | | | | | | | | |- tcpip.sys!IppSendDatagramsCommon62205.099041.5762216
| | | | | | | | | | | | | | | | | | | | | |- tcpip.sys!WfpProcessOutTransportStackIndication61667.956871.5661676
| | | | | | | | | | | | | | | | | | | | | | |- tcpip.sys!ProcessALEForTransportPacket61615.138181.5661623
| | | | | | | | | | | | | | | | | | | | | | | |- tcpip.sys!WfpAleMatchStatefulEndpoint50338.287261.2750346
| | | | | | | | | | | | | | | | | | | | | | | | |- NDIS.SYS!NdisAcquireReadWriteLock50260.64441.2750268
| | | | | | | | | | | | | | | | | | | | | | | | |- tcpip.sys!WfpAleMatchStatefulEndpoint<itself>31.797626032
| | | | | | | | | | | | | | | | | | | | | | | | |- ntkrnlmp.exe!RtlLookupEntryHashTable20.90588021
| | | | | | | | | | | | | | | | | | | | | | | | |- tcpip.sys!WfpAlepIsSameEndpoint8.99745209
| | | | | | | | | | | | | | | | | | | | | | | | |- tcpip.sys!memset8.94070709
| | | | | | | | | | | | | | | | | | | | | | | | |- netio.sys!WfpRefreshEntryLru2.99929303
| | | | | | | | | | | | | | | | | | | | | | | | |- tcpip.sys!_security_check_cookie2.00180402
| | | | | | | | | | | | | | | | | | | | | | | | |- NDIS.SYS!NdisReleaseReadWriteLock2.00009802
| | | | | | | | | | | | | | | | | | | | | | | |- tcpip.sys!WfpAleConnectAcceptIndicate11225.066410.2811225
| | | | | | | | | | | | | | | | | | | | | | | | |- tcpip.sys!WfpAleAuthorizeSend11219.072520.2811219
| | | | | | | | | | | | | | | | | | | | | | | | | |- tcpip.sys!WfpAlepAuthorizeSend11208.094590.2811208
| | | | | | | | | | | | | | | | | | | | | | | | | | |- tcpip.sys!WfpAleInsertRemoteEndpoint11035.142080.2811035
| | | | | | | | | | | | | | | | | | | | | | | | | | | |- NDIS.SYS!NdisAcquireReadWriteLock10873.027540.2810873

DPC Raw Info:

FunctionCountMax Actual Duration (ms)
ndisInterruptDpc554751713.847
 1713.847
 1708.4239
 1677.1281
 1672.813
 1672.2575
 1660.812
 1660.0321
 1655.2213
 1647.1885
 1641.3311
 1632.4002
 1622.6813
 1621.7657
 1620.5844
 1617.5036
 1615.4015
 1610.9474
 1606.8938
 1604.7577
 1594.5486
 1587.6109
 1581.5086
 1580.0222
 1579.7739
 1576.6219
 1576.4333
 1575.1572
 1574.4537
 1574.1743
 1573.7621
 1560.8745
 1559.7798
 1557.8415
 1557.8143
 1557.5373
 1553.3025
 1553.172
 1550.6415
 1549.8416
 1549.612
 1549.5203
 1548.3752
 1548.0821
 1547.8116
 1547.4588
 1547.2672
 1545.9869
 1544.6088
 1544.3772
 1542.6019
 1542.4782
 1542.2717
 1542.2666
 1542.2051
 1540.3364
 1538.9678
 1538.8142
 1538.3009
 1537.85
 1535.7837
 1534.7581
 1534.7572
 1532.4798
 1532.2034
 1532.0741
 1531.8791
 1530.7899
 1529.894
 1528.7522
 1527.006
 1526.6041
 1526.3972
 1525.4709
 1525.351
 1524.2444
 1522.7439
 1521.5258
 1520.562
 1520.4451
 1518.5009
 1517.4765
 1517.375
 1517.282
 1512.0087
 1511.5543
 1511.5373
 1510.6021
 1509.3328
 1508.7159
 1507.1279
 1505.7661
 1505.1325
 1504.612
 1501.9754
 1501.9476
 1501.94
 1500.7436
 1500.625
 1500.5376
 1499.567
 1499.5614
 1499.36
 1499.2837
 1499.0861
 1499.0537
 1498.7743
 1498.4466
 1498.3967
 1496.5591
 1495.4409

Joe Rohde

Viewing all articles
Browse latest Browse all 5877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>