xref: /src/share/man/man7/tuning.7 (revision b1bebaaba9b9c0ddfe503c43ca8e9e3917ee2c57)
1.\" Copyright (C) 2001 Matthew Dillon. All rights reserved.
2.\" Copyright (C) 2012 Eitan Adler.
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.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\"
13.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16.\" ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.Dd October 28, 2025
26.Dt TUNING 7
27.Os
28.Sh NAME
29.Nm tuning
30.Nd performance tuning under FreeBSD
31.Sh SYSTEM SETUP - DISKLABEL, NEWFS, TUNEFS, SWAP
32The swap partition should typically be approximately 2x the size of
33main memory
34for systems with less than 4GB of RAM, or approximately equal to
35the size of main memory
36if you have more.
37Keep in mind future memory
38expansion when sizing the swap partition.
39Configuring too little swap can lead
40to inefficiencies in the VM page scanning code as well as create issues
41later on if you add more memory to your machine.
42On larger systems
43with multiple disks, configure swap on each drive.
44The swap partitions on the drives should be approximately the same size.
45The kernel can handle arbitrary sizes but
46internal data structures scale to 4 times the largest swap partition.
47Keeping
48the swap partitions near the same size will allow the kernel to optimally
49stripe swap space across the N disks.
50Do not worry about overdoing it a
51little, swap space is the saving grace of
52.Ux
53and even if you do not normally use much swap, it can give you more time to
54recover from a runaway program before being forced to reboot.
55.Pp
56It is not a good idea to make one large partition.
57First,
58each partition has different operational characteristics and separating them
59allows the file system to tune itself to those characteristics.
60For example,
61the root and
62.Pa /usr
63partitions are read-mostly, with very little writing, while
64a lot of reading and writing could occur in
65.Pa /var/tmp .
66By properly
67partitioning your system fragmentation introduced in the smaller more
68heavily write-loaded partitions will not bleed over into the mostly-read
69partitions.
70.Pp
71Properly partitioning your system also allows you to tune
72.Xr newfs 8 ,
73and
74.Xr tunefs 8
75parameters.
76The only
77.Xr tunefs 8
78option worthwhile turning on is
79.Em softupdates
80with
81.Dq Li "tunefs -n enable /filesystem" .
82Softupdates drastically improves meta-data performance, mainly file
83creation and deletion.
84We recommend enabling softupdates on most file systems; however, there
85are two limitations to softupdates that you should be aware of when
86determining whether to use it on a file system.
87First, softupdates guarantees file system consistency in the
88case of a crash but could very easily be several seconds (even a minute!\&)
89behind on pending write to the physical disk.
90If you crash you may lose more work
91than otherwise.
92Secondly, softupdates delays the freeing of file system
93blocks.
94If you have a file system (such as the root file system) which is
95close to full, doing a major update of it, e.g.,\&
96.Dq Li "make installworld" ,
97can run it out of space and cause the update to fail.
98For this reason, softupdates will not be enabled on the root file system
99during a typical install.
100There is no loss of performance since the root
101file system is rarely written to.
102.Pp
103A number of run-time
104.Xr mount 8
105options exist that can help you tune the system.
106The most obvious and most dangerous one is
107.Cm async .
108Only use this option in conjunction with
109.Xr gjournal 8 ,
110as it is far too dangerous on a normal file system.
111A less dangerous and more
112useful
113.Xr mount 8
114option is called
115.Cm noatime .
116.Ux
117file systems normally update the last-accessed time of a file or
118directory whenever it is accessed.
119This operation is handled in
120.Fx
121with a delayed write and normally does not create a burden on the system.
122However, if your system is accessing a huge number of files on a continuing
123basis the buffer cache can wind up getting polluted with atime updates,
124creating a burden on the system.
125For example, if you are running a heavily
126loaded web site, or a news server with lots of readers, you might want to
127consider turning off atime updates on your larger partitions with this
128.Xr mount 8
129option.
130However, you should not gratuitously turn off atime
131updates everywhere.
132For example, the
133.Pa /var
134file system customarily
135holds mailboxes, and atime (in combination with mtime) is used to
136determine whether a mailbox has new mail.
137You might as well leave
138atime turned on for mostly read-only partitions such as
139.Pa /
140and
141.Pa /usr
142as well.
143This is especially useful for
144.Pa /
145since some system utilities
146use the atime field for reporting.
147.Sh STRIPING DISKS
148In larger systems you can stripe partitions from several drives together
149to create a much larger overall partition.
150Striping can also improve
151the performance of a file system by splitting I/O operations across two
152or more disks.
153The
154.Xr gstripe 8
155and
156.Xr ccdconfig 8
157utilities may be used to create simple striped file systems.
158Generally
159speaking, striping smaller partitions such as the root and
160.Pa /var/tmp ,
161or essentially read-only partitions such as
162.Pa /usr
163is a complete waste of time.
164You should only stripe partitions that require serious I/O performance,
165typically
166.Pa /var , /home ,
167or custom partitions used to hold databases and web pages.
168Choosing the proper stripe size is also
169important.
170File systems tend to store meta-data on power-of-2 boundaries
171and you usually want to reduce seeking rather than increase seeking.
172This
173means you want to use a large off-center stripe size such as 1152 sectors
174so sequential I/O does not seek both disks and so meta-data is distributed
175across both disks rather than concentrated on a single disk.
176.Sh SYSCTL TUNING
177.Xr sysctl 8
178variables permit system behavior to be monitored and controlled at
179run-time.
180Some sysctls simply report on the behavior of the system; others allow
181the system behavior to be modified;
182some may be set at boot time using
183.Xr rc.conf 5 ,
184but most will be set via
185.Xr sysctl.conf 5 .
186There are several hundred sysctls in the system, including many that appear
187to be candidates for tuning but actually are not.
188In this document we will only cover the ones that have the greatest effect
189on the system.
190.Pp
191The
192.Va vm.overcommit
193sysctl defines the overcommit behaviour of the vm subsystem.
194The virtual memory system always does accounting of the swap space
195reservation, both total for system and per-user.
196Corresponding values
197are available through sysctl
198.Va vm.swap_total ,
199that gives the total bytes available for swapping, and
200.Va vm.swap_reserved ,
201that gives number of bytes that may be needed to back all currently
202allocated anonymous memory.
203.Pp
204Setting bit 0 of the
205.Va vm.overcommit
206sysctl causes the virtual memory system to return failure
207to the process when allocation of memory causes
208.Va vm.swap_reserved
209to exceed
210.Va vm.swap_total .
211Bit 1 of the sysctl enforces
212.Dv RLIMIT_SWAP
213limit
214(see
215.Xr getrlimit 2 ) .
216Root is exempt from this limit.
217Bit 2 allows to count most of the physical
218memory as allocatable, except wired and free reserved pages
219(accounted by
220.Va vm.stats.vm.v_free_target
221and
222.Va vm.stats.vm.v_wire_count
223sysctls, respectively).
224.Pp
225Due to the architecture of the
226.Fx
227virtual memory subsystem, the use of copy on write (CoW) anonymous
228memory, e.g. on
229.Xr fork 2 ,
230causes swap reservation for all three regions (VM objects):
231in the original pre-fork mapping, and its copies in
232the parent and child, instead of only two.
233Eventually the subsystem tries to optimize the internal layout
234of the tracking for CoW and often removes (collapses) no longer
235needed backing objects, re-assigning its pages and swap
236reservations to the copies.
237Collapsing frees the swap reserve, but it is not guaranteed
238to happen.
239.Pp
240The
241.Va kern.ipc.maxpipekva
242loader tunable is used to set a hard limit on the
243amount of kernel address space allocated to mapping of pipe buffers.
244Use of the mapping allows the kernel to eliminate a copy of the
245data from writer address space into the kernel, directly copying
246the content of mapped buffer to the reader.
247Increasing this value to a higher setting, such as `25165824' might
248improve performance on systems where space for mapping pipe buffers
249is quickly exhausted.
250This exhaustion is not fatal; however, and it will only cause pipes
251to fall back to using double-copy.
252.Pp
253The
254.Va kern.ipc.shm_use_phys
255sysctl defaults to 0 (off) and may be set to 0 (off) or 1 (on).
256Setting
257this parameter to 1 will cause all System V shared memory segments to be
258mapped to unpageable physical RAM.
259This feature only has an effect if you
260are either (A) mapping small amounts of shared memory across many (hundreds)
261of processes, or (B) mapping large amounts of shared memory across any
262number of processes.
263This feature allows the kernel to remove a great deal
264of internal memory management page-tracking overhead at the cost of wiring
265the shared memory into core, making it unswappable.
266.Pp
267The
268.Va vfs.vmiodirenable
269sysctl defaults to 1 (on).
270This parameter controls how directories are cached
271by the system.
272Most directories are small and use but a single fragment
273(typically 2K) in the file system and even less (typically 512 bytes) in
274the buffer cache.
275However, when operating in the default mode the buffer
276cache will only cache a fixed number of directories even if you have a huge
277amount of memory.
278Turning on this sysctl allows the buffer cache to use
279the VM Page Cache to cache the directories.
280The advantage is that all of
281memory is now available for caching directories.
282The disadvantage is that
283the minimum in-core memory used to cache a directory is the physical page
284size (typically 4K) rather than 512 bytes.
285We recommend turning this option off in memory-constrained environments;
286however, when on, it will substantially improve the performance of services
287that manipulate a large number of files.
288Such services can include web caches, large mail systems, and news systems.
289Turning on this option will generally not reduce performance even with the
290wasted memory but you should experiment to find out.
291.Pp
292The
293.Va vfs.write_behind
294sysctl defaults to 1 (on).
295This tells the file system to issue media
296writes as full clusters are collected, which typically occurs when writing
297large sequential files.
298The idea is to avoid saturating the buffer
299cache with dirty buffers when it would not benefit I/O performance.
300However,
301this may stall processes and under certain circumstances you may wish to turn
302it off.
303.Pp
304The
305.Va vfs.hirunningspace
306sysctl determines how much outstanding write I/O may be queued to
307disk controllers system-wide at any given time.
308It is used by the UFS file system.
309The default is self-tuned and
310usually sufficient but on machines with advanced controllers and lots
311of disks this may be tuned up to match what the controllers buffer.
312Configuring this setting to match tagged queuing capabilities of
313controllers or drives with average IO size used in production works
314best (for example: 16 MiB will use 128 tags with IO requests of 128 KiB).
315Note that setting too high a value
316(exceeding the buffer cache's write threshold) can lead to extremely
317bad clustering performance.
318Do not set this value arbitrarily high!
319Higher write queuing values may also add latency to reads occurring at
320the same time.
321.Pp
322The
323.Va vfs.read_max
324sysctl governs VFS read-ahead and is expressed as the number of blocks
325to pre-read if the heuristics algorithm decides that the reads are
326issued sequentially.
327It is used by the UFS, ext2fs and msdosfs file systems.
328With the default UFS block size of 32 KiB, a setting of 64 will allow
329speculatively reading up to 2 MiB.
330This setting may be increased to get around disk I/O latencies, especially
331where these latencies are large such as in virtual machine emulated
332environments.
333It may be tuned down in specific cases where the I/O load is such that
334read-ahead adversely affects performance or where system memory is really
335low.
336.Pp
337The
338.Va vfs.ncsizefactor
339sysctl defines how large VFS namecache may grow.
340The number of currently allocated entries in namecache is provided by
341.Va debug.numcache
342sysctl and the condition
343debug.numcache < kern.maxvnodes * vfs.ncsizefactor
344is adhered to.
345.Pp
346The
347.Va vfs.ncnegfactor
348sysctl defines how many negative entries VFS namecache is allowed to create.
349The number of currently allocated negative entries is provided by
350.Va debug.numneg
351sysctl and the condition
352vfs.ncnegfactor * debug.numneg < debug.numcache
353is adhered to.
354.Pp
355There are various other buffer-cache and VM page cache related sysctls.
356We do not recommend modifying these values.
357.Pp
358The
359.Va net.inet.tcp.sendspace
360and
361.Va net.inet.tcp.recvspace
362sysctls are of particular interest if you are running network intensive
363applications.
364They control the amount of send and receive buffer space
365allowed for any given TCP connection.
366The default sending buffer is 32K; the default receiving buffer
367is 64K.
368You can often
369improve bandwidth utilization by increasing the default at the cost of
370eating up more kernel memory for each connection.
371We do not recommend
372increasing the defaults if you are serving hundreds or thousands of
373simultaneous connections because it is possible to quickly run the system
374out of memory due to stalled connections building up.
375But if you need
376high bandwidth over a fewer number of connections, especially if you have
377gigabit Ethernet, increasing these defaults can make a huge difference.
378You can adjust the buffer size for incoming and outgoing data separately.
379For example, if your machine is primarily doing web serving you may want
380to decrease the recvspace in order to be able to increase the
381sendspace without eating too much kernel memory.
382Note that the routing table (see
383.Xr route 8 )
384can be used to introduce route-specific send and receive buffer size
385defaults.
386.Pp
387As an additional management tool you can use pipes in your
388firewall rules (see
389.Xr ipfw 8 )
390to limit the bandwidth going to or from particular IP blocks or ports.
391For example, if you have a T1 you might want to limit your web traffic
392to 70% of the T1's bandwidth in order to leave the remainder available
393for mail and interactive use.
394Normally a heavily loaded web server
395will not introduce significant latencies into other services even if
396the network link is maxed out, but enforcing a limit can smooth things
397out and lead to longer term stability.
398Many people also enforce artificial
399bandwidth limitations in order to ensure that they are not charged for
400using too much bandwidth.
401.Pp
402Setting the send or receive TCP buffer to values larger than 65535 will result
403in a marginal performance improvement unless both hosts support the window
404scaling extension of the TCP protocol, which is controlled by the
405.Va net.inet.tcp.rfc1323
406sysctl.
407These extensions should be enabled and the TCP buffer size should be set
408to a value larger than 65536 in order to obtain good performance from
409certain types of network links; specifically, gigabit WAN links and
410high-latency satellite links.
411RFC1323 support is enabled by default.
412.Pp
413The
414.Va net.inet.tcp.always_keepalive
415sysctl determines whether or not the TCP implementation should attempt
416to detect dead TCP connections by intermittently delivering
417.Dq keepalives
418on the connection.
419By default, this is enabled for all applications; by setting this
420sysctl to 0, only applications that specifically request keepalives
421will use them.
422In most environments, TCP keepalives will improve the management of
423system state by expiring dead TCP connections, particularly for
424systems serving dialup users who may not always terminate individual
425TCP connections before disconnecting from the network.
426However, in some environments, temporary network outages may be
427incorrectly identified as dead sessions, resulting in unexpectedly
428terminated TCP connections.
429In such environments, setting the sysctl to 0 may reduce the occurrence of
430TCP session disconnections.
431.Pp
432The
433.Va net.inet.tcp.delayed_ack
434TCP feature is largely misunderstood.
435Historically speaking, this feature
436was designed to allow the acknowledgement to transmitted data to be returned
437along with the response.
438For example, when you type over a remote shell,
439the acknowledgement to the character you send can be returned along with the
440data representing the echo of the character.
441With delayed acks turned off,
442the acknowledgement may be sent in its own packet, before the remote service
443has a chance to echo the data it just received.
444This same concept also
445applies to any interactive protocol (e.g.,\& SMTP, WWW, POP3), and can cut the
446number of tiny packets flowing across the network in half.
447The
448.Fx
449delayed ACK implementation also follows the TCP protocol rule that
450at least every other packet be acknowledged even if the standard 40ms
451timeout has not yet passed.
452Normally the worst a delayed ACK can do is
453slightly delay the teardown of a connection, or slightly delay the ramp-up
454of a slow-start TCP connection.
455While we are not sure we believe that
456the several FAQs related to packages such as SAMBA and SQUID which advise
457turning off delayed acks may be referring to the slow-start issue.
458.Pp
459The
460.Va net.inet.ip.portrange.*
461sysctls control the port number ranges automatically bound to TCP and UDP
462sockets.
463There are three ranges: a low range, a default range, and a
464high range, selectable via the
465.Dv IP_PORTRANGE
466.Xr setsockopt 2
467call.
468Most
469network programs use the default range which is controlled by
470.Va net.inet.ip.portrange.first
471and
472.Va net.inet.ip.portrange.last ,
473which default to 49152 and 65535, respectively.
474Bound port ranges are
475used for outgoing connections, and it is possible to run the system out
476of ports under certain circumstances.
477This most commonly occurs when you are
478running a heavily loaded web proxy.
479The port range is not an issue
480when running a server which handles mainly incoming connections, such as a
481normal web server, or has a limited number of outgoing connections, such
482as a mail relay.
483For situations where you may run out of ports,
484we recommend decreasing
485.Va net.inet.ip.portrange.first
486modestly.
487A range of 10000 to 30000 ports may be reasonable.
488You should also consider firewall effects when changing the port range.
489Some firewalls
490may block large ranges of ports (usually low-numbered ports) and expect systems
491to use higher ranges of ports for outgoing connections.
492By default
493.Va net.inet.ip.portrange.last
494is set at the maximum allowable port number.
495.Pp
496The
497.Va kern.ipc.soacceptqueue
498sysctl limits the size of the listen queue for accepting new TCP connections.
499The default value of 128 is typically too low for robust handling of new
500connections in a heavily loaded web server environment.
501For such environments,
502we recommend increasing this value to 1024 or higher.
503The service daemon
504may itself limit the listen queue size (e.g.,\&
505.Xr sendmail 8 ,
506apache) but will
507often have a directive in its configuration file to adjust the queue size up.
508Larger listen queues also do a better job of fending off denial of service
509attacks.
510.Pp
511The
512.Va kern.maxfiles
513sysctl determines how many open files the system supports.
514The default is
515typically a few thousand but you may need to bump this up to ten or twenty
516thousand if you are running databases or large descriptor-heavy daemons.
517The read-only
518.Va kern.openfiles
519sysctl may be interrogated to determine the current number of open files
520on the system.
521.Sh LOADER TUNABLES
522Some aspects of the system behavior may not be tunable at runtime because
523memory allocations they perform must occur early in the boot process.
524To change loader tunables, you must set their values in
525.Xr loader.conf 5
526and reboot the system.
527.Pp
528.Va kern.maxusers
529controls the scaling of a number of static system tables, including defaults
530for the maximum number of open files, sizing of network memory resources, etc.
531.Va kern.maxusers
532is automatically sized at boot based on the amount of memory available in
533the system, and may be determined at run-time by inspecting the value of the
534read-only
535.Va kern.maxusers
536sysctl.
537.Pp
538The
539.Va kern.dfldsiz
540and
541.Va kern.dflssiz
542tunables set the default soft limits for process data and stack size
543respectively.
544Processes may increase these up to the hard limits by calling
545.Xr setrlimit 2 .
546The
547.Va kern.maxdsiz ,
548.Va kern.maxssiz ,
549and
550.Va kern.maxtsiz
551tunables set the hard limits for process data, stack, and text size
552respectively; processes may not exceed these limits.
553The
554.Va kern.sgrowsiz
555tunable controls how much the stack segment will grow when a process
556needs to allocate more stack.
557.Pp
558.Va kern.ipc.nmbclusters
559may be adjusted to increase the number of network mbufs the system is
560willing to allocate.
561Each cluster represents approximately 2K of memory,
562so a value of 1024 represents 2M of kernel memory reserved for network
563buffers.
564You can do a simple calculation to figure out how many you need.
565If you have a web server which maxes out at 1000 simultaneous connections,
566and each connection eats a 16K receive and 16K send buffer, you need
567approximately 32MB worth of network buffers to deal with it.
568A good rule of
569thumb is to multiply by 2, so 32MBx2 = 64MB/2K = 32768.
570So for this case
571you would want to set
572.Va kern.ipc.nmbclusters
573to 32768.
574We recommend values between
5751024 and 4096 for machines with moderates amount of memory, and between 4096
576and 32768 for machines with greater amounts of memory.
577Under no circumstances
578should you specify an arbitrarily high value for this parameter, it could
579lead to a boot-time crash.
580The
581.Fl m
582option to
583.Xr netstat 1
584may be used to observe network cluster use.
585.Pp
586More and more programs are using the
587.Xr sendfile 2
588system call to transmit files over the network.
589The
590.Va kern.ipc.nsfbufs
591sysctl controls the number of file system buffers
592.Xr sendfile 2
593is allowed to use to perform its work.
594This parameter nominally scales
595with
596.Va kern.maxusers
597so you should not need to modify this parameter except under extreme
598circumstances.
599See the
600.Sx TUNING
601section in the
602.Xr sendfile 2
603manual page for details.
604.Sh KERNEL CONFIG TUNING
605There are a number of kernel options that you may have to fiddle with in
606a large-scale system.
607In order to change these options you need to be
608able to compile a new kernel from source.
609The
610.Xr config 8
611manual page and the handbook are good starting points for learning how to
612do this.
613Generally the first thing you do when creating your own custom
614kernel is to strip out all the drivers and services you do not use.
615Removing things like
616.Dv INET6
617and drivers you do not have will reduce the size of your kernel, sometimes
618by a megabyte or more, leaving more memory available for applications.
619.Pp
620.Dv SCSI_DELAY
621may be used to reduce system boot times.
622The defaults are fairly high and
623can be responsible for 5+ seconds of delay in the boot process.
624Reducing
625.Dv SCSI_DELAY
626to something below 5 seconds could work (especially with modern drives).
627.Pp
628There are a number of
629.Dv *_CPU
630options that can be commented out.
631If you only want the kernel to run
632on a Pentium class CPU, you can easily remove
633.Dv I486_CPU ,
634but only remove
635.Dv I586_CPU
636if you are sure your CPU is being recognized as a Pentium II or better.
637Some clones may be recognized as a Pentium or even a 486 and not be able
638to boot without those options.
639If it works, great!
640The operating system
641will be able to better use higher-end CPU features for MMU, task switching,
642timebase, and even device operations.
643Additionally, higher-end CPUs support
6444MB MMU pages, which the kernel uses to map the kernel itself into memory,
645increasing its efficiency under heavy syscall loads.
646.Sh CPU, MEMORY, DISK, NETWORK
647The type of tuning you do depends heavily on where your system begins to
648bottleneck as load increases.
649If your system runs out of CPU (idle times
650are perpetually 0%) then you need to consider upgrading the CPU
651or perhaps you need to revisit the
652programs that are causing the load and try to optimize them.
653If your system
654is paging to swap a lot you need to consider adding more memory.
655If your
656system is saturating the disk you typically see high CPU idle times and
657total disk saturation.
658.Xr systat 1
659can be used to monitor this.
660There are many solutions to saturated disks:
661increasing memory for caching, mirroring disks, distributing operations across
662several machines, and so forth.
663.Pp
664Finally, you might run out of network suds.
665Optimize the network path
666as much as possible.
667For example, in
668.Xr firewall 7
669we describe a firewall protecting internal hosts with a topology where
670the externally visible hosts are not routed through it.
671Most bottlenecks occur at the WAN link.
672If expanding the link is not an option it may be possible to use the
673.Xr dummynet 4
674feature to implement peak shaving or other forms of traffic shaping to
675prevent the overloaded service (such as web services) from affecting other
676services (such as email), or vice versa.
677In home installations this could
678be used to give interactive traffic (your browser,
679.Xr ssh 1
680logins) priority
681over services you export from your box (web services, email).
682.Sh SEE ALSO
683.Xr netstat 1 ,
684.Xr systat 1 ,
685.Xr sendfile 2 ,
686.Xr ata 4 ,
687.Xr dummynet 4 ,
688.Xr eventtimers 4 ,
689.Xr ffs 4 ,
690.Xr login.conf 5 ,
691.Xr rc.conf 5 ,
692.Xr sysctl.conf 5 ,
693.Xr firewall 7 ,
694.Xr hier 7 ,
695.Xr ports 7 ,
696.Xr stats 7 ,
697.Xr boot 8 ,
698.Xr bsdinstall 8 ,
699.Xr ccdconfig 8 ,
700.Xr config 8 ,
701.Xr fsck 8 ,
702.Xr gjournal 8 ,
703.Xr gpart 8 ,
704.Xr gstripe 8 ,
705.Xr ifconfig 8 ,
706.Xr ipfw 8 ,
707.Xr loader 8 ,
708.Xr mount 8 ,
709.Xr newfs 8 ,
710.Xr route 8 ,
711.Xr sysctl 8 ,
712.Xr tunefs 8
713.Sh HISTORY
714The
715.Nm
716manual page was originally written by
717.An Matthew Dillon
718and first appeared
719in
720.Fx 4.3 ,
721May 2001.
722The manual page was greatly modified by
723.An Eitan Adler Aq Mt eadler@FreeBSD.org .
724