Deleted Added
full compact
sysctl.3 (127401) sysctl.3 (131504)
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95
33.\" $FreeBSD: head/lib/libc/gen/sysctl.3 127401 2004-03-25 10:08:46Z bms $
33.\" $FreeBSD: head/lib/libc/gen/sysctl.3 131504 2004-07-02 23:52:20Z ru $
34.\"
35.Dd January 23, 2001
36.Dt SYSCTL 3
37.Os
38.Sh NAME
39.Nm sysctl ,
40.Nm sysctlbyname ,
41.Nm sysctlnametomib

--- 36 unchanged lines hidden (view full) ---

78.Fa name ,
79which is a
80.Fa namelen
81length array of integers.
82.Pp
83The
84.Fn sysctlbyname
85function accepts an ASCII representation of the name and internally
34.\"
35.Dd January 23, 2001
36.Dt SYSCTL 3
37.Os
38.Sh NAME
39.Nm sysctl ,
40.Nm sysctlbyname ,
41.Nm sysctlnametomib

--- 36 unchanged lines hidden (view full) ---

78.Fa name ,
79which is a
80.Fa namelen
81length array of integers.
82.Pp
83The
84.Fn sysctlbyname
85function accepts an ASCII representation of the name and internally
86looks up the integer name vector. Apart from that, it behaves the same
86looks up the integer name vector.
87Apart from that, it behaves the same
87as the standard
88.Fn sysctl
89function.
90.Pp
91The information is copied into the buffer specified by
92.Fa oldp .
93The size of the buffer is given by the location specified by
94.Fa oldlenp

--- 354 unchanged lines hidden (view full) ---

449.It "KERN_PROC_PID A process ID"
450.It "KERN_PROC_PGRP A process group"
451.It "KERN_PROC_TTY A tty device"
452.It "KERN_PROC_UID A user ID"
453.It "KERN_PROC_RUID A real user ID"
454.El
455.Pp
456If the third level name is KERN_PROC_ARGS then the command line argument
88as the standard
89.Fn sysctl
90function.
91.Pp
92The information is copied into the buffer specified by
93.Fa oldp .
94The size of the buffer is given by the location specified by
95.Fa oldlenp

--- 354 unchanged lines hidden (view full) ---

450.It "KERN_PROC_PID A process ID"
451.It "KERN_PROC_PGRP A process group"
452.It "KERN_PROC_TTY A tty device"
453.It "KERN_PROC_UID A user ID"
454.It "KERN_PROC_RUID A real user ID"
455.El
456.Pp
457If the third level name is KERN_PROC_ARGS then the command line argument
457array is returned in a flattened form, i.e. zero-terminated arguments
458array is returned in a flattened form, i.e., zero-terminated arguments
458follow each other.
459The total size of array is returned.
460It is also possible for a process to set its own process title this way.
461.Bl -column "Third level nameXXXXXX" "Fourth level is:XXXXXX" -offset indent
462.It Sy "Third level name Fourth level is:"
463.It "KERN_PROC_ARGS A process ID"
464.El
465.It Li KERN_PROF

--- 281 unchanged lines hidden (view full) ---

747.It Li VM_METER
748Return the system wide virtual memory statistics.
749The returned data consists of a
750.Va struct vmtotal .
751.It Li VM_PAGEOUT_ALGORITHM
7520 if the statistics-based page management algorithm is in use
753or 1 if the near-LRU algorithm is in use.
754.It Li VM_SWAPPING_ENABLED
459follow each other.
460The total size of array is returned.
461It is also possible for a process to set its own process title this way.
462.Bl -column "Third level nameXXXXXX" "Fourth level is:XXXXXX" -offset indent
463.It Sy "Third level name Fourth level is:"
464.It "KERN_PROC_ARGS A process ID"
465.El
466.It Li KERN_PROF

--- 281 unchanged lines hidden (view full) ---

748.It Li VM_METER
749Return the system wide virtual memory statistics.
750The returned data consists of a
751.Va struct vmtotal .
752.It Li VM_PAGEOUT_ALGORITHM
7530 if the statistics-based page management algorithm is in use
754or 1 if the near-LRU algorithm is in use.
755.It Li VM_SWAPPING_ENABLED
7551 if process swapping is enabled or 0 if disabled. This variable is
7561 if process swapping is enabled or 0 if disabled.
757This variable is
756permanently set to 0 if the kernel was built with swapping disabled.
757.It Li VM_V_CACHE_MAX
758Maximum desired size of the cache queue.
759.It Li VM_V_CACHE_MIN
758permanently set to 0 if the kernel was built with swapping disabled.
759.It Li VM_V_CACHE_MAX
760Maximum desired size of the cache queue.
761.It Li VM_V_CACHE_MIN
760Minimum desired size of the cache queue. If the cache queue size
762Minimum desired size of the cache queue.
763If the cache queue size
761falls very far below this value, the pageout daemon is awakened.
762.It Li VM_V_FREE_MIN
763Minimum amount of memory (cache memory plus free memory)
764required to be available before a process waiting on memory will be
765awakened.
766.It Li VM_V_FREE_RESERVED
767Processes will awaken the pageout daemon and wait for memory if the
768number of free and cached pages drops below this value.
769.It Li VM_V_FREE_TARGET
770The total amount of free memory (including cache memory) that the
771pageout daemon tries to maintain.
772.It Li VM_V_INACTIVE_TARGET
773The desired number of inactive pages that the pageout daemon should
764falls very far below this value, the pageout daemon is awakened.
765.It Li VM_V_FREE_MIN
766Minimum amount of memory (cache memory plus free memory)
767required to be available before a process waiting on memory will be
768awakened.
769.It Li VM_V_FREE_RESERVED
770Processes will awaken the pageout daemon and wait for memory if the
771number of free and cached pages drops below this value.
772.It Li VM_V_FREE_TARGET
773The total amount of free memory (including cache memory) that the
774pageout daemon tries to maintain.
775.It Li VM_V_INACTIVE_TARGET
776The desired number of inactive pages that the pageout daemon should
774achieve when it runs. Inactive pages can be quickly inserted into
777achieve when it runs.
778Inactive pages can be quickly inserted into
775process address space when needed.
776.It Li VM_V_PAGEOUT_FREE_MIN
777If the amount of free and cache memory falls below this value, the
778pageout daemon will enter "memory conserving mode" to avoid deadlock.
779.El
780.Sh RETURN VALUES
781.Rv -std
782.Sh ERRORS

--- 81 unchanged lines hidden ---
779process address space when needed.
780.It Li VM_V_PAGEOUT_FREE_MIN
781If the amount of free and cache memory falls below this value, the
782pageout daemon will enter "memory conserving mode" to avoid deadlock.
783.El
784.Sh RETURN VALUES
785.Rv -std
786.Sh ERRORS

--- 81 unchanged lines hidden ---