土曜日, 2月 19, 2011

LVS

【Link】
http://cateee.net/lkddb/web-lkddb/IP_VS_TAB_BITS.html
http://bougaidenpa.org/wanatabe/archives/27
http://centos.i-recording.net/kernel_rebuild.html


デフォルト 12 4096 32KB(2**12*8bytes=32768bytes)
8~20で選択可能


1 2
2 2x2=4
3 2x2x2=8
4 2x2x2x2=16
5 32
6 64
7 128
8 256
9 512
10 1024
11 2048
12 4096 32,768bytes
13 8192 65536bytes
14 16384 ...
15 32768 ...
16 65536 ...
17 131072 ...
18 262144 ...
19 524288 ...
20 1048576 8,388,608bytes 8.4MB


> su
# rpm -ivh ncurses-devel-5.7-3.20090208.el6.x86_64.rpm
# cd /usr/src/kernels/2.6.32-71.el6.x86_64
# make menuconfig
---
  -> Networking support (NET [=y])
    -> Networking options
      -> Network packet filtering framework (Netfilter)
        -> IP virtual server support (IP_VS [=m])
---
数字を指定する

Kernelコンパイル
---
# make clean
# make bzImage
# make modules
# make modules_install
# make install
---

まだ作業中・・・