'잡동사니'에 해당되는 글 12932건

  1. 2011.02.06 NIC teaming + spanning tree
  2. 2011.02.06 NIC Teaming + 점보 프레임 활성화 관련
  3. 2011.02.05 CUDA - Multi GPU 프로그래밍 1
  4. 2011.02.05 openMP
  5. 2011.02.04 컴퓨터가 안켜져 -_- 4
  6. 2011.02.03 2011년 새해 일출
  7. 2011.02.03 mediainfo
  8. 2011.02.02 설 보내러 갑니다! 4
  9. 2011.02.01 적금을 만들러 갔는데... 2
  10. 2011.01.31 BOINC 와 CUDA와 드라이버 4
NIC Teaming 다시 가지고 놀다가 문득 보이는 "스위치 테스트"버튼

음.. 네트워크에서 스패닝 트리 프로토콜(STP)이 감지되었다라..
이건 또 어디서 굴러들어온 개뼉다구가 돌리고 있는겨?!

혹시나 해서 허브에 접속을 해보니.. 읭?
Spanning Tree가 기본으로 켜져 있었군 후다닥 끄고!

오 좋아~

아무튼 이 넘의 Spanning Tree Algorithm이 왜 티밍에 영향을 미치는진 알 수 없지만
머.. 모르면 하라는 대로 해야지 머 -_-

'하드웨어 > Network 장비' 카테고리의 다른 글

vlan  (3) 2011.02.14
EUI-48, MAC-48, EUI-64, IPv6  (2) 2011.02.06
NIC Teaming + 점보 프레임 활성화 관련  (0) 2011.02.06
VPN 장비  (2) 2011.01.23
Level 2 Switching HUB, VLAN 설정하기  (4) 2010.12.23
Posted by 구차니
Intel Dual Server Adaptor를 이용하여 NIC Teaming을 구성하는데
어떤 조건에서 아래와 같이 점보 프레임을 지원하지 않는지 꼼지락 꼼지락 -_-



 실험 1
Intel Dual Server Adaptor * 2를 기가비트 허브에 연결
-> 이상없이 잘됨

실험 2
Intel Dual Server Adaptor * 2를 100M 허브에 연결
-> 이상없이 잘됨

과거의 실험 1 + 실험 3
Intel Dual Server Adaptor + NVIDIA GbE를 100M 허브에 연결
-> 안됨

과거의 실험 2
Intel Dual Server Adaptor + Intel PRO/100+를 100M 허브에 연결
-> 안됨


위의 에러대로, 어댑터에서 지원하는 기능중 "점보 프레임/점보 패킷"이 없다면 팀에서도 위의 기능을 지원하지 않는다.
하지만 드라이버 정보를 확인해보니 NVIDIA nForce Networking Controller(GbE) 에서도 점보프레임은 지원한다는 사실 확인.

그리고 점보 프레임은 대개 기가비트에서만 하는 것 같은데 허브나 링크속도에 따라서 에러가 나지 않는건 멀까?
Many Gigabit Ethernet switches and Gigabit Ethernet network interface cards support jumbo frames, but all Fast Ethernet switches and Fast Ethernet network interface cards support only standard-sized frames.
 
[링크 : http://en.wikipedia.org/wiki/Jumbo_frame]

점보프레임은 표준은 아니다. [알테온웹시스템즈](Alteon WebSystems, 2000년 10월에 Nortel에 합병)에서 만든 ACEnic 기가비트 NIC(Network Interface Card, 네트워크 인터페이스 카드, 쉽게 말해 랜카드)에서 처음 소개되었다.

[링크 : http://windy.luru.net/565]

[링크 : http://www.iptime.co.kr/~iptime/bbs/view.php?id=faq_setup&no=281]

'하드웨어 > Network 장비' 카테고리의 다른 글

EUI-48, MAC-48, EUI-64, IPv6  (2) 2011.02.06
NIC teaming + spanning tree  (0) 2011.02.06
VPN 장비  (2) 2011.01.23
Level 2 Switching HUB, VLAN 설정하기  (4) 2010.12.23
Intel Pro/1000MT Server Adaptor와 함꼐하는 NIC Teaming  (2) 2010.12.22
Posted by 구차니
Programming/openCL & CUDA2011. 2. 5. 23:42
CUDA Driver API나 Runtime API는 원칙적으로 하나의 GPU를 사용하여
하나의 GPU내의 멀티쓰레드를 사용하도록 설계되어 있다. 이러한 제어의 관리를 컨텍스트 라고 지칭해도 될 지 모르겠지만
이러한 기본 컨텍스트는 1번 GPU를 사용하도록 되어있고,
Runtime API 쪽에서는 cudaSetDevice (int device) 라는 함수로 특정 GPU를 사용하도록 제한할 수 있다.

하지만 Driver API에는 이러한 함수가 존재하지 않으므로
직접 Handle을 이용하여 openMP 나 thread 등을 이용하여 직접 여러개의 CPU 쓰레드를 이용하여
GPU를 여러개 동시에 가동시키는 방법을 사용하는 것으로 보여진다.

8.2  Multi-GPU Programming 

 In order to issue work to a GPU, a context is established between a CPU thread and the GPU.  Only one context can be active on GPU at a time.  Similarly, a CPU thread can have one active context at a time.  A context is established during the program’s first call to a function that changes state (such as cudaMalloc(), etc.), so one can force the creation of a context by calling cudaFree(0).  Note that a context is created on GPU 0 by default, unless another GPU is selected explicitly prior to context creation with a cudaSetDevice() call.  Context is destroyed either with a cudaThreadExit() call, or when the controlling CPU thread exits.

 CUDA driver API allows a single CPU thread to manage multiple contexts (and therefore multiple GPUs) by pushing/popping contexts.  In the remainder of the document we will focus on CUDA runtime API, which currently allows strictly one context per CPU thread. 

 In order to issue work to p GPUs concurrently, a program needs p CPU threads, each with its own context. Threads can be lightweight (pthreads, OpenMP, etc.) or heavyweight (MPI).  Note that any CPU multi-threading or message-passing API or library can be used, as CPU thread management is completely orthogonal to CUDA.  
For example, one can add GPU processing to an existing MPI application by porting the compute-intensive portions of the code without changing the communication structure. 

 Even though a GPU can execute calls from one context at a time, it can belong to multiple contexts.  For example, it is possible for several CPU threads to establish contexts with the same GPU.  This allows developing multi-GPU applications on a single GPU.  GPU driver manages GPU switching between the contexts, as well as 
partitioning memory among the contexts (GPU memory allocated in one context cannot be accessed from another context). 

[출처 : CUDA_C_Best_Practices_Guide.pdf / Chapter 8]

CUDA Toolkit SDK의 예제는 threadMigration를 참조하면 될 듯
/******************************************************************************
*
*   Module: threadMigration.cpp
*
*   Description:
*     Simple sample demonstrating multi-GPU/multithread functionality using 
*     the CUDA Context Management API.  This API allows the a CUDA context to be
*     associated with a CPU process.  CUDA Contexts have a one-to-one correspondence 
*     with host threads.  A host thread may have only one device context current 
*     at a time.
*
*    Refer to the CUDA programming guide 4.5.3.3 on Context Management
*
******************************************************************************/


MonteCarloMultiGPU 예제에도 cutil 을 이용한 예제가 존재하는 것으로 보인다.
       //Start CPU thread for each GPU
        for(gpuIndex = 0; gpuIndex < GPU_N; gpuIndex++)
            threadID[gpuIndex] = cutStartThread((CUT_THREADROUTINE)solverThread, &optionSolver[gpuIndex]);

    printf("main(): waiting for GPU results...\n");
        cutWaitForThreads(threadID, GPU_N);

cutStartThread는 multithreading.h 에 포함되어 있는 녀석이다.
#if _WIN32
    //Create thread
    CUTThread cutStartThread(CUT_THREADROUTINE func, void *data){
        return CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)func, data, 0, NULL);
    }
#endif
그리고 이런식으로 해당 OS의 Thread로 연결되어 있다.

'Programming > openCL & CUDA' 카테고리의 다른 글

CUDA processor roadmap / CUDA SDK 4.0  (1) 2011.07.03
CUDA 4.0 RC  (4) 2011.03.02
CUDA driver API / runtime API  (0) 2011.01.26
SLI에 대한 CUDA의 제한(과거에는 그랬다더라~)  (0) 2011.01.26
cuBLAS / BLAS Level 1,2,3  (0) 2011.01.24
Posted by 구차니
Programming/openMP2011. 2. 5. 22:58
CUDA를 보다가 context 관련 해서 나온 또 다른(?) open계열 API

대충 보니까, CPP(C Pre-Processor/매크로 프로세서)의 도움을 받아
#pragma 형식으로 확장을 하여 Multi Processor를 지원하는 것으로 보인다.



'Programming > openMP' 카테고리의 다른 글

openMP 문서들  (0) 2012.06.18
openmp for문 나누기  (0) 2012.06.18
libgomp 공식 사이트 / 문서  (0) 2012.06.10
우분투에서 openMP 예제  (0) 2012.06.09
openMP / gcc -fopenmp  (0) 2012.06.09
Posted by 구차니
개소리 왈왈2011. 2. 4. 22:35
랜카드 꼽아서 머좀 테스트 하기 전에
SLI 에서 다중 모니터 테스트 한다고 뻘짓하다고 보니...



안켜지네...
램을 뽑고 그래픽 카드를 모조리 뽑아도 반응없는 메인보드 -_-
그냥 메인보드 하나 새로사?!

'개소리 왈왈' 카테고리의 다른 글

FBI? 니가?  (8) 2011.02.17
프리타타(frittata)  (4) 2011.02.11
설 보내러 갑니다!  (4) 2011.02.02
아아 지르고 싶어 ㅠ.ㅠ  (2) 2011.01.30
지하철에 카드가 안 찍히면?  (6) 2011.01.25
Posted by 구차니

얼어죽을뻔한 대관령에서의 일출

'개소리 왈왈 > 사진과 수다' 카테고리의 다른 글

누가 피자를 쌓아놨어?  (0) 2011.04.11
아이스크림 (느낌의 구름)  (0) 2011.03.05
...  (0) 2010.10.31
투명효과  (0) 2010.10.23
무지개  (0) 2010.10.23
Posted by 구차니
파일방2011. 2. 3. 20:58
어디서 어떻게 설치가 된 녀석인지 모르겠지만 -_-
컨테이너의 정보를 읽어주는 프로그램이다.


[링크 : http://mediainfo.sourceforge.net/ko]

'파일방' 카테고리의 다른 글

GuaPDF - 암호 해제  (0) 2011.06.08
rainymood 다운로드  (2) 2011.04.14
nTune -> NVIDIA SYSTEM TOOL  (0) 2011.01.21
GPU-Z  (2) 2011.01.21
messagepopup 2 - 메시지팝업 2  (0) 2010.11.09
Posted by 구차니
개소리 왈왈2011. 2. 2. 17:55
방문해주시는 모든분들

새해 복 많이 받으세요

'개소리 왈왈' 카테고리의 다른 글

프리타타(frittata)  (4) 2011.02.11
컴퓨터가 안켜져 -_-  (4) 2011.02.04
아아 지르고 싶어 ㅠ.ㅠ  (2) 2011.01.30
지하철에 카드가 안 찍히면?  (6) 2011.01.25
사과가 싫어 ㅠ.ㅠ  (6) 2011.01.20
Posted by 구차니
자전거 오랫만에 타는지라
-> 읭? 자전거 열쇠 비밀번호가 머더라? -_-
    그렇게 한 10분 고민

자전거 바람이 빠져서 바람을 넣으러 갔더니
-> 읭? 자전거 집 문 닫았네 -_-
-> 공원 근처 바람 넣는 기계 고장났네 -_-
-> 학교 근처 바람 넣는 기계 들어가네 히유~

지갑을 들고 은행가서 돈을 뽑으며
-> 아! 적금 만들려는 은행의 통장이 있는데 계좌이체 할 걸!!!! OTL





결론 : 구차니의 3단 뻘짓 -_-

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

이곳은 브라질/상파울로 입니다  (8) 2011.02.10
간수치 ALT AST  (0) 2011.02.07
블로그 휴식  (6) 2011.01.29
보험과 농협가입 해프닝  (4) 2011.01.24
no stick, only carrot  (3) 2011.01.11
Posted by 구차니

회사에서 이번에 교체되는 데탑이 있어서 후다닥 SETI@HOME 설치!
그래픽 카드는 9800GTX+ 인데

읭?
 2011-01-31 오후 2:35:15  No usable GPUs found
왜 안잡하지? 고민하다가 드라이버 버전을 보니
177.98

그래서 부랴부랴 266.58 최신버전으로 설치하고 리부팅하니
2011-01-31 오후 2:47:27  NVIDIA GPU 0: GeForce 9800 GTX/9800 GTX+ (driver version 26658, CUDA version 3020, compute capability 1.1, 1024MB, 474 GFLOPS peak)

우웡! 474 GFLOPS -_-
8800GT SLI로 누르기는 하지만 8800GT와 9800GTX+는 동급이 아니구나.. 라는걸 뼈저리게 느끼는 하루 -_-



덧 1. 내꺼는 그래픽 카드 2개인데
       내꺼에서는 CUDA x 2 + CPU x 1 로 총 3개가 돌아간다.
       근데 이 이스템에서는 CDUa x 1 + CPU x 2 로 총 3개가 돌아간다.
       왜 그럴까?!
Posted by 구차니