Sysctl Command--linux command application of large dictionary 729 commands interpretation

Source: Internet
Author: User

The content originates from the people's post and Telecommunications press "Linux command Application big dictionary"

tell 729 commands, 1935 examples

Learn about the Linux system's reference books, desk book, encountered the command or command not understand the options can be found

Strive to publish content every day


airfish2000 "blog, More commands to view blogs:

http://airfish2000.blog.51cto.com/10829608/1884122


Sysctl Command

use the SYSCTL command to configure kernel parameters while the system is running, and the available parameters are listed in the/proc/sys directory.

Command syntax:

sysctl[ options ] [ parameter = value ]

sysctl[ options ]

The meanings of the options in the command are as follows is shown.

table sysctl command options meaning

Options

Meaning

-w    

temporarily change the value of a specified parameter

-a    

show all currently available values

-a

with -a options functions

-P

loads the system parameters from the specified file, if not specified, from the /etc/sysctl.conf loaded in the file

Example : View all the system kernel parameters.

[Email protected] ~]# sysctl-a

kernel.sched_child_runs_first= 0

kernel.sched_min_granularity_ns= 1000000

kernel.sched_latency_ns= 5000000

kernel.sched_wakeup_granularity_ns= 1000000

Kernel.sched_tunable_scaling= 1

kernel.sched_features= 3183

kernel.sched_migration_cost= 500000

Kernel.sched_nr_migrate= 32

kernel.sched_time_avg= 1000

kernel.sched_shares_window= 10000000

Kernel.timer_migration= 1

kernel.sched_rt_period_us= 1000000

Kernel.sched_rt_runtime_us= 950000

kernel.sched_compat_yield= 0

kernel.sched_autogroup_enabled= 0

Kernel.sched_cfs_bandwidth_slice_us= 5000

Kernel.panic = 0

Kernel.exec-shield = 1

Kernel.core_uses_pid =1

Kernel.core_pattern =core

Kernel.core_pipe_limit= 4

kernel.tainted = 0

........................ (omitted)

Example : Load The/etc/sysctl.conf file system kernel parameters.

[Email protected] ~]# sysctl-p

Net.ipv4.ip_forward =0

Net.ipv4.conf.default.rp_filter= 1

net.ipv4.conf.default.accept_source_route= 0

KERNEL.SYSRQ = 0

Kernel.core_uses_pid =1

Net.ipv4.tcp_syncookies= 1

Error: "Net.bridge.bridge-nf-call-ip6tables" is an unknown key

Error: "Net.bridge.bridge-nf-call-iptables" is an unknown key

Error: "Net.bridge.bridge-nf-call-arptables" is an unknown key

KERNEL.MSGMNB = 65536

Kernel.msgmax = 65536

Kernel.shmmax =68719476736

Kernel.shmall =4294967296

Example : View fs.file-max kernel parameters.

[Email protected] ~]# Sysctlfs.file-max

Fs.file-max = 98007

the value of the Fs.file-max kernel parameter is 98007

Example : Temporarily change fs.file-max kernel parameters.

[Email protected] ~]# sysctl-w fs.file-max=60000

Fs.file-max = 60000


This article is from the "airfish2000" blog, make sure to keep this source http://airfish2000.blog.51cto.com/10829608/1884122

Sysctl Command--linux command application of large dictionary 729 commands interpretation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.