Skip to content

[ UDP ] packet buffer size 조절

조회 수 6963 추천 수 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/f15/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
307 <video>의 속성과 메소드 ADMINPLAY 2012-10-29 8226
306 SCM - 캐시 서버 구축 (Squid in Linux) ADMINPLAY 2014-04-27 8234
305 Zabbix 웹서비스 모니터링 ADMINPLAY 2014-07-07 8263
304 HTML5 멀티미디어 태그 - <video>,<audio>,<embed> ADMINPLAY 2012-05-02 8317
303 allowScriptAccess 설정 l2zeo 2012-05-05 8425
302 CentOS 자동로그인 설정 ADMINPLAY 2014-04-14 8831
301 클라이언트가 ssh접속시 서버의 RSA키값 변경으로 인한 접... ADMINPLAY 2016-05-20 8865
300 Bigbluebutton Installation Ubuntu ADMINPLAY 2013-04-11 8960
299 Adaptec 컨트롤러 StorMan 에러 및 각종 확인 방법 ADMINPLAY 2013-06-12 8986
298 [CentOS] sshfs - 리눅스 윈도우간 데이터 전송을 편리하게 file ADMINPLAY 2014-09-21 9422
297 How to Enable EPEL Repository for RHEL/CentOS 6/5 ADMINPLAY 2014-06-13 9532
296 파일비교 명령어 diff 사용법 ADMINPLAY 2013-05-03 9646
295 Sample rate(샘플레이트)와 Bit rate (비트레이트) ADMINPLAY 2012-12-28 9715
294 스트리밍 서비스 위한 각 회사 와우자,어도비,마이크로 ... ADMINPLAY 2013-05-06 9888
293 FreeBSD 참고 명령문 ( H/W 정보 확인 방법) ADMINPLAY 2012-10-22 10191
292 TaskSet 으로 Process의 사용 CPU를 지정해 보자! ADMINPLAY 2012-06-18 10221
291 rsync 를 이용하여 동기화 할때 특정 폴더 2개 이상 제외하기 ADMINPLAY 2012-05-09 10736
290 GSLB(Global Service Load Balancing) ADMINPLAY 2012-07-30 10892
289 OS X 10.9 매버릭스의 기본 파일공유 프로토콜은 AFP가 아... ADMINPLAY 2014-03-04 11020
288 Linux 마우스 휠 방향 바꾸기 (mac 처럼 마우스 휠 바꾸기) ADMINPLAY 2014-02-27 11846

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234