|
Lines 1101-1114
Link Here
|
| 1101 |
option dictates the amount of network mbufs available to the |
1101 |
option dictates the amount of network mbufs available to the |
| 1102 |
system. A heavily-trafficked server with a low number of MBUFs |
1102 |
system. A heavily-trafficked server with a low number of MBUFs |
| 1103 |
will hinder FreeBSD's ability. Each cluster represents |
1103 |
will hinder FreeBSD's ability. Each cluster represents |
| 1104 |
approximately 2K of memory, so a value of 1024 represents 2 |
1104 |
approximately 2 kB of memory, so a value of 1024 represents 2 |
| 1105 |
megabytes of kernel memory reserved for network buffers. A |
1105 |
megabytes of kernel memory reserved for network buffers. A |
| 1106 |
simple calculation can be done to figure out how many are |
1106 |
simple calculation can be done to figure out how many are |
| 1107 |
needed. If you have a web server which maxes out at 1000 |
1107 |
needed. If you have a web server which maxes out at 1000 |
| 1108 |
simultaneous connections, and each connection eats a 16K receive |
1108 |
simultaneous connections, and each connection eats a 16 kB receive |
| 1109 |
and 16K send buffer, you need approximately 32MB worth of |
1109 |
and 16 kB send buffer, you need approximately 32 MB worth of |
| 1110 |
network buffers to cover the web server. A good rule of thumb is |
1110 |
network buffers to cover the web server. A good rule of thumb is |
| 1111 |
to multiply by 2, so 32MBx2 = 64MB/2K = 32768.</para> |
1111 |
to multiply by 2, so 2x32 MB / 2 KB = 64 MB / 2 kB = 32768.</para> |
| 1112 |
</sect2> |
1112 |
</sect2> |
| 1113 |
</sect1> |
1113 |
</sect1> |