Linux Scroll

Just another WordPress.com site

/proc/sys

/proc/sys not only provides information about the system, it also allows you to change kernel parameters.

$ sudo ls /proc/sys

abi crypto debug dev fs kernel net vm

* debug: Debugging information
* dev: Provides parameters for specific devices on your system
* fs: Offers data on every possible aspect of the filesystem.
* kernel: Lets you affect the kernel configuration and operation directly.
* net: Lets you control network-related matters.
* vm: Deals with the VM subsystem.

Kernel file with “Write” permission only can change parameter:

$ sudo ls -ld /proc/sys/kernel/*

-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/acct
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/acpi_video_flags
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/auto_msgmni
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/blk_iopoll
-r--r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/bootloader_type
-r--r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/bootloader_version
-rw------- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/cad_pid
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/compat-log
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/core_pattern
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/core_pipe_limit
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/core_uses_pid
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/ctrl-alt-del
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/domainname
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/ftrace_dump_on_oops
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/ftrace_enabled
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/hostname
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/hotplug
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/hung_task_check_count
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/hung_task_panic
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/hung_task_timeout_secs
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/hung_task_warnings
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/io_delay_type
dr-xr-xr-x 0 root root 0 2011-08-19 18:13 /proc/sys/kernel/keys
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/kstack_depth_to_print
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/latencytop
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/max_lock_depth
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/modprobe
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/modules_disabled
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/msgmax
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/msgmnb
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/msgmni
-r--r--r-- 1 root root 0 2011-08-19 18:05 /proc/sys/kernel/ngroups_max
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/nmi_watchdog
-r--r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/osrelease
-r--r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/ostype
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/overflowgid
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/overflowuid
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/panic
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/panic_on_io_nmi
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/panic_on_oops
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/panic_on_unrecovered_nmi
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/perf_event_max_sample_rate
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/perf_event_mlock_kb
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/perf_event_paranoid
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/pid_max
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/poweroff_cmd
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/print-fatal-signals
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/printk
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/printk_delay
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/printk_ratelimit
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/printk_ratelimit_burst
dr-xr-xr-x 0 root root 0 2011-08-19 18:13 /proc/sys/kernel/pty
dr-xr-xr-x 0 root root 0 2011-08-19 18:13 /proc/sys/kernel/random
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/randomize_va_space
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/real-root-dev
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sched_child_runs_first
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sched_compat_yield
dr-xr-xr-x 0 root root 0 2011-08-19 18:13 /proc/sys/kernel/sched_domain
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sched_latency_ns
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sched_migration_cost
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sched_min_granularity_ns
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sched_nr_migrate
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sched_rt_period_us
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sched_rt_runtime_us
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sched_shares_ratelimit
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sched_shares_thresh
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sched_time_avg
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sched_tunable_scaling
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sched_wakeup_granularity_ns
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sem
-r--r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sg-big-buff
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/shmall
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/shmmax
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/shmmni
dr-xr-xr-x 0 root root 0 2011-08-19 18:13 /proc/sys/kernel/slow-work
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/softlockup_panic
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/softlockup_thresh
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/stack_tracer_enabled
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/sysrq
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/tainted
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/threads-max
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/timer_migration
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/unknown_nmi_panic
-r--r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/version
-rw-r--r-- 1 root root 0 2011-08-19 18:13 /proc/sys/kernel/vsyscall64
dr-xr-xr-x 0 root root 0 2011-08-19 18:13 /proc/sys/kernel/yama
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: