강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

시스템성능에 영향을 주는 커널파라미터(kernel parameter)란 무엇인가?

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

시스템성능에 영향을 주는 커널파라미터(kernel parameter)란 무엇인가?

 

 

 

 

커널파라미터(kernel parameter)란 무엇일까?  이것을 설명하기 위하여 커널파라미터들을 확인하고 변경하고 설정하는 예들을 먼저 확인해보려 한다.

 

 

 

 

아래 디렉토리 리스트들을 보자.

 

[root@RockyLinux ~]# ls -l /proc/sys

합계 0

dr-xr-xr-x 1 root root 0  7 17 10:07 abi

dr-xr-xr-x 1 root root 0  7 17 09:24 crypto

dr-xr-xr-x 1 root root 0  7 17 10:07 debug

dr-xr-xr-x 1 root root 0  7 17 10:07 dev

dr-xr-xr-x 1 root root 0  7 17 09:24 fs

dr-xr-xr-x 1 root root 0  7 17 09:24 kernel

dr-xr-xr-x 1 root root 0  7 17 09:24 net

dr-xr-xr-x 1 root root 0  7 17 10:07 sunrpc

dr-xr-xr-x 1 root root 0  7 17 10:07 user

dr-xr-xr-x 1 root root 0  7 17 09:24 vm

[root@RockyLinux ~]#

 

 

 

 

이 디렉토리에는 debug, dev, fs, kernel, net, vm등의 디렉토리들이 있다.

 

 

 

 

이들 디렉토리에는 각각의 용도에 해당하는 텍스트파일들이 존재한다.

 

 

 

 

그 가운데 하나만을 보겠다.

 

[root@RockyLinux ~]# ls -l /proc/sys/net/ipv4/

합계 0

-rw-r--r-- 1 root root 0  7 17 10:08 cipso_cache_bucket_size

-rw-r--r-- 1 root root 0  7 17 10:08 cipso_cache_enable

-rw-r--r-- 1 root root 0  7 17 10:08 cipso_rbm_optfmt

-rw-r--r-- 1 root root 0  7 17 10:08 cipso_rbm_strictvalid

dr-xr-xr-x 1 root root 0  7 17 09:24 conf

-rw-r--r-- 1 root root 0  7 17 10:08 fib_multipath_hash_fields

-rw-r--r-- 1 root root 0  7 17 10:08 fib_multipath_hash_policy

-rw-r--r-- 1 root root 0  7 17 10:08 fib_multipath_use_neigh

-rw-r--r-- 1 root root 0  7 17 10:08 fib_notify_on_flag_change

-rw-r--r-- 1 root root 0  7 17 10:08 fib_sync_mem

-rw-r--r-- 1 root root 0  7 17 10:08 fwmark_reflect

-rw-r--r-- 1 root root 0  7 17 10:08 icmp_echo_enable_probe

-rw-r--r-- 1 root root 0  7 17 10:08 icmp_echo_ignore_all

-rw-r--r-- 1 root root 0  7 17 10:08 icmp_echo_ignore_broadcasts

-rw-r--r-- 1 root root 0  7 17 10:08 icmp_errors_use_inbound_ifaddr

-rw-r--r-- 1 root root 0  7 17 10:08 icmp_ignore_bogus_error_responses

-rw-r--r-- 1 root root 0  7 17 10:08 icmp_msgs_burst

-rw-r--r-- 1 root root 0  7 17 10:08 icmp_msgs_per_sec

-rw-r--r-- 1 root root 0  7 17 10:08 icmp_ratelimit

-rw-r--r-- 1 root root 0  7 17 10:08 icmp_ratemask

-rw-r--r-- 1 root root 0  7 17 10:08 igmp_link_local_mcast_reports

-rw-r--r-- 1 root root 0  7 17 10:08 igmp_max_memberships

-rw-r--r-- 1 root root 0  7 17 10:08 igmp_max_msf

-rw-r--r-- 1 root root 0  7 17 10:08 igmp_qrv

-rw-r--r-- 1 root root 0  7 17 10:08 inet_peer_maxttl

-rw-r--r-- 1 root root 0  7 17 10:08 inet_peer_minttl

-rw-r--r-- 1 root root 0  7 17 10:08 inet_peer_threshold

-rw-r--r-- 1 root root 0  7 17 10:08 ip_autobind_reuse

-rw-r--r-- 1 root root 0  7 17 10:08 ip_default_ttl

-rw-r--r-- 1 root root 0  7 17 10:08 ip_dynaddr

-rw-r--r-- 1 root root 0  7 17 10:08 ip_early_demux

-rw-r--r-- 1 root root 0  7 17 09:24 ip_forward

-rw-r--r-- 1 root root 0  7 17 10:08 ip_forward_update_priority

-rw-r--r-- 1 root root 0  7 17 10:08 ip_forward_use_pmtu

-rw-r--r-- 1 root root 0  7 17 09:24 ip_local_port_range

-rw-r--r-- 1 root root 0  7 17 10:08 ip_local_reserved_ports

-rw-r--r-- 1 root root 0  7 17 10:08 ip_no_pmtu_disc

-rw-r--r-- 1 root root 0  7 17 10:08 ip_nonlocal_bind

-rw-r--r-- 1 root root 0  7 17 10:08 ip_unprivileged_port_start

-rw-r--r-- 1 root root 0  7 17 10:08 ipfrag_high_thresh

-rw-r--r-- 1 root root 0  7 17 10:08 ipfrag_low_thresh

-rw-r--r-- 1 root root 0  7 17 10:08 ipfrag_max_dist

-rw-r--r-- 1 root root 0  7 17 10:08 ipfrag_secret_interval

-rw-r--r-- 1 root root 0  7 17 10:08 ipfrag_time

dr-xr-xr-x 1 root root 0  7 17 10:08 neigh

-rw-r--r-- 1 root root 0  7 17 10:08 nexthop_compat_mode

-rw-r--r-- 1 root root 0  7 17 09:24 ping_group_range

-rw-r--r-- 1 root root 0  7 17 10:08 raw_l3mdev_accept

dr-xr-xr-x 1 root root 0  7 17 10:08 route

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_abort_on_overflow

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_adv_win_scale

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_allowed_congestion_control

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_app_win

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_autocorking

-r--r--r-- 1 root root 0  7 17 10:08 tcp_available_congestion_control

-r--r--r-- 1 root root 0  7 17 10:08 tcp_available_ulp

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_base_mss

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_challenge_ack_limit

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_comp_sack_delay_ns

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_comp_sack_nr

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_comp_sack_slack_ns

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_congestion_control

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_dsack

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_early_demux

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_early_retrans

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_ecn

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_ecn_fallback

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_fack

-rw-r--r-- 1 root root 0  7 17 09:24 tcp_fastopen

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_fastopen_blackhole_timeout_sec

-rw------- 1 root root 0  7 17 10:08 tcp_fastopen_key

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_fin_timeout

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_frto

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_fwmark_accept

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_invalid_ratelimit

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_keepalive_intvl

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_keepalive_probes

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_keepalive_time

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_l3mdev_accept

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_limit_output_bytes

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_low_latency

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_max_orphans

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_max_reordering

-rw-r--r-- 1 root root 0  7 17 09:24 tcp_max_syn_backlog

-rw-r--r-- 1 root root 0  7 17 09:24 tcp_max_tw_buckets

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_mem

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_migrate_req

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_min_rtt_wlen

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_min_snd_mss

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_min_tso_segs

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_moderate_rcvbuf

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_mtu_probe_floor

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_mtu_probing

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_no_metrics_save

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_no_ssthresh_metrics_save

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_notsent_lowat

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_orphan_retries

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_pacing_ca_ratio

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_pacing_ss_ratio

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_probe_interval

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_probe_threshold

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_recovery

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_reflect_tos

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_reordering

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_retrans_collapse

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_retries1

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_retries2

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_rfc1337

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_rmem

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_sack

-rw-r--r-- 1 root root 0  7 17 09:24 tcp_slow_start_after_idle

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_stdurg

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_syn_retries

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_synack_retries

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_syncookies

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_thin_linear_timeouts

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_timestamps

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_tso_win_divisor

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_tw_reuse

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_window_scaling

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_wmem

-rw-r--r-- 1 root root 0  7 17 10:08 tcp_workaround_signed_windows

-rw-r--r-- 1 root root 0  7 17 10:08 udp_early_demux

-rw-r--r-- 1 root root 0  7 17 10:08 udp_l3mdev_accept

-rw-r--r-- 1 root root 0  7 17 10:08 udp_mem

-rw-r--r-- 1 root root 0  7 17 10:08 udp_rmem_min

-rw-r--r-- 1 root root 0  7 17 10:08 udp_wmem_min

-rw-r--r-- 1 root root 0  7 17 10:08 xfrm4_gc_thresh

[root@RockyLinux ~]#

 

 

 

 

위의 /proc/sys/net/ipv4디렉토리에는 IPv4기반에서 사용될 여러가지 옵션값들을 가진 파일들이 존재한다.

 

 

 

 

이런 파일들 가운데 다음과 같은 icmp_echo_ignore_all이라는 파일 예를 보면 0값으로 셋팅되어 있다.

 

 

 

 

[root@RockyLinux ~]# cat /proc/sys/net/ipv4/icmp_echo_ignore_all

0

[root@RockyLinux ~]#

 

 

 

이렇게 이 파일의 값이 0값으로 셋팅되면 ping에서 사용하는 ICMP프로토콜을 거부한다.

 

 

 

 

이처럼 /proc/sys디렉토리에는 커널의 실행환경에 영향을 주는 이런 파일들이 굉장히 많이 존재한다.

 

 

 

 

이런 값들을 우리는 커널파라미터라고 얘기한다.

 

 

 

 

즉 이들 파일에는 커널의 실행에 영향을 주는 여러가지 값들을 가지고있으며 이들 값들을 우리는 커널파라미터라고 한다.

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,035 명
  • 현재 강좌수 :  35,791 개
  • 현재 접속자 :  184 명