Skip to content

[ UDP ] packet buffer size 조절

조회 수 6964 추천 수 0 2013.04.25 01:28:13

Linux에서 Session Clustering 설정 할 경우 buffer size가 부족해서 time out 나는 경우가 있었습니다.


그래서 설정하는 방법에 대해 정리해 보았습니다.


step 1. 현재 설정 값 조회

# sysctl -a | grep mem

net.core.wmem_max = 1048576
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.rmem_default = 262144
net.core.optmem_max = 20480
net.ipv4.igmp_max_memberships = 20
net.ipv4.tcp_mem = 193131 257511 386262
net.ipv4.tcp_wmem = 4096 16384 4194304
net.ipv4.tcp_rmem = 4096 87380 4194304
net.ipv4.udp_mem = 193131 257511 386262
net.ipv4.udp_rmem_min = 4096
net.ipv4.udp_wmem_min = 4096


step 2. 값 변경

# vi /etc/sysctl.conf

.

.

.

.

#
# Do not accept IP source route packets (we are not a router)
#net.ipv4.conf.all.accept_source_route = 0
#net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
#

net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 26214400
net.core.wmem_default = 262144
net.core.wmem_max = 1048576


step 3. 값 적용

rocksea ~ # sysctl -p /etc/sysctl.conf


net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 26214400
net.core.wmem_default = 262144
net.core.wmem_max = 1048576


위와 같이 적용 된 것을 확인 해 볼 수 있습니다.

참고로

wmem은 send

rmem은receive

라고 보시면 됩니다.


자세한 옵션 설명은 아래 주소 참조

http://blog.naver.com/bycymon?Redirect=Log&logNo=100019747080

profile

일요일은 짜빠게뤼~ 먹는날~^^

엮인글 :
http://adminplay.com/197355/c66/trackback
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
67 Bigbluebutton Installation Ubuntu ADMINPLAY 2013-04-11 8960
66 Installing NGINX, PHP, and MySQL on Ubuntu 10.04 LTS u... ADMINPLAY 2013-04-11 6020
65 ubuntu 부팅시 서비스 자동실행 및 실행방지 ADMINPLAY 2013-04-16 7902
64 웹 언어별 no-cache 리스트 ADMINPLAY 2013-04-22 6641
63 sysctl 조정 방법 ADMINPLAY 2013-04-25 7218
62 리눅스 메모리 관리, 왜 메모리 여유공간이 없을까? (top ... ADMINPLAY 2013-04-25 5241
» [ UDP ] packet buffer size 조절 ADMINPLAY 2013-04-25 6964
60 웹서버 트래픽 시각화 logstalgia l2zeo 2013-05-03 6090
59 파일비교 명령어 diff 사용법 ADMINPLAY 2013-05-03 9646
58 스트리밍 서비스 위한 각 회사 와우자,어도비,마이크로 ... ADMINPLAY 2013-05-06 9888
57 What are the bandwidth requirements for running a BigB... ADMINPLAY 2013-05-06 5920
56 make 정리 ADMINPLAY 2013-05-12 5264
55 특정 데몬의 메모리 점유율 확인하기 ADMINPLAY 2013-05-12 6131
54 linux 커널 파라메터 수정 ADMINPLAY 2013-05-12 5554
53 Adaptec 컨트롤러 StorMan 에러 및 각종 확인 방법 ADMINPLAY 2013-06-12 8986
52 리눅스 벤치마크 프로그램 목록 ADMINPLAY 2013-09-09 7562
51 HDD Guardian (a graphical user interface for smartctl) ADMINPLAY 2013-09-22 4951
50 windows smartctl ADMINPLAY 2013-09-22 5273
49 tar 압축을 실수로 디렉토리 생성 안하고 풀었을때 대처법 ADMINPLAY 2013-09-22 5386
48 hddtemp와 mrtg를 이용한 하드디스크 온도 체크 file ADMINPLAY 2013-12-19 5450

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234