블로그 이미지
010-9967-0955 보미아빠

카테고리

보미아빠, 석이 (500)
밥벌이 (16)
싸이클 (1)
일상 (1)
Total
Today
Yesterday

달력

« » 2014.12
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31

공지사항

최근에 올라온 글

'2014/12/07'에 해당되는 글 2건

  1. 2014.12.07 windows performance analyzer 1
  2. 2014.12.07 NIC 설정

성능 테스트 어플을 작성했는데 0번 core 가 100% 사용해 원인을 찾아보기로 한다. 


1) Windows Performance Recorder 를 이용해 부하상황을 캡처한다. 

2) Windows Performance Analyzer 를 이용해 부하를 분석한다. 

    다음은 분석된 결과이다. 


원인이 뭘까 살펴보니 DPC (Deferred Procedure Call, 인터럽트를 처리하는 소프트웨어 루틴으로 CPU에서 지연된 처리 요청 수치) 가 0번 core 에서만 엄청나게 높았고, 이는 Platform Invoke 프로그램에서 사용하는 owfs_w64.dll 이 원인인 것으로 나타났다. (ndis.sys...)




 

http://blogs.technet.com/b/mikelag/archive/2010/11/26/processor-0-increased-cpu-utilization.aspx

http://rockball.tistory.com/entry/DPC%EB%9E%80-%EB%AC%B4%EC%97%87%EC%9D%B8%EA%B0%80


Posted by 보미아빠
, |

NIC 설정

카테고리 없음 / 2014. 12. 7. 00:29

10G 이상에서 생각해볼 옵션들

1Gbit /Sec 에 근처도 가지 않는다면 모든 옵션을 disable 하고 그 이상의 패킷이 발생하고 이 패킷처리가 특정 cpu core 에 몰린다면 적용 해볼만한 옵션들이다. 



TCP Chimney Offload 

This feature transfers TCP/IP protocol processing from the CPU to a network adapter during network data transfer.

CPU -> NIC 로 변경


Receive Side Scaling 

This feature enables the network load from a network adapter to be distributed across multiple CPUs in a multiprocessor computer.

하나의 Core -> 여러 Core 로 분산


NetDMA 

This feature provides services for offloading the memory copy operation that is performed by the networking subsystem to a dedicated direct memory access (DMA) engine when receiving network packets.

패킷수신시 DMA 사용


TOE 란 

http://en.wikipedia.org/wiki/TCP_offload_engine

H/W 와 OS 가 동시에 지원해야 함


상태확인

netsh interface tcp show global

netstat -nt | findstr /i offloaded

netstat -nt

Netsh int tcp show chimneystats

Netsh int tcp show chimneystats 3

등등의 조합


상태변경

netsh int tcp set global rss=enabled

netsh int tcp set global rss=disabled

netsh int tcp set global chimney=enabled

netsh int tcp set global chimney=disabled


강제설정변경 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters


읽을만한 KB

http://support.microsoft.com/kb/942861/en-us

http://support.microsoft.com/kb/936594/en-us

http://blogs.technet.com/b/wincat/archive/2012/08/27/using-powershell-for-nic-configuration-tasks.aspx

http://sqltouch.blogspot.kr/2013/03/tcp-chimney-offloads-and-sql-server.html

http://blogs.msdn.com/b/sql_protocols/archive/2008/05/20/connectivity-troubleshooting-in-sql-server-2008-with-the-connectivity-ring-buffer.aspx

Posted by 보미아빠
, |

최근에 달린 댓글

최근에 받은 트랙백

글 보관함