forcemax's

회사 서비스 서버중 DB 서버가 4GB의 메모리를 갖고 있는데 우리가 많이 사용하는 max_connections 계산식에 대입해보면 max_connections값으로 1333을 설정할 수 있다고 한다.

그런데 아무리 [mysqld] 섹션에 max_connections 값으로 1200을 설정해도 적용이 안되고 show variables 해보면 max_connections값이 886으로 되어 있다.

이러한 이유에서 찾아보니 다음의 두가지 설정이 중요하였다.

일단 /etc/mysql/my.cnf에는 다음의 설정을 넣어준다.

[mysqld]
max_connections = 1200
open-files-limit = 4096

그리고 한 process의 최대 open files 값을 변경하기 위해 /etc/security/limits.conf 에 다음 설정을 추가한다.

mysql           soft    nofile          4096
mysql           hard    nofile          4096

mysql 데몬을 재시작하자!



그동안 노트북에 있는 ubuntu 8.04 에서는 시간 애플릿에 날씨 아이콘이 나오고 PC에 있는 ubuntu 8.04 에서는 날씨 아이콘이 나오지 않았다.
둘의 설정을 거의 똑같이 놓고 사용하기 때문에 이유가 뭔지 몰랐다.

google에 울어봤다.
"gnome weather icon"

launchpad.net에 이미 버그로 올라와 있는 내용이다.

sudo dpkg-reconfigure tzdata

시간 애플릿에 설정해 놓은 timezone과 시스템에 설정해 놓은 timezone을 맞춰주어야 하는 문제이다.

(한 3달은 넘게 고민한 내용인데... 이렇게 쉽게 해결 가능한거라니 ㅠㅠ)



Ubuntu gutsy에서 Xen을 사용하다보면 guest OS에서 네트웍이 안되는 경우가 생긴다.

이 것은 udev와 관련이 있는데 Xen은 매번 동작시에 guest OS에서 사용할 NIC의 Mac Address를 변경한다. 이로 인해 udev에서 매번 새로운 interface로 잡아주게 되어 네트웍이 동작안하게 된다.

이를 방지하기 위해 guest OS의 /etc/udev/rules.d/75-persistent-net-generator.rules 파일을 제거한다.


rpmstrap centos5 script

Linux2007. 12. 21. 17:47

이것 때문에 참 삽질 많이 했다 -_-

ubuntu dom0에서 centos5 domU를 설치한다는 것이 이렇게 힘들줄이야...

Xen on Ubuntu gutsy

Linux2007. 12. 17. 20:45
- console이 출력되다 중간에 안나온다면!!!
sudo echo "extra = ' TERM=xterm xencons=tty console=tty1'" >> /etc/xen-tools/xm.tmpl
echo "extra = ' TERM=xterm xencons=tty console=tty1'" >> /etc/xen/XENCFG.cfg

- system clock을 셋팅하는 곳에서 멈춘다면
prefix=/media/sdb5 # domU 이미지를 마운트해 놓은곳
chroot ${prefix} /usr/sbin/update-rc.d -f hwclock.sh remove
chroot ${prefix} /usr/sbin/update-rc.d -f hwclockfirst.sh remove
rm -f ${prefix}/etc/init.d/hwclock.sh ${prefix}/etc/init.d/hwclockfirst.sh ${prefix}/etc/udev/rules.d/85-hwclock.rules

- tls관련 문제를 없애기 위해서
prefix=/media/sdb5 # domU 이미지를 마운트해 놓은곳
mv ${prefix}/lib/tls ${prefix}/lib/tls.disabled

- 다음과 같은 문장이 나오면
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "ko_KR.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale-gen ko_KR.UTF-8 를 실행

.....
xen 사용하기가 점점 힘들어지네 ㅠㅠ


Debugging Program Crash

Linux2007. 12. 5. 21:49
Debugging Program Crash

출처 : https://wiki.ubuntu.com/DebuggingProgramCrash

unzip 5.52 한글 패치

Linux2007. 6. 25. 16:09
unzip 5.52 한글 패치

http://kldp.org/node/82481

PS. UTF8이 기본 locale인 linux에서는 cp949로 인코딩된 zip 파일을 풀 경우 파일명이 다 깨진다.
한 사람의 노력이 여러사람을 편하게 한다. ^^



problem with nss_mdns4 doing long timesouts looking up dotted decimals

http://journal.dedasys.com/articles/2007/04/19/slow-networking-in-ubuntu-feisty-caused-by-avahi-daemon

PS. Ubuntu feisty fawn에서는 모두 이런 현상이 발생한다.
특히 대한민국은 DNS reverse mapping설정을 잘 안해주기 때문에 더더욱 이런 문제가 발생할 수 밖에 없다.

Ubuntu Feisty Fawn 7.04 폰트 설정 완결편(과연??)

http://ryhee02.tistory.com/121

Improved subpixel font rendering packages for Edgy

http://ubuntuforums.org/showthread.php?t=235526