comparison xml/en/docs/freebsd_tuning.xml @ 1144:ac131944d349

Changed infinitive to gerund after "allow".
author Yaroslav Zhuravlev <yar@nginx.com>
date Mon, 07 Apr 2014 17:14:21 +0400
parents 9ca8b71e0e03
children
comparison
equal deleted inserted replaced
1143:b93422ca9fe7 1144:ac131944d349
53 tcp4 0/0/128 *.22 53 tcp4 0/0/128 *.22
54 </programlisting> 54 </programlisting>
55 55
56 Here are 192 unaccepted connections and most likely new coming connections 56 Here are 192 unaccepted connections and most likely new coming connections
57 are discarding. Although the limit is 128 connections, FreeBSD allows 57 are discarding. Although the limit is 128 connections, FreeBSD allows
58 to receive 1.5 times connections than the limit before it starts to discard 58 receiving 1.5 times connections than the limit before it starts to discard
59 the new connections. You may increase the limit using 59 the new connections. You may increase the limit using
60 60
61 <programlisting> 61 <programlisting>
62 sysctl kern.ipc.somaxconn=4096 62 sysctl kern.ipc.somaxconn=4096
63 </programlisting> 63 </programlisting>
232 </para> 232 </para>
233 233
234 <para> 234 <para>
235 There is way not to use the jumbo clusters while serving static files: 235 There is way not to use the jumbo clusters while serving static files:
236 the <i>sendfile()</i> system call. 236 the <i>sendfile()</i> system call.
237 The sendfile allows to send a file or its part to a socket directly 237 The sendfile allows sending a file or its part to a socket directly
238 without reading the parts in an application buffer. 238 without reading the parts in an application buffer.
239 It creates the mbufs chain where the mbufs point to the file pages that are 239 It creates the mbufs chain where the mbufs point to the file pages that are
240 already present in FreeBSD cache memory, and passes the chain to 240 already present in FreeBSD cache memory, and passes the chain to
241 the TCP/IP stack. 241 the TCP/IP stack.
242 Thus, sendfile decreases both CPU usage by omitting two memory copy operations, 242 Thus, sendfile decreases both CPU usage by omitting two memory copy operations,