Linux/Ubuntu2010. 11. 15. 01:23
예전에 draco님 블로그에서 본 느낌인데..
아무튼 추가하고 나서 발견한 놀라운 사실!

AMD 4200+x2 인데.. CPU 속도 조절이 가능한듯?!
노트북이 아니라 데스크탑인데도 말이다!



Posted by 구차니
Linux/Ubuntu2010. 11. 15. 00:02
SLI로 설치하기 위해서는 일단 SLI를 끄고(ASUS 기준 Single Video Card 모드로)
Nvidia 그래픽 드라이버를 설치한 다음 다시 BIOS에서 Dual Video Card나 AUTO 로 변환해주어야 한다.

일단 2010.11.15일 기준
Ubuntu에서 설치되는 리눅스용 nVidia 드라이버의 버전은 195 버전이다.
CUDA를 돌리기 위해서는 새로 받아서 설치해야할듯 -_-
그리고 SLI로 인식을 해서 여러개 그래픽 카드는 나오지만, SLI 관련 설정은 보이지 않는다.


260 대로 바꾸어도 별 차이는 없는듯 -_-

일단 내꺼는 아래와 같은데.. bad 의 경우 같은 느낌.
$ lspci | grep -i vga
04:00.0 VGA compatible controller: nVidia Corporation G84 [GeForce 8600 GT] (rev a1)
05:00.0 VGA compatible controller: nVidia Corporation G84 [GeForce 8600 GT] (rev a1)
$ lspci -t
-[0000:00]-+-00.0
           +-01.0
           +-01.1
           +-02.0
           +-02.1
           +-06.0
           +-07.0
           +-08.0
           +-09.0-[0000:01]----01.0
           +-0a.0
           +-0b.0-[0000:02]--
           +-0c.0-[0000:03]--
           +-0d.0-[0000:04]----00.0
           +-0e.0-[0000:05]----00.0
           +-18.0
           +-18.1
           +-18.2
           \-18.3


sudo nvidia-xconfig --sli=on 했다가 드라이버만 날아가네 -_-
머가 잘못된걸까?


[링크 : http://developer.download.nvidia.com/compute/cuda/3_2/drivers/docs/README_Linux.txt]

2010/11/01 - [Programming/CUDA / openCL] - SLI mode - AFR, SFR, AA
Posted by 구차니
간략하게 정리하면 아래의 박스 하나로 정리끝!

 $ sudo apt-get install webalizer
 $ sudo vi /etc/apache2/apache2.conf
    HostnameLookups On
 $ sudo vi /etc/webalizer/webalizer.conf
    LogFile         /var/log/apache2/access.log

 $ cd /usr/share/locale/ko/LC_MESSAGES/
 $ sudo rm webalizer.mo
 $ sudo wget "http://web.suapapa.net:8080/wordpress/wp-content/uploads/2008/01/webalizer.zip"
 $ sudo unzip webalizer.zip
 $ rm webalizer.zip

 $ sudo webalizer
 $ sudo crontab -e
    0 * * * * webalizer

기본적으로 설치되는 웹어라이저는 한글이 제대로 나오지 않는다.
그러한 패치와 함께 매시간 마다 웹어라이저를 실행하여 /var/www/webalizer 에 결과 페이지를 생성하도록 설정한다.

[링크 : http://www.webalizer.org/]
    [링크 : http://pchero21.com/79]
    [링크 : http://bobbyallen.wordpress.com/2007/01/16/install-and-configure-webalizer-on-ubuntu/]

Posted by 구차니
프로그램 사용/xen2010. 11. 14. 21:55
설치해볼 날이 오려나?

[링크 : https://help.ubuntu.com/community/Xen]
[링크 : http://ubuntu.or.kr/viewtopic.php?f=9&t=1379]

'프로그램 사용 > xen' 카테고리의 다른 글

Xen on Ubuntu 11.10  (0) 2012.03.25
kvm - Kernel mode Virtual Machine  (0) 2012.03.06
xen 사용가능한 cpu 확인하기  (0) 2012.01.25
Intel ATOM cpu중 가상화 지원모델  (2) 2010.09.24
xen  (0) 2010.08.16
Posted by 구차니
Programming/openCL & CUDA2010. 11. 14. 13:29
NVCC는 NV(Nvidia)CC(C Compiler) 인데, 구조적으로 아래와 같은 컴파일 과정을 거친다.
호스트 코드는 일반적인 C 컴파일러(예를 들면 비쥬얼 스튜디오 커맨드 라인이나 gcc)로 컴파일을 떠넘기고
nvcc는 머신코드(CUDA device용 PTX)를 생성한다.

즉, 어떠한 코드를 컴파일 하는데 있어 nvcc만으로는 독립적으로 컴파일이 진행될수 없다.
그런 이유로 윈도우에서는 Visual Studio에 빌붙고, 리눅스에서는 gcc에 빌붙는다.



nvcc의 목적에 나온 내용으로, CUDA가 아닌 내용은 범용 C 컴파일러로 투척(forward)한다고 되어있고
윈도우에서는 MS Visual Studio의 cl을 실행(instance)하여 사용한다고 되어있다.
Purpose of nvcc

This compilation trajectory involves several splitting, compilation, preprocessing,
and merging steps for each CUDA source file, and several of these steps are subtly
different for different modes of CUDA compilation (such as compilation for device
emulation, or the generation of device code repositories).  It is the purpose of the
CUDA compiler driver nvcc to hide the intricate details of CUDA compilation from
developers.  Additionally, instead of being a specific CUDA compilation driver,
nvcc mimics the behavior of the GNU compiler gcc: it accepts a range of
conventional compiler options, such as for defining macros and include/library
paths, and for steering the compilation process. All non-CUDA compilation steps
are forwarded to a general purpose C compiler that is supported by nvcc, and on
Windos platforms, where this compiler is an instance of the Microsoft Visual Studio
compiler, nvcc will translate its options into appropriate ‘cl’ command syntax. This
extended behavior plus ‘cl’ option translation is intended for  support of portable
application build and make scripts across Linux and Windows platforms.

그리고 내 컴퓨터에는 일단..
Visual Studio 6.0이 설치되어 있고, 개인적인 .net 거부반응으로 인해 2002나 2008 이런 녀석들은 설치되어 있지 않다.

아무튼, host compiler에서 Windows platform은
           "Microsoft Visual Studio compiler, cl" 이라고 되어 있는디..
           VS2002 부터 지원하는지는 모르겠지만 아무튼, cl은 command line이라고
           clcc.exe 같은 녀석으로 지원하는 커맨드 라인 MSVS 컴파일러 이다.
           혹시나 openCL인줄 알았더니 그것도 아니네 -_-

그리고 Supported build enviroment 에서는 Windows + MinGW shell이 존재한다.
gcc가 아니다 shell 이다 -_- 즉, 죽어도 컴파일러는 Visual Studio를 설치할 수 밖에 없다(윈도우에서는)

아래 13페이지와

14페이지의 내용을 둘러보고

옵션들을 조정해 보아도, VS가 없으면 안된다.(VS6.0도 안된다)

[링크 : http://moss.csc.ncsu.edu/~mueller/cluster/nvidia/2.0/nvcc_2.0.pdf]

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

CUDA / Visual Studio 2008  (2) 2010.12.05
CUDA + Visual Studio 2005  (0) 2010.12.01
PTX - Parallel Thread Execution  (0) 2010.11.11
ATI Stream / OpenCL 을 Nvidia에서 돌려보았더니!  (0) 2010.11.06
ATI STREAM - OpenCL 문서들  (0) 2010.11.04
Posted by 구차니
개소리 왈왈2010. 11. 14. 13:05
HD Tune은 윈도우에서 S.M.A.R.T 정보를 편하게 확인할수 있는 툴이다.

SMART는 스스로 하드 상태를 분석하는 기술인데
Self-Monitoring, Analysis, and Reporting Technology
[링크 : http://en.wikipedia.org/wiki/S.M.A.R.T.]

오래전에 사용하던 250GB 하드가 슬슬 소리를 내기 시작하길래 다시 한번 수치들을 확인해보았다.
(물론 예전에 BIOS SMART 에서 경고를 냈기에 이미 교체하고 잡다한 날아가도 되는 동영상을 모아놓은 하드로 사용중)

문제가 있는지 노란색으로 줄 쫙!
하지만 항상 그러하듯, Current / Worst / Threshold / Data가 가지는 의미를 이해하지 못하겠다.
원래 의미대로라면 Current의 값은 0부터 시작해서 Worst 까지 가능하며
Threshold는 Worst 보다 작아야 하며 대부분 Threshold 보다 Current가 올라가면 경고가 떠야 할것 같은데..
그리고 Data는 Current가 있는데 또 왜 존재하는 걸까?



아무튼, 설치시 메뉴얼을 일단 복사!
This function uses S.M.A.R.T. (Self-Monitoring Analysis and Reporting Technology) to get information about the health of the hard disk.
The table shows the following parameters:
- ID: parameter which is being measured
- Current: current value
- Worst: the worst value which has been recorded since the hard disk was first used
- Threshold: the value of any of the parameters should never get below the threshold.
- Data: shows the usable data which belongs to the ID.
- Status: status of the parameter (OK or failed).

Power on time
The power on time is usually indicated in hours, but some manufacturers show this time in minutes or even seconds.

위의 스샷을 보면 ID는 하드별로 지원하는 항목이 차이가 있어 보이고

Current는 현재값 (어이어이 이렇게 뭉뚱그려 놓으면 어떻게 알아!)
Worst는 하드를 사용하면서 기록된 최악의 값(그럼 이게 더 늘어 날수도 있다는 의미군!)
Threshold는 어떤 값도 이것 이하로 떨어져서는 안된다는데(읭? 번역이 안돼!!!!)
Data는 ID에 속한 사용가능한 값(그러니까 Current는 일종의 정규화를 거친 Data 값 인가?)을 의미한다.


초과한다는 의미는, current 값은 threshold보다 낮아야 하고 값은 항상 증가하는 방향이어야 한다는 의미.
The most basic information that SMART provides is the SMART status. It provides only two values: "threshold not exceeded" and "threshold exceeded". Often these are represented as "drive OK" or "drive fail" respectively. A "threshold exceeded" value is intended to indicate that there is a relatively high probability that the drive will not be able to honor its specification in the future: that is, the drive is "about to fail".
[링크 : http://en.wikipedia.org/wiki/S.M.A.R.T.]

근데 꼭 또 그렇지도 않은듯?
Legend
Higher
Higher raw value is better
Lower
Lower raw value is better
Critical: red colored row Potential indicators of imminent electromechanical failure

10 0A Spin Retry Count
Lower
Count of retry of spin start attempts. This attribute stores a total count of the spin start attempts to reach the fully operational speed (under the condition that the first attempt was unsuccessful). An increase of this attribute value is a sign of problems in the hard disk mechanical subsystem.

[링크 : http://en.wikipedia.org/wiki/S.M.A.R.T.]

아래는 SMART 정보를 볼수 있는 플랫폼별 목록
[링크 : http://en.wikipedia.org/wiki/Comparison_of_S.M.A.R.T._tools]



[링크 : http://ilmag.tistory.com/108]

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

헉헉 내 블로그 살아난건가?!  (2) 2010.11.30
대화명 어쩔?  (4) 2010.11.19
첫 눈  (2) 2010.11.09
서점이 어디간거야!?  (2) 2010.11.06
옥수수를 들고있으니  (0) 2010.10.17
Posted by 구차니
하드웨어/Network 장비2010. 11. 13. 12:19
문득 네트워크 대역폭을 느릴 이유가 있어서
본딩을 검색하다 보니 Teaming이라는 용어가 나오길래 한번 검색을 해보았다.

근원은 집합연결 이고
하위 기술로 Ethernet bonding, NIC teaming 등이 존재한다.
이러한 기술의 근원은 과거 네트워크가 느렸기 때문 속도의 제약을 뛰어넘고,
안정성의 확보를 위해(단일 링크일 경우 하나만 끊어지면 전체망이 죽어 버리므로) 사용해왔다고 한다.

Other terms for link aggregation include Ethernet bonding, NIC teaming, Trunking, port channel, link bundling, EtherChannel, Multi-link trunking (MLT), NIC bonding, network bonding,[1] Network Fault Tolerance (NFT), Smartgroup (from ZTE), and EtherTrunk (from Huawei).

Link aggregation addresses two problems with Ethernet connections: bandwidth limitations and lack of resilience.

  With regard to the first issue: bandwidth requirements do not scale linearly. Ethernet bandwidths historically have increased by an order of magnitude each generation: 10 Megabit/s, 100 Mbit/s, 1000 Mbit/s, 10,000 Mbit/s. If one started to bump into bandwidth ceilings, then the only option was to move to the next generation which could be cost prohibitive. An alternative solution, introduced by many of the network manufacturers in the early 1990s, is to combine two physical Ethernet links into one logical link via channel bonding. Most of these solutions required manual configuration and identical equipment on both sides of the aggregation.[2]

  The second problem involves the three single points of failure in a typical port-cable-port connection. In either the usual computer-to-switch or in a switch-to-switch configuration, the cable itself or either of the ports the cable is plugged into can fail. Multiple physical connections can be made, but many of the higher level protocols were not designed to failover completely seamlessly.

[링크 : http://en.wikipedia.org/wiki/Link_aggregation]

요즘 고속 무선은 이러한 네트워크 결합기능을 이용하여 갑자기 속도가 이렇게 팍팍 오른듯
On 802.11 (Wi-Fi) channel bonding is used in "Super G" technology, also referred as 108Mbit/s. It bonds two channels of classic 802.11g, which has 54Mbit/s signaling rate.

[링크 : http://en.wikipedia.org/wiki/Channel_bonding]

RAID 와 비슷하지만, 아무튼 RAIN 이라는 녀석도 존재!
[링크 : http://en.wikipedia.org/wiki/Redundant_Array_of_Inexpensive_Nodes) RAIN




이런 이유로 랜카드 구경하다가 발견한 괴물같은 녀석 -_-
무려 가격이 20만원대!
그런데 PCI / PCI-X 라는데 Ex도 아니고 뭐지!?

아래 광고(!)에 의하면
32 / 64bit
33/66/100/133Mhz
를 지원한다고 하는데 PCI는 32bit에 33Mhz 므로 PCI로는 제성능을 못낼듯 -_-
이런건 언넝 PCI-Ex 1x 자리로 나와주어야 하는거 아냐?


Year created 1998
Created by IBM, HP, and Compaq
Superseded by PCI Express (2004)
Width in bits 64
Capacity 1064 MB/s
Style Parallel
Hotplugging interface yes



[링크 : http://en.wikipedia.org/wiki/PCI-X]

Posted by 구차니
회사 외부에서 회사 Redhat 서버로 접속하고
Redhat 서버에서 Ubuntu 서버로 접속하면 X11이 두단계를 거쳐 띄울수가 있다.

그런데.. 회사 내부에서 Ubuntu 에서 접속하고 Redhat으로 접속하면.. 왜 안될까?

아마도
 /etc/ssh/ssh_config
파일의 설정이 달라서 그런듯하다.

레드햇 쪽은 아래와 같은 설정이 되어있다.
Host *
        ForwardX11 yes

그에반해 우분투 10.04 LTS는
Host *
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials no

이렇게 입력이 되어있다.
아마도 X11 Forwarding (터널링이 아닌)이 설정되어 있어서 다중으로 가능한 것으로 보인다.


2015.09.24

x11forwarding default no

http://linux.die.net/man/5/sshd_config

Posted by 구차니
Linux/Ubuntu2010. 11. 11. 20:33
참 쓸데없는 짓(?) 일지도 모르지만..
아이디를 바꾸고 싶은데 ubuntu 에서 상당히 많은게 바뀌어야 한다.

일단 변경해야할 파일들 모두 root 권한이므로, 정말로 변경을 하고 싶다면
다른 유저를 만들어서 다른 유저로 진행을 하거나,
 $ sudo su
명령을 통해 root로 바꾸어 진행을 해야 한다.

1. /etc/passwd - id를 변경함
2. /etc/group - sudoers 문제로 인해 반드시 바꾸어 주어야함
3. /etc/shadow - id와 연결되어 있으므로 id를 변경함
4. $HOME 의 소유자(owner)

$ ll /etc/passwd /etc/shadow /etc/group
-rw-r--r-- 1 root root 1857 2010-11-11 19:15 /etc/passwd
-rw-r----- 1 root shadow 1222 2010-11-11 19:17 /etc/shadow
-rw-r--r-- 1 root root 979 2010-11-11 20:27 /etc/group


아무튼.. 내 계정 하나만 있었음 매우매우 큰일날뻔 -_-


1. /etc/passwd 만 변경하면
 [sudo] password for username:
에서 계속 틀린 암호라고 나온다.(아마도, 로그아웃 하면 영원히 로그인 불가능 할 듯)

2. group에서 아이디를 변경하지 않을경우 생기는 에러
[sudo] password for username:
username is not in the sudoers file.  This incident will be reported.


Posted by 구차니
우분투에서 apache2는 기본값으로 www-data:www-data 유저/그룹으로 실행된다.

보안이랑은 좀 거리가 멀어지는 느낌이지만, www-data 유저를 shadow 그룹으로 넣고
<Location /svn/repos1>
        DAV svn
        SVNPath /home/svn/repos1

        AuthPAM_Enabled on
        AuthType Basic
        AuthName "Subversion Repository"
        AuthUserFile /etc/shadow
        Require group www-data
        Require valid-user
</Location>
위와 같이 설정을 해주니, shadow의 로그인 정보를 이용하여 svn에 접근할수 있게 되었다.


'프로그램 사용 > Version Control' 카테고리의 다른 글

svn export 와 checkout의 차이점  (0) 2010.11.18
svn blame  (4) 2010.11.18
Apache + SVN on Ubuntu 10.04  (0) 2010.11.03
visualSVN  (0) 2010.09.09
TortoiseSVN tag/branch = copy  (2) 2010.04.30
Posted by 구차니