1<HTML> 2<HEAD> 3<TITLE> 4[Appendix B] B.3 Sizing Samba Servers</title><META NAME="DC.title" CONTENT=""><META NAME="DC.creator" CONTENT=""><META NAME="DC.publisher" CONTENT="O'Reilly & Associates, Inc."><META NAME="DC.date" CONTENT="1999-11-05T21:42:12Z"><META NAME="DC.type" CONTENT="Text.Monograph"><META NAME="DC.format" CONTENT="text/html" SCHEME="MIME"><META NAME="DC.source" CONTENT="" SCHEME="ISBN"><META NAME="DC.language" CONTENT="en-US"><META NAME="generator" CONTENT="Jade 1.1/O'Reilly DocBook 3.0 to HTML 4.0"></head> 5<BODY BGCOLOR="#FFFFFF" TEXT="#000000" link="#990000" vlink="#0000CC"> 6<table BORDER="0" CELLPADDING="0" CELLSPACING="0" width="90%"> 7<tr> 8<td width="25%" valign="TOP"> 9<img hspace=10 vspace=10 src="gifs/samba.s.gif" 10alt="Using Samba" align=left valign=top border=0> 11</td> 12<td height="105" valign="TOP"> 13<br> 14<H2>Using Samba</H2> 15<font size="-1"> 16Robert Eckstein, David Collier-Brown, Peter Kelly 17<br>1st Edition November 1999 18<br>1-56592-449-5, Order Number: 4495 19<br>416 pages, $34.95 20</font> 21<p> <a href="http://www.oreilly.com/catalog/samba/">Buy the hardcopy</a> 22<p><a href="index.html">Table of Contents</a> 23</td> 24</tr> 25</table> 26<hr size=1 noshade> 27<!--sample chapter begins --> 28 29<center> 30<DIV CLASS="htmlnav"> 31<TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0"> 32<TR> 33<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 34<A CLASS="sect1" HREF="appb_02.html" TITLE="B.2 Samba Tuning"> 35<IMG SRC="gifs/txtpreva.gif" ALT="Previous: B.2 Samba Tuning" BORDER="0"></a></td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 36<B> 37<FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1"> 38<A CLASS="appendix" REL="up" HREF="appb_01.html" TITLE="B. Samba Performance Tuning"> 39Appendix B<br> 40Samba Performance Tuning</a></font></b></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 41<A CLASS="appendix" HREF="appc_01.html" TITLE="C. Samba Configuration Option Quick Reference"> 42<IMG SRC="gifs/txtnexta.gif" ALT="Next: C. Samba Configuration Option Quick Reference" BORDER="0"></a></td></tr></table> <hr noshade size=1></center> 43</div> 44<blockquote> 45<div> 46<H2 CLASS="sect1"> 47<A CLASS="title" NAME="appb-22511"> 48B.3 Sizing Samba Servers</a></h2><P CLASS="para">Sizing is a way to prevent bottlenecks before they occur. The preferred way to do this is to know how many requests per second or how many kilobytes per second the clients will need, and ensure that all the components of the server provide at least that many.</p><DIV CLASS="sect2"> 49<H3 CLASS="sect2"> 50<A CLASS="title" NAME="appb-pgfId-948449"> 51B.3.1 The Bottlenecks</a></h3><P CLASS="para">The three primary bottlenecks you should worry about are CPU, disk I/O, and the network. For most machines, CPUs are rarely a bottleneck. A single Sun SPARC 10 CPU can start (and complete) between 700 and 800 I/O operations a second, giving approximately 5,600 to 6,400KB/s of throughput when the data averages around 8KBs (a common buffer size). A single Intel Pentium 133 can do less only because of somewhat slower cache and bus interfaces, not due to lack of CPU power. Purpose-designed Pentium servers, like some Compaq servers, will be able to start 700 operations per CPUs, on up to four CPUs.</p><P CLASS="para"> 52Too little memory, on the other hand, can easily be a bottleneck; each Samba process will use between 600 and 800KB on Intel Linux, and more on RISC CPUs. Having less will cause an increase in virtual memory paging and therefore a performance hit. On Solaris, where it has been measured, <EM CLASS="emphasis"> 53smbd</em> will use 2.6 MB for program and shared libraries, plus 768KB for each connected client. <EM CLASS="emphasis"> 54nmbd</em> occupies 2.1 MB, plus 496KB extra for its (single) auxiliary process.</p><P CLASS="para"> 55Hard disks will always bottleneck at a specific number of I/O operations per second: for example, each 7200 RPM SCSI disk is capable of performing 70 operations per second, for a throughput of 560KB/s; a 4800 RPM disk will perform fewer than 50, for a throughput of 360KB/s. A single IDE disk will do still fewer. If the disks are independent, or striped together in a RAID 1 configuration, they will each peak out at 400 to 560KB/s and will scale linearly as you add more. Note that this is true only of RAID 1. RAID levels other than 1 (striping) add extra overhead. </p><P CLASS="para"> 56Ethernets (and other networks) are obvious bottleneck: a 10 Mb/s (mega<EM CLASS="emphasis"> 57bits</em>/second) Ethernet will handle around 1100KB/s (kilo<EM CLASS="emphasis"> 58bytes</em>/s) using 1500-byte packets A 100 Mb/s Fast Ethernet will bottleneck below 65,000KB/s with the same packet size. FDDI, at 155 Mb/s will top out at approximately 6,250KB/s, but gives good service at even 100 percent load and transmits much larger packets (4KB).</p><P CLASS="para"> 59ATM should be much better, but as of the writing of this book it was too new to live up to its potential; it seems to deliver around 7,125 Mb/s using 9KB packets. </p><P CLASS="para"> 60Of course, there can be other bottlenecks: more than one IDE disk per controller is not good, as are more than three 3600 SCSI-I disks per slow/narrow controller, or more than three 7200 SCSI-II disks per SCSI-II fast/wide controller. RAID 5 is also slow, as it requires twice as many writes as independent disks or RAID 1.</p><P CLASS="para"> 61After the second set of Ethernets and the second disk controller, start worrying about bus bandwidth, especially if you are using ISA/EISA buses.</p></div><DIV CLASS="sect2"> 62<H3 CLASS="sect2"> 63<A CLASS="title" NAME="appb-pgfId-948459"> 64B.3.2 Reducing Bottlenecks </a></h3><P CLASS="para">From the information above we can work out a model that will tell us the maximum capability of a given machine. The data is mostly taken from Brian Wong's <CITE CLASS="citetitle"> 65Configuration and Capacity Planning for Solaris Servers</cite>,<CITE CLASS="citetitle"> 66[<A CLASS="footnote" HREF="#appb-pgfId-951214">1</a>]</cite> so there is a slight Sun bias to our examples.</p><P CLASS="para"> 67A word of warning: this is not a complete model. Don't assume that this model will predict every bottleneck or even be within 10 percent in its estimates. A model to predict performance instead of one to warn you of bottlenecks would be much more complex and would contain rules like "not more than three disks per SCSI chain". (A good book on real models is Raj Jain's <CITE CLASS="citetitle"> 68The Art of Computer Systems Performance Analysis</cite>.[<A CLASS="footnote" HREF="#appb-pgfId-951230">2</a>]) With that warning, we present the system in <A CLASS="xref" HREF="appb_03.html#appb-98866"> 69Figure B.2</a>. </p><BLOCKQUOTE CLASS="footnote"> 70<DIV CLASS="footnote"> 71<P CLASS="para"> 72<A CLASS="footnote" NAME="appb-pgfId-951230">[2]</a> See Jain. Raj, <EM CLASS="emphasis"> 73The Art of Computer Systems Performance Analysis</em>, New York, NY (John Wiley and Sons), 1991, ISBN 0-47-150336-3.</p></div></blockquote><H4 CLASS="figure"> 74<A CLASS="title" NAME="appb-98866"> 75Figure B.2: Data flow through a Samba server, with possible bottlenecks</a></h4><IMG CLASS="graphic" SRC="figs/sam.ab02.gif" ALT="Figure B.2"><P CLASS="para"> 76The flow of data should be obvious. For example, on a read, data flows from the disk, across the bus, through or past the CPU, and to the network interface card (NIC). It is then broken up into packets and sent across the network. Our strategy here is to follow the data through the system and see what bottlenecks will choke it off. Believe it or not, it's rather easy to make a set of tables that list the maximum performance of common disks, CPUs, and network cards on a system. So that's exactly what we're going to do.</p><P CLASS="para"> 77Let's take a concrete example: a Linux Pentium 133 MHz machine with a single 7200 RPM data disk, a PCI bus, and a 10-Mb/s Ethernet card. This is a perfectly reasonable server. We start with <A CLASS="xref" HREF="appb_03.html#appb-78077"> 78Table B.2</a>, which describes the hard drive - the first potential bottleneck in the system. </p><br> 79<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 80<CAPTION CLASS="table"> 81<A CLASS="title" NAME="appb-78077"> 82Table B.2: Disk Throughput </a></caption><THEAD CLASS="thead"> 83<TR CLASS="row" VALIGN="TOP"> 84<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 85<P CLASS="para"> 86Disk RPM</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 87<P CLASS="para"> 88I/O Operations/second</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 89<P CLASS="para"> 90KB/second</p></th></tr></thead><TBODY CLASS="tbody"> 91<TR CLASS="row" VALIGN="TOP"> 92<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 93<P CLASS="para"> 947200</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 95<P CLASS="para"> 9670</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 97<P CLASS="para"> 98560</p></td></tr><TR CLASS="row" VALIGN="TOP"> 99<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 100<P CLASS="para"> 1014800</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 102<P CLASS="para"> 10360</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 104<P CLASS="para"> 105480</p></td></tr><TR CLASS="row" VALIGN="TOP"> 106<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 107<P CLASS="para"> 1083600</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 109<P CLASS="para"> 11040</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 111<P CLASS="para"> 112320</p></td></tr></tbody></table><P CLASS="para"> 113Disk throughput is the number of kilobytes of data that a disk can transfer per second. It is computed from the number of 8KB I/O operations per second a disk can perform, which in turn is strongly influenced by disk RPM and bit density. In effect, the question is: how much data can pass below the drive heads in one second? With a single 7200 RPM disk, the example server will give us 70 I/O operations per second at roughly 560KB/s.</p><P CLASS="para"> 114The second possible bottleneck is the CPU. The data doesn't actually flow through the CPU on any modern machines, so we have to compute throughput somewhat indirectly.</p><P CLASS="para"> 115The CPU has to issue I/O requests and handle the interrupts coming back, then transfer the data across the bus to the network card. From much past experimentation, we know that the overhead that dominates the processing is consistently in the filesystem code, so we can ignore the other software being run. We compute the throughput by just multiplying the (measured) number of file I/O operations per second that a CPU can process by the same 8K average request size. This gives us the results shown in <A CLASS="xref" HREF="appb_03.html#appb-42029"> 116Table B.3</a>. </p><br> 117<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 118<CAPTION CLASS="table"> 119<A CLASS="title" NAME="appb-42029"> 120Table B.3: CPU Throughput </a></caption><THEAD CLASS="thead"> 121<TR CLASS="row" VALIGN="TOP"> 122<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 123<P CLASS="para"> 124CPU</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 125<P CLASS="para"> 126I/O Operations/second</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 127<P CLASS="para"> 128KB/second</p></th></tr></thead><TBODY CLASS="tbody"> 129<TR CLASS="row" VALIGN="TOP"> 130<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 131<P CLASS="para"> 132Intel Pentium 133</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 133<P CLASS="para"> 134700</p> 135</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 136<P CLASS="para"> 1375,600</p> 138</td></tr><TR CLASS="row" VALIGN="TOP"> 139<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 140<P CLASS="para"> 141Dual Pentium 133</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 142<P CLASS="para"> 1431,200</p> 144</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 145<P CLASS="para"> 1469,600</p> 147</td></tr><TR CLASS="row" VALIGN="TOP"> 148<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 149<P CLASS="para"> 150Sun SPARC II</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 151<P CLASS="para"> 152660</p> 153</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 154<P CLASS="para"> 1555,280</p> 156</td></tr><TR CLASS="row" VALIGN="TOP"> 157<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 158<P CLASS="para"> 159Sun SPARC 10</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 160<P CLASS="para"> 161750</p> 162</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 163<P CLASS="para"> 1646,000</p> 165</td></tr><TR CLASS="row" VALIGN="TOP"> 166<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 167<P CLASS="para"> 168Sun Ultra 200</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 169<P CLASS="para"> 1702,650</p> 171</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 172<P CLASS="para"> 17321,200</p> 174</td></tr></tbody></table><P CLASS="para"> 175Now we put the disk and the CPU together: in the Linux example, we have a single 7200 RPM disk, which can give us 560KB/s, and a CPU capable of starting 700 I/O operations, which could give us 5600KB/s. So far, as you would expect, our bottleneck is clearly going to be the hard disk.</p><P CLASS="para"> 176The last potential bottleneck is the network. If the network speed is below 100 Mb/s, the bottleneck will be the network speed. After that, the design of the network card is more likely to slow us down. <A CLASS="xref" HREF="appb_03.html#appb-67604"> 177Table B.4</a> shows us the average throughput of many types of data networks. Although network speed is conventionally measured in bits per second, <A CLASS="xref" HREF="appb_03.html#appb-67604"> 178Table B.4</a> lists bytes per second to make comparison with the disk and CPU (<A CLASS="xref" HREF="appb_03.html#appb-78077">Table B.2</a> and <A CLASS="xref" HREF="appb_03.html#appb-42029"> 179Table B.3</a>) easier.</p><br> 180<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 181<CAPTION CLASS="table"> 182<A CLASS="title" NAME="appb-67604"> 183Table B.4: Network Throughput </a></caption><THEAD CLASS="thead"> 184<TR CLASS="row" VALIGN="TOP"> 185<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 186<P CLASS="para"> 187Network Type</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 188<P CLASS="para"> 189KB/second</p></th></tr></thead><TBODY CLASS="tbody"> 190<TR CLASS="row" VALIGN="TOP"> 191<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 192<P CLASS="para"> 193 ISDN </p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 194<P CLASS="para"> 195 16 </p></td></tr><TR CLASS="row" VALIGN="TOP"> 196<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 197<P CLASS="para"> 198 T1 </p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 199<P CLASS="para"> 200 197 </p></td></tr><TR CLASS="row" VALIGN="TOP"> 201<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 202<P CLASS="para"> 203 Ethernet 10m </p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 204<P CLASS="para"> 205 1,113 </p></td></tr><TR CLASS="row" VALIGN="TOP"> 206<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 207<P CLASS="para"> 208 Token ring </p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 209<P CLASS="para"> 210 1,500 </p></td></tr><TR CLASS="row" VALIGN="TOP"> 211<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 212<P CLASS="para"> 213 FDDI </p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 214<P CLASS="para"> 215 6,250 </p></td></tr><TR CLASS="row" VALIGN="TOP"> 216<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 217<P CLASS="para"> 218 Ethernet 100m </p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 219<P CLASS="para"> 220 6,500[<A CLASS="footnote" HREF="#appb-pgfId-960131">3</a>]</p></td></tr><TR CLASS="row" VALIGN="TOP"> 221<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 222<P CLASS="para"> 223 ATM 155 </p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 224<P CLASS="para"> 225 7,125a </p></td></tr></tbody></table><BLOCKQUOTE CLASS="footnote"> 226<DIV CLASS="footnote"> 227<P CLASS="para"> 228<A CLASS="footnote" NAME="appb-pgfId-960131">[3]</a> These will increase. For example, Crays, Sun Ultras, and DEC/Compaq Alphas already have bettered these figures.</p></div></blockquote><P CLASS="para"> 229In the running example, we have a bottleneck at 560KB/s due to the disk. <A CLASS="xref" HREF="appb_03.html#appb-67604"> 230Table B.4</a> shows us that a standard 10 megabit per second Ethernet (1,113KB/s) is far faster than the disk. Therefore, the hard disk is still the limiting factor. (This scenario, by the way, is very common.) Just by looking at the tables, we can predict that small servers won't have CPU problems, and that large ones with multiple CPUs will support striping and multiple Ethernets long before they start running out of CPU power. This, in fact, is exactly what happens.</p></div><DIV CLASS="sect2"> 231<H3 CLASS="sect2"> 232<A CLASS="title" NAME="appb-pgfId-948657"> 233B.3.3 Practical Examples</a></h3><P CLASS="para"> 234An example from <EM CLASS="emphasis"> 235Configuration and Capacity Planning for Solaris Servers</em> (Wong) shows that a dual-processor SPARCstation 20/712 with four Ethernets and six 2.1 GB disks will spend all its time waiting for the disks to return some data. If it was loaded with disks (Brian Wong suggests as many as 34 of them), it would still be held below 1,200KB/s by the Ethernet cards. To get the performance the machine is capable of, we would need to configure multiple Ethernets, 100 Mbps Fast Ethernet, or 155 Mbps FDDI. </p><P CLASS="para"> 236The progression you'd work through to get that conclusion looks something like <A CLASS="xref" HREF="appb_03.html#appb-26613"> 237Table B.5</a>. </p><br> 238<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 239<CAPTION CLASS="table"> 240<A CLASS="title" NAME="appb-26613"> 241Table B.5: Tuning a Medium-Sized Server </a></caption><THEAD CLASS="thead"> 242<TR CLASS="row" VALIGN="TOP"> 243<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 244<P CLASS="para"> 245Machine</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 246<P CLASS="para"> 247Disk Throughput</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 248<P CLASS="para"> 249CPU Throughput</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 250<P CLASS="para"> 251Network Throughput</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 252<P CLASS="para"> 253Actual Throughput</p></th></tr></thead><TBODY CLASS="tbody"> 254<TR CLASS="row" VALIGN="TOP"> 255<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 256<P CLASS="para"> 257Dual SPARC 10, 1 disk </p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 258<P CLASS="para"> 259<EM CLASS="emphasis"> 260560</em></p> 261</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 262<P CLASS="para"> 2636000 </p> 264</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 265<P CLASS="para"> 2661,113 </p> 267</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 268<P CLASS="para"> 269560 </p> 270</td></tr><TR CLASS="row" VALIGN="TOP"> 271<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 272<P CLASS="para"> 273Add 5 more disks </p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 274<P CLASS="para"> 2753,360 </p> 276</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 277<P CLASS="para"> 2786000</p> 279</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 280<P CLASS="para"> 281<EM CLASS="emphasis"> 2821,113 </em></p> 283</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 284<P CLASS="para"> 2851,113 </p> 286</td></tr><TR CLASS="row" VALIGN="TOP"> 287<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 288<P CLASS="para"> 289Add 3 more Ethernets </p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 290<P CLASS="para"> 291<EM CLASS="emphasis"> 2923,360 </em></p> 293</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 294<P CLASS="para"> 29516000</p> 296</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 297<P CLASS="para"> 2984,452 </p> 299</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 300<P CLASS="para"> 3013,360 </p> 302</td></tr><TR CLASS="row" VALIGN="TOP"> 303<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 304<P CLASS="para"> 305Change to using a 20-disk array </p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 306<P CLASS="para"> 30711,200 </p> 308</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 309<P CLASS="para"> 3106000 </p> 311</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 312<P CLASS="para"> 313<EM CLASS="emphasis"> 3144,452</em> </p> 315</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 316<P CLASS="para"> 3174,452 </p> 318</td></tr><TR CLASS="row" VALIGN="TOP"> 319<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 320<P CLASS="para"> 321Use dual 100 Mbps ether </p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 322<P CLASS="para"> 323<EM CLASS="emphasis"> 32411,200 </em></p> 325</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 326<P CLASS="para"> 3276000 </p> 328</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 329<P CLASS="para"> 33013,000 </p> 331</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 332<P CLASS="para"> 33311,200</p> 334</td></tr></tbody></table><P CLASS="para"> 335Initially, the bottleneck is the disk with only 560 MB/s of throughput available. Our solution is to add five more disks. This gives us more throughput on the disks than on the Ethernet, so then the Ethernet becomes the problem. Consequently, as we continue to expand, we go back and forth several times between these two. As you add disks, CPUs, and network cards, the bottleneck moves. Essentially, the strategy is to add more equipment to try to avoid each bottleneck until you reach your target performance, or (unfortunately) you either can't add any more or run out of money.</p><P CLASS="para"> 336Our experience bears out this kind of calculation; a large SPARC 10 file server that one author maintained was quite capable of saturating an Ethernet plus about a third of an FDDI ring when using two processors. It did nearly as well with a single processor, albeit with a fast operating system and judicious over-optimization.</p><P CLASS="para"> 337The same process applies to other brands of purpose-designed servers. We found the same rules applied to DECstation 2100s as to the newest Alphas or Compaqs, old MIPS 3350s and new SGI O2s. In general, a machine offering multi-CPU server configurations will have enough bus bandwidth and CPU power to reliably bottleneck on hard disk I/O when doing file service. As one would hope, considering the cost!</p></div><DIV CLASS="sect2"> 338<H3 CLASS="sect2"> 339<A CLASS="title" NAME="appb-pgfId-948730"> 340B.3.4 How Many Clients can Samba Handle?</a></h3><P CLASS="para"> 341Well, that depends entirely on how much data each user consumes. A small server with three SCSI-1 disks, which can serve about 960KB/s of data, will support between 36 and 80 clients in an ordinary office environment where they are typically loading, and saving equal-sized spreadsheets or word processing documents (36 clients � 2.3 transfers/second � 12k file 1 MB/s).</p><P CLASS="para"> 342On the same server in a development environment with programmers running a fairly heavy edit-compile-test cycle, one can easily see requests for 1 MB/s, limiting the server to 25 or fewer clients. To take this a bit further, an imaging system whose clients each require 10 MB/s will perform poorly no matter how big a server is if they're all on a 10 MB/s Ethernet. And so on. </p><P CLASS="para"> 343If you don't know how much data an average user consumes, you can size your Samba servers by patterning them after existing NFS, Netware, or LAN Manager servers. You should be especially careful that the new servers have as many disks and disk controllers as the ones you've copied. This technique is appropriately called "punt and hope."</p><P CLASS="para"> 344If you know how many clients an existing server can support, you're in <EM CLASS="emphasis"> 345much</em> better shape. You can analyze the server to see what its maximum capacity is and use that to estimate how much data they must be demanding. For example, if serving home directories to 30 PCs from a PC server with two IDE disks is just too slow, and 25 clients is about right, then you can safely assume you're bottlenecked on Ethernet I/O (approximately 375KB) rather than disk I/O (up to 640KB). If so, you can then conclude that the clients are demanding 15 (that is, 375/25)KB/s on average.</p><P CLASS="para"> 346Supporting a new lab of 75 clients will mean you'll need 1,125KB/s, spread over multiple (preferably three) Ethernets, and a server with at least three 7200 RPM disks and a CPU capable of keeping up. These requirements can be met by a Pentium 133 or above with the bus architecture to drive them all at full speed (e.g., PCI).</p><P CLASS="para"> 347A custom-built PC server or a multiprocessor-capable workstation like a Sun Sparc, a DEC/Compaq Alpha, an SGI, or the like, would scale up easier, as would a machine with fast Ethernet, plus a switching hub to drive the client machines on individual 10 MB/s Ethernets.</p><DIV CLASS="sect3"> 348<H4 CLASS="sect3"> 349<A CLASS="title" NAME="appb-pgfId-948739"> 350B.3.4.1 How to guess</a></h4><P CLASS="para"> 351If you have no idea at all what you need, the best thing is to try to guess based on someone else's experience. Each individual client machine can average from less than 1 I/O per second (normal PC or Mac used for sales/accounting) to as much as 4 (fast workstation using large applications). A fast workstation running a compiler can happily average 3-4 MB/s in data transfer requests, and an imaging system can demand even more. </p><P CLASS="para"> 352Our recommendation? Spy on someone with a similar configuration and try to estimate their bandwidth requirements from their bottlenecks and the volume of the screams from their users. We also recommend Brian Wong's <CITE CLASS="citetitle"> 353Configuration and Capacity Planning for Solaris Servers</cite>. While he uses Sun Solaris foremost in his examples, his bottlenecks are disks and network cards, which are common among all the major vendors. His tables for FTP servers also come very close to what we calculated for Samba servers, and make a good starting point.</p></div></div><DIV CLASS="sect2"> 354<H3 CLASS="sect2"> 355<A CLASS="title" NAME="appb-90359">B.3.5 Measurement Forms</a></h3><P CLASS="para"> 356<A CLASS="xref" HREF="appb_03.html#appb-82208">Table B.6</a> and <A CLASS="xref" HREF="appb_03.html#appb-34846"> 357Table B.7</a> are empty tables that you can use for copying and recording data. The bottleneck calculation in the previous example can be done in a spreadsheet, or manually with Table B-8. If Samba is as good as or better than FTP, and if there aren't any individual test runs that are much different from the average, you have a well-configured system. If loopback isn't much faster than anything else, you have a problem with your TCP/IP software. If both FTP and Samba are slow, you probably have a problem with your networking: a faulty Ethernet card will produce this, as will accidentally setting an Ethernet card to half-duplex when it's not connected to a half-duplex hub. Remember that CPU and disk speeds are commonly measured in bytes, network speeds in bits. </p><P CLASS="para"> 358We've included columns for both bytes and bits in the tables. In the last column, we compare results to 10 Mb/s because that's the speed of a traditional Ethernet. <EM CLASS="emphasis"> 359 </em></p><br> 360<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 361<CAPTION CLASS="table"> 362<A CLASS="title" NAME="appb-82208"> 363Table B.6: Ethernet Interface to Same Host: FTP </a></caption><THEAD CLASS="thead"> 364<TR CLASS="row" VALIGN="TOP"> 365<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 366<P CLASS="para"> 367Run No</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 368<P CLASS="para"> 369Size in Bytes</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 370<P CLASS="para"> 371Time (sec) </p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 372<P CLASS="para"> 373Bytes/sec</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 374<P CLASS="para"> 375Bits/sec</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 376<P CLASS="para"> 377% of 10 Mb/s</p></th></tr></thead><TBODY CLASS="tbody"> 378<TR CLASS="row" VALIGN="TOP"> 379<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 380<P CLASS="para"> 3811</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 382<P CLASS="para"> 383</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 384<P CLASS="para"> 385</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 386<P CLASS="para"> 387</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 388<P CLASS="para"> 389</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 390<P CLASS="para"> 391</p></td></tr><TR CLASS="row" VALIGN="TOP"> 392<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 393<P CLASS="para"> 3942</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 395<P CLASS="para"> 396</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 397<P CLASS="para"> 398</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 399<P CLASS="para"> 400</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 401<P CLASS="para"> 402</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 403<P CLASS="para"> 404</p></td></tr><TR CLASS="row" VALIGN="TOP"> 405<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 406<P CLASS="para"> 4073</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 408<P CLASS="para"> 409</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 410<P CLASS="para"> 411</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 412<P CLASS="para"> 413</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 414<P CLASS="para"> 415</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 416<P CLASS="para"> 417</p></td></tr><TR CLASS="row" VALIGN="TOP"> 418<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 419<P CLASS="para"> 4204</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 421<P CLASS="para"> 422</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 423<P CLASS="para"> 424</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 425<P CLASS="para"> 426</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 427<P CLASS="para"> 428</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 429<P CLASS="para"> 430</p></td></tr><TR CLASS="row" VALIGN="TOP"> 431<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 432<P CLASS="para"> 4335</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 434<P CLASS="para"> 435</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 436<P CLASS="para"> 437</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 438<P CLASS="para"> 439</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 440<P CLASS="para"> 441</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 442<P CLASS="para"> 443</p></td></tr><TR CLASS="row" VALIGN="TOP"> 444<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 445<P CLASS="para"> 446Average:</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 447<P CLASS="para"> 448</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 449<P CLASS="para"> 450</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 451<P CLASS="para"> 452</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 453<P CLASS="para"> 454</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 455<P CLASS="para"> 456</p></td></tr><TR CLASS="row" VALIGN="TOP"> 457<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 458<P CLASS="para"> 459Deviation:</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 460<P CLASS="para"> 461</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 462<P CLASS="para"> 463</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 464<P CLASS="para"> 465</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 466<P CLASS="para"> 467</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 468<P CLASS="para"> 469</p></td></tr></tbody></table><br> 470<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 471<CAPTION CLASS="table"> 472<A CLASS="title" NAME="appb-34846"> 473Table B.7: Ethernet Interface to Same Host: FTP </a></caption><THEAD CLASS="thead"> 474<TR CLASS="row" VALIGN="TOP"> 475<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 476<P CLASS="para"> 477Run No</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 478<P CLASS="para"> 479Size in Bytes</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 480<P CLASS="para"> 481Time, sec </p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 482<P CLASS="para"> 483Bytes/sec</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 484<P CLASS="para"> 485Bits/sec</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 486<P CLASS="para"> 487% of 10 Mb/s</p></th></tr></thead><TBODY CLASS="tbody"> 488<TR CLASS="row" VALIGN="TOP"> 489<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 490<P CLASS="para"> 4911</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 492<P CLASS="para"> 493</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 494<P CLASS="para"> 495</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 496<P CLASS="para"> 497</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 498<P CLASS="para"> 499</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 500<P CLASS="para"> 501</p></td></tr><TR CLASS="row" VALIGN="TOP"> 502<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 503<P CLASS="para"> 5042</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 505<P CLASS="para"> 506</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 507<P CLASS="para"> 508</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 509<P CLASS="para"> 510</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 511<P CLASS="para"> 512</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 513<P CLASS="para"> 514</p></td></tr><TR CLASS="row" VALIGN="TOP"> 515<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 516<P CLASS="para"> 5173</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 518<P CLASS="para"> 519</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 520<P CLASS="para"> 521</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 522<P CLASS="para"> 523</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 524<P CLASS="para"> 525</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 526<P CLASS="para"> 527</p></td></tr><TR CLASS="row" VALIGN="TOP"> 528<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 529<P CLASS="para"> 5304</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 531<P CLASS="para"> 532</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 533<P CLASS="para"> 534</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 535<P CLASS="para"> 536</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 537<P CLASS="para"> 538</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 539<P CLASS="para"> 540</p></td></tr><TR CLASS="row" VALIGN="TOP"> 541<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 542<P CLASS="para"> 5435</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 544<P CLASS="para"> 545</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 546<P CLASS="para"> 547</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 548<P CLASS="para"> 549</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 550<P CLASS="para"> 551</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 552<P CLASS="para"> 553</p></td></tr><TR CLASS="row" VALIGN="TOP"> 554<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 555<P CLASS="para"> 556Average:</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 557<P CLASS="para"> 558</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 559<P CLASS="para"> 560</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 561<P CLASS="para"> 562</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 563<P CLASS="para"> 564</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 565<P CLASS="para"> 566</p></td></tr><TR CLASS="row" VALIGN="TOP"> 567<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 568<P CLASS="para"> 569Deviation:</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 570<P CLASS="para"> 571</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 572<P CLASS="para"> 573</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 574<P CLASS="para"> 575</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 576<P CLASS="para"> 577</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 578<P CLASS="para"> 579</p></td></tr></tbody></table><br> 580<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 581<CAPTION CLASS="table"> 582<A CLASS="title" NAME="appb-51003"> 583Table B.8: Bottleneck Calculation Table</a></caption><THEAD CLASS="thead"> 584<TR CLASS="row" VALIGN="TOP"> 585<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 586<P CLASS="para"> 587CPU</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 588<P CLASS="para"> 589CPUThroughput</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 590<P CLASS="para"> 591Number of Disks</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 592<P CLASS="para"> 593Disk Throughput</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 594<P CLASS="para"> 595Number of Networks</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 596<P CLASS="para"> 597Network Throughput</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 598<P CLASS="para"> 599Total Throughput</p></th></tr></thead><TBODY CLASS="tbody"> 600<TR CLASS="row" VALIGN="TOP"> 601<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 602<P CLASS="para"> 603</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 604<P CLASS="para"> 605</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 606<P CLASS="para"> 607</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 608<P CLASS="para"> 609</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 610<P CLASS="para"> 611</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 612<P CLASS="para"> 613</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 614<P CLASS="para"> 615</p></td></tr><TR CLASS="row" VALIGN="TOP"> 616<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 617<P CLASS="para"> 618</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 619<P CLASS="para"> 620</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 621<P CLASS="para"> 622</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 623<P CLASS="para"> 624</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 625<P CLASS="para"> 626</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 627<P CLASS="para"> 628</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 629<P CLASS="para"> 630</p></td></tr><TR CLASS="row" VALIGN="TOP"> 631<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 632<P CLASS="para"> 633</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 634<P CLASS="para"> 635</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 636<P CLASS="para"> 637</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 638<P CLASS="para"> 639</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 640<P CLASS="para"> 641</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 642<P CLASS="para"> 643</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 644<P CLASS="para"> 645</p></td></tr><TR CLASS="row" VALIGN="TOP"> 646<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 647<P CLASS="para"> 648</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 649<P CLASS="para"> 650</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 651<P CLASS="para"> 652</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 653<P CLASS="para"> 654</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 655<P CLASS="para"> 656</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 657<P CLASS="para"> 658</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 659<P CLASS="para"> 660</p></td></tr><TR CLASS="row" VALIGN="TOP"> 661<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 662<P CLASS="para"> 663</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 664<P CLASS="para"> 665</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 666<P CLASS="para"> 667</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 668<P CLASS="para"> 669</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 670<P CLASS="para"> 671</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 672<P CLASS="para"> 673</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 674<P CLASS="para"> 675</p></td></tr><TR CLASS="row" VALIGN="TOP"> 676<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 677<P CLASS="para"> 678</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 679<P CLASS="para"> 680</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 681<P CLASS="para"> 682</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 683<P CLASS="para"> 684</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 685<P CLASS="para"> 686</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 687<P CLASS="para"> 688</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 689<P CLASS="para"> 690</p></td></tr><TR CLASS="row" VALIGN="TOP"> 691<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 692<P CLASS="para"> 693</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 694<P CLASS="para"> 695</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 696<P CLASS="para"> 697</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 698<P CLASS="para"> 699</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 700<P CLASS="para"> 701</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 702<P CLASS="para"> 703</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 704<P CLASS="para"> 705</p></td></tr></tbody></table><P CLASS="para"> 706In <A CLASS="xref" HREF="appb_03.html#appb-51003"> 707Table B.8</a>:</p><UL CLASS="itemizedlist"> 708<LI CLASS="listitem"> 709<P CLASS="para"> 710<A CLASS="listitem" NAME="appb-pgfId-960325"> 711</a>CPU throughput = (KB/second from Figure 6-5) � (number of CPUs)</p></li><LI CLASS="listitem"> 712<P CLASS="para"> 713<A CLASS="listitem" NAME="appb-pgfId-960301"> 714</a>Disk throughput = (KB/second from Figure 6-4) � (number of disks)</p></li><LI CLASS="listitem"> 715<P CLASS="para"> 716<A CLASS="listitem" NAME="appb-pgfId-960305"> 717</a>Network throughput = (KB/second from Figure 6-6) � (number of networks)</p></li><LI CLASS="listitem"> 718<P CLASS="para"> 719<A CLASS="listitem" NAME="appb-pgfId-960306"> 720</a>Total throughput = min (Disk, CPU, and Network throughput)</p></li></ul><P CLASS="para"> 721A typical test, in this case for an FTP <CODE CLASS="literal"> 722get</code>, would be entered as in Table B-9: <EM CLASS="emphasis"> 723 </em> </p><br> 724<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 725<CAPTION CLASS="table"> 726<A CLASS="title" NAME="appb-37370"> 727Table B.9: Ethernet Interface to Same Host: FTP </a></caption><THEAD CLASS="thead"> 728<TR CLASS="row" VALIGN="TOP"> 729<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 730<P CLASS="para"> 731Run No</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 732<P CLASS="para"> 733Size in Bytes</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 734<P CLASS="para"> 735Time, sec </p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 736<P CLASS="para"> 737Bytes/sec</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 738<P CLASS="para"> 739Bits/sec</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 740<P CLASS="para"> 741% of 10 Mb/s</p></th></tr></thead><TBODY CLASS="tbody"> 742<TR CLASS="row" VALIGN="TOP"> 743<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 744<P CLASS="para"> 7451</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 746<P CLASS="para"> 7471812898</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 748<P CLASS="para"> 7492.3</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 750<P CLASS="para"> 751761580</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 752<P CLASS="para"> 753</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 754<P CLASS="para"> 755</p></td></tr><TR CLASS="row" VALIGN="TOP"> 756<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 757<P CLASS="para"> 7582</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 759<P CLASS="para"> 760</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 761<P CLASS="para"> 7622.3</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 763<P CLASS="para"> 764767820</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 765<P CLASS="para"> 766</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 767<P CLASS="para"> 768</p></td></tr><TR CLASS="row" VALIGN="TOP"> 769<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 770<P CLASS="para"> 7713</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 772<P CLASS="para"> 773</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 774<P CLASS="para"> 7752.4</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 776<P CLASS="para"> 777747420</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 778<P CLASS="para"> 779</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 780<P CLASS="para"> 781</p></td></tr><TR CLASS="row" VALIGN="TOP"> 782<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 783<P CLASS="para"> 7844</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 785<P CLASS="para"> 786</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 787<P CLASS="para"> 7882.3</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 789<P CLASS="para"> 790760020</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 791<P CLASS="para"> 792</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 793<P CLASS="para"> 794</p></td></tr><TR CLASS="row" VALIGN="TOP"> 795<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 796<P CLASS="para"> 7975</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 798<P CLASS="para"> 799</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 800<P CLASS="para"> 8012.3</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 802<P CLASS="para"> 803772700</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 804<P CLASS="para"> 805</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 806<P CLASS="para"> 807</p></td></tr><TR CLASS="row" VALIGN="TOP"> 808<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 809<P CLASS="para"> 810Average:</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 811<P CLASS="para"> 812</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 813<P CLASS="para"> 8142.32</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 815<P CLASS="para"> 816777310</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 817<P CLASS="para"> 8186218480</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 819<P CLASS="para"> 82062</p></td></tr><TR CLASS="row" VALIGN="TOP"> 821<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 822<P CLASS="para"> 823Deviation:</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 824<P CLASS="para"> 825</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 826<P CLASS="para"> 8270.04</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 828<P CLASS="para"> 829</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 830<P CLASS="para"> 831</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 832<P CLASS="para"> 833</p></td></tr></tbody></table><P CLASS="para"> 834The Sparc example we used earlier would look like Table B-10. <EM CLASS="emphasis"> 835 </em> </p><P CLASS="para"> 836</p></div></div></blockquote> 837<div> 838<center> 839<hr noshade size=1><TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0"> 840<TR> 841<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 842<A CLASS="sect1" HREF="appb_02.html" TITLE="B.2 Samba Tuning"> 843<IMG SRC="gifs/txtpreva.gif" ALT="Previous: B.2 Samba Tuning" BORDER="0"></a></td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 844<A CLASS="book" HREF="index.html" TITLE=""> 845<IMG SRC="gifs/txthome.gif" ALT="" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 846<A CLASS="appendix" HREF="appc_01.html" TITLE="C. Samba Configuration Option Quick Reference"> 847<IMG SRC="gifs/txtnexta.gif" ALT="Next: C. Samba Configuration Option Quick Reference" BORDER="0"></a></td></tr><TR> 848<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 849B.2 Samba Tuning</td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 850<A CLASS="index" HREF="inx.html" TITLE="Book Index"> 851<IMG SRC="gifs/index.gif" ALT="Book Index" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 852C. Samba Configuration Option Quick Reference</td></tr></table><hr noshade size=1></center> 853</div> 854 855<!-- End of sample chapter --> 856<CENTER> 857<FONT SIZE="1" FACE="Verdana, Arial, Helvetica"> 858<A HREF="http://www.oreilly.com/"> 859<B>O'Reilly Home</B></A> <B> | </B> 860<A HREF="http://www.oreilly.com/sales/bookstores"> 861<B>O'Reilly Bookstores</B></A> <B> | </B> 862<A HREF="http://www.oreilly.com/order_new/"> 863<B>How to Order</B></A> <B> | </B> 864<A HREF="http://www.oreilly.com/oreilly/contact.html"> 865<B>O'Reilly Contacts<BR></B></A> 866<A HREF="http://www.oreilly.com/international/"> 867<B>International</B></A> <B> | </B> 868<A HREF="http://www.oreilly.com/oreilly/about.html"> 869<B>About O'Reilly</B></A> <B> | </B> 870<A HREF="http://www.oreilly.com/affiliates.html"> 871<B>Affiliated Companies</B></A><p> 872<EM>© 1999, O'Reilly & Associates, Inc.</EM> 873</FONT> 874</CENTER> 875</BODY> 876</html> 877