FreeBSD Sysctl内核参数说明
* kern.ostype: Operating system type
* kern.osrelease: Operating system release
* kern.osrevision: Operating system revision
* kern.version: Kernel version
* kern.maxvnodes: Maximum number of vnodes
* kern.maxproc: Maximum number of processes
* kern.maxfiles: Maximum number of files
* kern.argmax: Maximum bytes of arguement to execve(2)
* kern.securelevel: Current secure level
* kern.hostname: Hostname
* kern.hostid: Host ID
kern.clockrate
* kern.proc.all: Return entire process table
* kern.file: Return file table
* kern.posix1version: Version of POSIX attempting to comply to
* kern.ngroups: Maximum number of groups a user can belong to
* kern.job_control: Whether job control is avaliable
* kern.saved_ids: Whether saved set-group/user ID is avaliable
* kern.boottime: System boottime
* kern.domainname: Name of the current YP/NIS domain
* kern.osreldate: Operating system release date
kern.ntp_pll.gettime
* kern.bootfile: Name of kernel file booted
* kern.maxfilesperproc: Maximum files allowed open per process
* kern.maxprocperuid: Maximum processes allowed per userid
kern.dumpdev: Device to crashdump to
* kern.ipc.maxsockbuf: Maximum socket buffer size
kern.ipc.sockbuf_waste_factor
* kern.ipc.somaxconn: Maximum pending socket connection queue size
kern.ipc.max_linkhdr
kern.ipc.max_protohdr
kern.ipc.max_hdr
kern.ipc.max_datalen
kern.ipc.mbstat
* kern.ipc.nmbclusters: Maximum number of mbuf clusters avaliable for network IO
* kern.ipc.maxsockets: Maximum number of sockets avaliable
kern.dummy:
XXX This should be yanked from the source, its the old kern.maxsockbuf,
wollman decided to keep the SYSCTL OID valid (but returning nothing, as
kern.dummy does.)
kern.ps_strings
kern.usrstack
* kern.logsigexit: Log processes quitting on abnormal signals to syslog(3)
kern.cam.cd.changer.min_busy_seconds
kern.cam.cd.changer.max_busy_seconds
* kern.module_path: module load search path
kern.acct_suspend
kern.acct_resume
kern.acct_chkfreq
kern.timecounter.method
kern.timecounter.frequency
kern.timecounter.adjustment
* kern.fast_vfork: Enable fast vfork() by using RFMEM to share address space instead of copying it
* kern.sugid_coredump: Enable coredumping set user/group ID processes
* kern.corefile: process corefile name format string
kern.quantum
kern.ccpu
kern.fscale
* kern.devstat.all: All devices in the devstat list
* kern.devstat.numdevs: Number of devices in the devstat list
* kern.devstat.generation: Devstat list generation
* kern.devstat.version: Devstat list version number
kern.consmute
* vm.vmmeter: System virtual memory statistics
* vm.loadavg: Machine loadaverage history
vm.v_free_min
vm.v_free_target
vm.v_free_reserved
vm.v_inactive_target
vm.v_cache_min
vm.v_cache_max
vm.v_pageout_free_min
vm.pageout_algorithm
vm.swap_enabled
vm.swap_idle_threshold1
vm.swap_idle_threshold2
* vm.stats.sys.v_swtch: Context switches
* vm.stats.sys.v_trap: Traps
* vm.stats.sys.v_syscall: Syscalls
* vm.stats.sys.v_intr: Hardware Interrupts
* vm.stats.sys.v_soft: Software Interrupts
* vm.stats.vm.v_vm_faults: VM faults
* vm.stats.vm.v_cow_faults: COW faults
* vm.stats.vm.v_cow_optim: Optimized COW faults
* vm.stats.vm.v_zfod: Zero fill
* vm.stats.vm.v_ozfod: Optimized zero fill
* vm.stats.vm.v_swapin: Swapin operations
* vm.stats.vm.v_swapout: Swapout operations
* vm.stats.vm.v_swappgsin: Swapin pages
* vm.stats.vm.v_swappgsout: Swapout pages
* vm.stats.vm.v_vnodein: Vnodein operations
* vm.stats.vm.v_vnodeout: Vnodeout operations
* vm.stats.vm.v_vnodepgsin: Vnodein pages
* vm.stats.vm.v_vnodepgsout: Vnodeout pages
* vm.stats.vm.v_intrans: In transit page blocking
* vm.stats.vm.v_reactivated: Reactivated pages
* vm.stats.vm.v_pdwakeups: Pagedaemon wakeups
* vm.stats.vm.v_pdpages: Pagedaemon page scans
vm.stats.vm.v_dfree
vm.stats.vm.v_pfree
vm.stats.vm.v_tfree
vm.stats.vm.v_page_size
vm.stats.vm.v_page_count
vm.stats.vm.v_free_reserved
vm.stats.vm.v_free_target
vm.stats.vm.v_free_min
vm.stats.vm.v_free_count
vm.stats.vm.v_wire_count
vm.stats.vm.v_active_count
vm.stats.vm.v_inactive_target
vm.stats.vm.v_inactive_count
vm.stats.vm.v_cache_count
vm.stats.vm.v_cache_min
vm.stats.vm.v_cache_max
vm.stats.vm.v_pageout_free_min
vm.stats.vm.v_interrupt_free_min
vm.stats.misc.zero_page_count
vm.stats.misc.cnt_prezero
vm.pageout_stats_max
vm.pageout_full_stats_interval
vm.pageout_stats_interval
vm.pageout_stats_free_max
vm.swap_idle_enabled
vm.defer_swapspace_pageouts
vm.disable_swapspace_pageouts
vm.max_page_launder
vm.zone
vm.zone_kmem_pages
vm.zone_kmem_kvaspace
vm.zone_kern_pages
vfs.generic
vfs.nfs.nfsstats
vfs.nfs.nfs_privport
vfs.nfs.async
vfs.nfs.gatherdelay
vfs.nfs.gatherdelay_v3
vfs.nfs.defect
vfs.nfs.diskless_valid
vfs.nfs.diskless_rootpath
vfs.nfs.diskless_rootaddr
vfs.nfs.diskless_swappath
vfs.nfs.diskless_swapaddr
vfs.nfs.access_cache_timeout
vfs.nfs.access_cache_hits
vfs.nfs.access_cache_fills
vfs.numdirtybuffers
vfs.lodirtybuffers
vfs.hidirtybuffers
vfs.numfreebuffers
vfs.lofreebuffers
vfs.hifreebuffers
vfs.maxbufspace
vfs.bufspace
vfs.maxvmiobufspace
vfs.vmiospace
vfs.maxmallocbufspace
vfs.bufmallocspace
vfs.kvafreespace
vfs.cache.numneg
vfs.cache.numcache
vfs.cache.numcalls
vfs.cache.dothits
vfs.cache.dotdothits
vfs.cache.numchecks
vfs.cache.nummiss
vfs.cache.nummisszap
vfs.cache.numposzaps
vfs.cache.numposhits
vfs.cache.numnegzaps
vfs.cache.numneghits
vfs.cache.numcwdcalls
vfs.cache.numcwdfail1
vfs.cache.numcwdfail2
vfs.cache.numcwdfail3
vfs.cache.numcwdfail4
vfs.cache.numcwdfound
vfs.mod0
vfs.mod1
vfs.usermount
vfs.aio.max_aio_per_proc
vfs.aio.max_aio_queue_per_proc
vfs.aio.max_aio_procs
vfs.aio.num_aio_procs
vfs.aio.num_queue_count
vfs.aio.max_aio_queue
vfs.aio.target_aio_procs
vfs.aio.max_buf_aio
vfs.aio.num_buf_aio
vfs.aio.aiod_lifetime
vfs.aio.aiod_timeout
vfs.ffs.doreallocblks
vfs.ffs.doasyncfree
net.local.stream.sendspace
net.local.stream.recvspace
net.local.stream.pcblist
net.local.dgram.maxdgram
net.local.dgram.recvspace
net.local.dgram.pcblist
net.local.inflight
net.inet.ip.portrange.lowfirst: First port for ‘trusted’ socket binds
net.inet.ip.portrange.lowlast: Last port for ‘trusted’ socket binds
net.inet.ip.portrange.first: First port for normal socket binds
net.inet.ip.portrange.last: Last port for normal socket binds
net.inet.ip.portrange.hifirst: First port for ‘high’ socket binds ( XXX huh?
net.inet.ip.portrange.hilast: Last port for ‘high’ socket binds
* net.inet.ip.forwarding: Enable IP forwarding between interfaces
* net.inet.ip.redirect: Enable sending IP redirects
* net.inet.ip.ttl: Maximum TTL on IP packets
* net.inet.ip.rtexpire: Default expiry time on dynamically learnt routes
* net.inet.ip.rtminexpire: Minimum time to attempt to hold onto dynamically learnt routes
* net.inet.ip.rtmaxcache: Upper limit on dynamically learnt routes
* net.inet.ip.sourceroute: Enable forwarding source routed IP packets
* net.inet.ip.intr_queue_maxlen: Maximum size of the IP input queue
* net.inet.ip.intr_queue_drops: Number of packets dropped from the IP input queue
* net.inet.ip.stats: IP statistics (struct ipstat, netinet/ip_var.h)
* net.inet.ip.accept_sourceroute: Enable accepting source routed IP packets
* net.inet.ip.fastforwarding: Enable flow-based IP forwarding
* net.inet.ip.mtu: Default MTU
net.inet.ip.subnets_are_local
* net.inet.ip.fw.debug: Enable printing of debug ip_fw statements
* net.inet.ip.fw.one_pass: Only do a single pass through ipfw rules when using divert(4)
* net.inet.ip.fw.verbose: Log matches to ipfw rules
* net.inet.ip.fw.verbose_limit: Set upper limit of matches of ipfw rules logged
net.inet.icmp.maskrepl
net.inet.icmp.stats
net.inet.icmp.icmplim
net.inet.icmp.bmcastecho
net.inet.igmp.stats
* net.inet.tcp.rfc1323: Enable rfc1323 (high performance TCP) extensions
* net.inet.tcp.rfc1644: Enable rfc1644 (TTCP) extensions
* net.inet.tcp.mssdflt: Default TCP Maximum Segment Size
* net.inet.tcp.stats: TCP statistics (struct tcpstat, netinet/tcp_var.h)
* net.inet.tcp.rttdflt: Default maximum TCP Round Trip Time
net.inet.tcp.keepidle:Allowed connection idle ticks before a keepalive probe is sent
net.inet.tcp.keepintvl:Ticks before next keepalive probe is sent
* net.inet.tcp.sendspace: Maximum outgoing TCP datagram size (frag or total pkt?)
* net.inet.tcp.recvspace: Maximum incoming TCP datagram size (frag or total pkt?)
net.inet.tcp.keepinit
* net.inet.tcp.pcblist: List of active TCP connections
* net.inet.tcp.log_in_vain: Log all incoming TCP connections
* net.inet.tcp.delayed_ack: Delay ACK to try and piggyback it onto a data packet
* net.inet.tcp.pcbcount: Number of active PCBs
* net.inet.tcp.always_keepalive: Assume SO_KEEPALIVE on all TCP connections
net.inet.udp.checksum
* net.inet.udp.stats: UDP statistics (struct udpstat, netinet/udp_var.h)
* net.inet.udp.maxdgram: Maximum outgoing UDP datagram size
* net.inet.udp.recvspace: Maximum incoming UDP datagram size
* net.inet.udp.pcblist: List of active UDP sockets
* net.inet.udp.log_in_vain: Log all incoming UDP packets
* net.inet.raw.maxdgram: Maximum outgoing raw IP datagram size
* net.inet.raw.recvspace: Maximum incoming raw IP datagram size
* net.inet.raw.pcblist: List of active raw IP sockets
net.link.generic.system.ifcount
net.link.ether.inet.prune_intvl
net.link.ether.inet.max_age
net.link.ether.inet.host_down_time
net.link.ether.inet.maxtries
net.link.ether.inet.useloopback
net.link.ether.inet.proxyall
debug.elf_trace
debug.fdexpand
* debug.debugger_on_panic: Run debugger on kernel panic
debug.ttydebug
debug.nchash
debug.ncnegfactor
debug.numneg
debug.numcache
debug.vfscache
debug.vnsize
debug.ncsize
debug.numvnodes
debug.wantfreevnodes
debug.freevnodes
debug.disablecwd
debug.bpf_bufsize
debug.if_tun_debug
debug.ncr_debug
debug.tsc_timecounter
debug.i8254_timecounter
hw.machine: Machine class
hw.model: Machine model
* hw.ncpu: Number of active CPUs
* hw.byteorder: System byte order
hw.physmem: Physical memory in system
hw.usermem: Physical memory avaliable to user processes
* hw.pagesize: System memory page size
hw.floatingpoint: Hardware floating point support present
hw.machine_arch: System architecture
hw.availpages
machdep.consdev
machdep.adjkerntz
machdep.disable_rtc_set
machdep.bootinfo
machdep.wall_cmos_clock
* machdep.do_dump: Do coredump on kernel panic
machdep.ispc98
machdep.msgbuf: Kernel message buffer
machdep.msgbuf_clear
machdep.i8254_freq
machdep.tsc_freq
machdep.cs_recv_delay
machdep.conspeed
* user.cs_path: PATH that finds all the standard utilities
* user.bc_base_max: Max ibase/obase values in bc(1)
* user.bc_dim_max: Max array size in bc(1)
* user.bc_scale_max: Max scale value in bc(1)
* user.bc_string_max: Max string length in bc(1)
* user.coll_weights_max: Maximum number of weights assigned to an LC_COLLATE locale entry
user.expr_nest_max
* user.line_max: Max length (bytes) of a text-processing utility’s input line
* user.re_dup_max: Maximum number of repeats of a regexp permitted when using interval notation
* user.posix2_version: The version of POSIX 1003.2 with which the system attempts to comply
* user.posix2_c_bind: Whether C development supports the C bindings option
* user.posix2_c_dev: Whether system supports the C development utilities option
user.posix2_char_term
* user.posix2_fort_dev: Whether system supports FORTRAN development utilities
* user.posix2_fort_run: Whether system supports FORTRAN runtime utilities
* user.posix2_localedef: Whether system supports creation of locales
* user.posix2_sw_dev: Whether system supports software development utilities
* user.posix2_upe: Whether system supports the user portability utilities
* user.stream_max: Min Maximum number of streams a process may have open at one time
* user.tzname_max: Min Maximum number of types supported for timezone names
p1003_1b.asynchronous_io
p1003_1b.mapped_files
p1003_1b.memlock
p1003_1b.memlock_range
p1003_1b.memory_protection
p1003_1b.message_passing
p1003_1b.prioritized_io
p1003_1b.priority_scheduling
p1003_1b.realtime_signals
p1003_1b.semaphores
p1003_1b.fsync
p1003_1b.shared_memory_objects
p1003_1b.synchronized_io
p1003_1b.timers
p1003_1b.aio_listio_max
p1003_1b.aio_max
p1003_1b.aio_prio_delta_max
p1003_1b.delaytimer_max
p1003_1b.mq_open_max
p1003_1b.pagesize
p1003_1b.rtsig_max
p1003_1b.sem_nsems_max
p1003_1b.sem_value_max
p1003_1b.sigqueue_max
p1003_1b.timer_max