커피닉스, 시스템 엔지니어의 쉼터
  FreeBSD 6.2 커널에서 NMBCLUSTERS옵션 작성일 : 2006/10/19 22:40
 
  • 글쓴이 : 좋은진호 ( http://coffeenix.net/ )
  • 조회수 : 9563
     
    제  목 : FreeBSD 6.2 커널에서 NMBCLUSTERS옵션
    작성자 : 좋은진호(truefeel)
    작성일 : 2006.10.18(수)

    FreeBSD 6.2 PRERELEASE 버전으로 업데이트 받은 후 평상시와 같이 커널 빌드를
    했더니 다음과 같이 unknown option "NMBCLUSTERS" 에러가 나는 것이다.

     
    # make buildkernel
    ... 생략 ...
    /usr/src/sys/i386/conf/???: unknown option "NMBCLUSTERS"
     


    '뭐지~' 하고 UPDATING을 살펴봤더니, 그럼 그렇지... 이 옵션이 8월 18일부터 없어지고,
    대시 /boot/loader.conf 에 kern.ipc.nmbclusters 값 튜닝을 통해서 사용하라는 거다.
    (기존에 사용하던 서버는 1) 커널에 NMBCLUSTER 옵션도 주고, 2) /etc/sysctl.conf에
    kern.ipc.nmbclusters=65536 또는 kern.ipc.nmbclusters=32768 도 설정해서 사용중이었음)
    물론 /etc/sysctl.conf에 설정해서도 튜닝이 가능하다.

     
    20060818:
            The NMBCLUSTERS kernel option has been removed because it is obsolete.
            Use the kern.ipc.nmbclusters loader(8) tunable instead.
     


    참고로
    1) 설정값 확인은 sysctl kern.ipc.nmbclusters 명령으로,
    2) 설정값 변경은 sysctl kern.ipc.nmbclusters=65536 명령으로 할 수 있다.
    3) 다음은 netstat 명령으로 mbuf 를 확인한 결과이다.

     
    # netstat -m
    513/1287/1800 mbufs in use (current/cache/total)
    512/854/1366/65536 mbuf clusters in use (current/cache/total/max) <-- nmbclusters 최대값 확인
    512/768 mbuf+clusters out of packet secondary zone in use (current/cache)
    0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
    0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
    0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
    1152K/2029K/3182K bytes allocated to network (current/cache/total)
    0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
    0/0/0 requests for jumbo clusters denied (4k/9k/16k)
    0/6/4608 sfbufs in use (current/peak/max)
    0 requests for sfbufs denied
    0 requests for sfbufs delayed
    0 requests for I/O initiated by sendfile
    0 calls to protocol drain routines
     



    커피닉스, 시스템 엔지니어의 쉼터 / URL : http://coffeenix.net/board_view.php?bd_code=1429