Slashdot Mirror


Performance Tuning for Linux Servers

swsuehr writes "Performance Tuning for Linux Servers provides information and resources for Linux administrators looking for a guide to the background, options, and commands available for enhancing the performance of a Linux server." Clear enough -- but read on for Suering's review of the book to see if it might help you at that task. Performance Tuning for Linux Servers author Johnson, Huizenga, Pulavarty, et al pages 547 publisher IBM Press/Pearson rating 8 reviewer Steve Suehring ISBN 013144753X summary Information and techniques for performance enhancement of Linux servers.

The Particulars

The book is 547 pages. Of that total, 507 are the content of the book while 13 pages are used for an Appendix. The Appendix is provides a look at some of the tunable parameters in the Linux kernel through interfaces such as sysctl and /proc. This appendix alone makes the book good reference material. The book is divided into five sections including an overview of Linux, performance analysis tools, system tuning, performance characterization, and case studies. The book covers the 2.6 kernel series and the 2.4 series where appropriate.

The book is published under the IBM Press brand but is most definitely not an IBM-centric book. The book is largely, though not completely, distribution neutral. Distribution neutrality means that you don't have to be running any certain flavor of Linux in order to follow the examples in the book. The book covers Red Hat Enterprise and Novell SuSE Linux Enterprise but does so in a non-intrusive manner such that most of the references are simply used to illustrate a certain point rather than requiring the reader to follow a step-by-step process. For instance, BSD and System V initialization processes are both covered in Chapter 1.

The book wasn't written by a single author. In fact, it appears to be the work of numerous authors, each contributing certain sections or chapters. With this type of format it's very easy for a book to lack cohesiveness. This isn't the case with Performance Tuning for Linux Servers where the material shares the same tone throughout. Truthfully, I didn't know that there were so many contributors until I was writing the review, that's how well the material flows together.

A Look Inside

Performance Tuning for Linux Servers combines both theory and practice. The essential background information is given for each subject but interwoven with practical knowledge. For example, Chapter 8 describes tuning of the scheduler including a list of tunable parameters with both a description and an effect. From p. 193:

"MAX_SLEEP_AVG"

"Description: The value of this parameter is the maximum sleep average a task can accumulate for the purposes of calculating the scheduling bonus. A task with this sleep average gets the maximum bonus as indicated by PRIO_BONUS_RATIO." "Effect: If the value of this parameter is increased, tasks need to accumulate a larger sleep average to get the same priority bonus. Decreasing the value has the opposite effect."

Several performance analysis tools are covered in some detail. These can be invaluable when trying to track down performance problems with a Linux server. One of the advantages to Linux is that it doesn't need to be rebooted in order to "clean up" as other operating systems need from time to time. Using these performance analysis tools, the administrator can track down exactly what is causing a bottleneck or resource issue on the server.

The performance analysis tools are mainly discussed in chapter 4, "System Performance Monitoring." The chapter is broken down into sections based on the type of resource to be analyzed. The sections include CPU Utilization where general tips such as `cat /proc/cpuinfo` are given in addition to detailed discussion of vmstat, top, gtop, and sar (part of the sysstat package). The next section discusses Memory Utilization which looks at some of the information available through /proc before detailing ps and vmstat. I/O Utilization is the next section where iostat is discussed along with another look at sar. Finally, Network Utilization rounds out this chapter with brief discussion of commands such as arp, ifconfig, and other basic network commands before detailing netstat. Throughout this chapter examples of output are given for many commands.

The authors do a great job at not only condensing the material but, more importantly, they also bring some highly technical concepts down to the reader's level. Take for example chapter 2, "Kernel Overview" where a detailed discussion of the architecture of the Linux kernel is given.

Part III of the book is devoted to system tuning (it's aptly titled "System Tuning"). This section of the book provides detailed background information so that the administrator can make educated decisions about what to tune. For example, chapter 9 is devoted to the Linux virtual memory subsystem and includes a discussion of not only how virtual memory is handled in the kernel (including new features for the 2.6 series) but also the tunable parameters for virtual memory.

Within Part III are chapters on the aforementioned virtual memory subsystem, the scheduler, I/O subsystems, file systems, network, IPC, and code tuning. Chapter 11, "File System Tuning", opens with a discussion of the basic terms in file systems before continuing on with discussion of specific file systems including ext2, ext3, ReiserFS, JFS, and XFS.

Part IV of the book looks at characteristics of Linux server applications. Doing so helps to frame the discussion of the different attributes important to tuning the server for each of these applications. The last section of the book, beginning of page 405, is devoted to case studies.

One final highlight for the book is that most chapters include a detailed references section with pointers to relevant information for that chapter. Some chapters have more references than others. The references might be anything from a man page to a magazine article to a book and a few other resources.

The combination of both detailed background information along with practical techniques, all of which are explained clearly, makes Performance Tuning for Linux Servers a great resource for Linux administrators who want to squeeze optimal performance from their server. I believe the book has a good shelf life that will keep it on my bookshelf for quite a long time.

You can purchase Performance Tuning for Linux Servers from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

121 comments

  1. Performance tuning for Linux servers. by grub · · Score: 3, Funny


    a) Install FreeBSD.
    b) Reboot.

    --
    Trolling is a art,
    1. Re:Performance tuning for Linux servers. by Otter · · Score: 3, Funny

      Hah! Just set the appropriate USE flags and make.conf (I prefer -O8 -- just remember it's a capital o, not a zero!) and no need for tuning!

    2. Re:Performance tuning for Linux servers. by johnnyb · · Score: 4, Funny

      c) switch off SETI@HOME

    3. Re:Performance tuning for Linux servers. by Anonymous Coward · · Score: 0

      lol what?

    4. Re:Performance tuning for Linux servers. by C0vardeAn0nim0 · · Score: 1

      pffff... daemon worshiper...

      --
      What ? Me, worry ?
    5. Re:Performance tuning for Linux servers. by bofar · · Score: 1

      Don't install FreeBSD if you want stable 64-bit support. Really don't install FreeBSD if you write in Java and use threads.

    6. Re:Performance tuning for Linux servers. by Anonymous Coward · · Score: 0

      -nice 19 and I don't notice any performance hit.

      Admittedly that's on a headless server whose main duties are screen and irssi.

    7. Re:Performance tuning for Linux servers. by Anonymous Coward · · Score: 0

      Haven't seen talk of *antique* servers somewhere.

    8. Re:Performance tuning for Linux servers. by destuxor · · Score: 1
    9. Re:Performance tuning for Linux servers. by Anonymous Coward · · Score: 0

      format and install windows server 2003!!!!......

      let the flame war begin!!

      (uh, yes this post is a joke...)

    10. Re:Performance tuning for Linux servers. by MikePikeFL · · Score: 1

      Somewhat funny, I'm actually preparing to do the opposite this weekend because our Win2k3 server (I didn't set it up) just stopped routing for our VPN. Inexplicably. No one can get it running.

      In a pinch, I set my desktop linux box up to run OpenVPN and changed the office router to point to the linux box, and it works fine.

      So we're preparing to raze 2k3 and put linux on it (so I can mess around with my linux box and not worry about kicking everyone in the office off the VPN). Samba and OpenVPN are pretty much all we will need.

      --
      "Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway" -Andrew Tanenbaum
  2. Very quick version... by jjeffrey · · Score: 5, Informative

    In my experience, the number one tip for linux performance tuning is "man elvtune". I've seen it work miracles.

    1. Re:Very quick version... by GweeDo · · Score: 5, Informative

      Well, unless you use 2.6....

      --------------
      # elvtune /dev/hda
      ioctl get: Invalid argument

      elvtune is only useful on older kernels;
      for 2.6 use IO scheduler sysfs tunables instead..
      --------------

      You can find out more by tuning into "/sys/block/hda/queue" (where hda is the device you want to tune).

      Enjoy.

    2. Re:Very quick version... by jjeffrey · · Score: 3, Informative

      Good point - though in the case of 2.6 you are still doing the same thing for the same results, just with a different interface.

    3. Re:Very quick version... by VE3MTM · · Score: 1

      Unfortunately, it's obsolete in 2.6 kernels

      --
      09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 Whoops, silly middle mouse button...
    4. Re:Very quick version... by layer3switch · · Score: 1

      Linux kernel 2.4 uses I/O elevator utility, elvtune (which tunes I/O queue time), in order to control request time in I/O queue. This used to be time consuming task. Since 2.6, 4 customized I/O schedulers has been introduced to further tune up queuing faster and easier.

      CONFIG_IOSCHED_NOOP
      CONFIG_IOSCHED_AS
      CONFIG_IOSCHED_DEADLINE
      CONFIG_IOSCHED_CFQ

      By default, all 4 should be compiled, but primarily CFQ I/O scheduler is picked as the default (maybe i'm wrong on this). This can be changed by passing kernel parameter at boot time with;

      elevator=noop
      or
      elevator=as
      or
      elevator=deadline
      or
      elevator=cfg

      General consensus is that CFG is overall best for general purpose even for servers under heavy load, so that may be the reason why it's default.

      However your mileage may vary and especially for system which may require different types of response time or application support, other I/O schedulers may perform better. For instance, DEADLINE may give better response time for real-time application.

      Obviously this is for general purpose, however it can be a very useful way to tune a system; categorize then refine.

      Overall, I find much easier and safer to tune kernel this way than spending weeks at a time to measure benchmark and open up a possibility to problems or undesirable effects later on.

      --
      "Don't let fools fool you. They are the clever ones."
    5. Re:Very quick version... by Anonymous Coward · · Score: 0

      Selecting the correct I/O scheduler for your workload can also have a HUGE impact on filesystem performance. The default scheduler in 2.6 is the anticipatory scheduler. It may be o.k. for workstation use, but the deadline scheduler works much faster for many heavy duty i/o tasks.

  3. Wrong by Work+Account · · Score: 0, Interesting

    I realize you're trolling but the only thing an unbiased engineer could claim with regards to the two OSes is that FreeBSD has perhaps slightly better security.

    Performance wise they're similar and many even feel Linux has a slight edge (especially recent colonels).

    --

    If you "get" pointers add me as a friend (116)!
    1. Re:Wrong by Anonymous Coward · · Score: 0

      I think you mean kernels.

      BTW: FreeBSD > Linux. I feel sorry for all the admins out there who have to manage Linux boxes. What a nightmare.

    2. Re:Wrong by pivo · · Score: 2, Informative

      It's worth it, for the better network performance

    3. Re:Wrong by Cylix · · Score: 1

      In the slashdot article that preceeded that benchmark many moons ago...

      Wasn't it argued that the test itself was quite foobared due to the memory restrictions. In many cases, wasn't it really just benchmarking the swap file? I really don't know how well chipset support was arranged at the time. Don't get me wrong, I'm a huge fan of Linux... but that was not exactly a benchmark you want to toss around like it's gold.

      That's if I recall correctly...

      --
      "You should always go to other people's funerals; otherwise, they won't come to yours." -- Yogi Berra
    4. Re:Wrong by Feyr · · Score: 4, Insightful

      take note, i haven not read the benchmark.

      for older linux kernels, and some hardware, freebsd has better throughput (and more importantly, won't crash under high load). but it fails behind in LATENCY under lower load. it always will because of the design choice they made. easier to implement, bit more latency under low load

      with recent linux kernels, NAPI (New Api, more appropriately named "Rx Polling") was introduced, and some of the drivers were converted to use that, bringing linux up to scratch FOR THAT HARDWARE. due to the above mentioned design choice, in linux each drivers must be converted individually. the upside is that they don't suffer a latency hit under low load.

      unfortunately for me, the driver i need still lacks NAPI support. :(

      while we're on the subject of "freebsd has better performance", that's not actually true. while doing real-world tests for a rather large website in a mixed environment (freebsd, debian, redhat) i found that the reason freebsd SEEMED to perform better is that it was more aggresive in killing processes when it is under memory pressure, relieving stress on the swap area and as such, freeing up the cpu from doing the swapping work (that was before 2.6, which has some tuneables to help now)

  4. I went to a talk from the author by HishamMuhammad · · Score: 5, Informative

    IIRC, she [Sandra Johnson] is the head of one of IBM's Linux Technology Centers. It was pretty interesting and I got to skim the book for a while. Looked good, but I always have the fear that books like this get outdated fast. It had half a page on top -- I told her to include htop in the next edition. No plug is as shameless as when you do it in person. ;)

    1. Re:I went to a talk from the author by Jeff+DeMaagd · · Score: 1

      I just installed htop on my debian based web server, it's pretty nifty. Not that I need top that often, the computer runs at practically no load.

    2. Re:I went to a talk from the author by DraconPern · · Score: 2, Funny

      I looked at the xSeries prices on IBM.com, and here is my recommendation for 'Linux Tuning'. ;)

      1) Don't buy the book and save your $55.
      2) Configure the server you want on ibm.com. Go to dell.com and configure a similar server, note the amount saved on dell.com
      3) buy a dell server and use your extra money from 1) and 2) to get the cpu upgrade and the free double ram.
      4) Presto! Instant Linux Tuning! It even works with Windows at no extra charge!

    3. Re:I went to a talk from the author by trelanexiph · · Score: 1

      5) Buy a support contract from dell that guarentees your call doesn't get routed to india. 6) buy an extended service coverage plan for all your servers because you KNOW they're going to break, I mean lets get real, it is a Dell. 7) give the whole thing a miss and buy something other than a Dell.

    4. Re:I went to a talk from the author by owlstead · · Score: 2, Insightful

      1) Tune your old server.
      2) Save cost on new server. Don't buy Dell (for servers or laptops).
      3) Be happy.
      4) ???
      5) This is getting old.

    5. Re:I went to a talk from the author by Feyr · · Score: 2, Insightful

      don't knock em till you try em.

      we have a bunch of dell rackmount servers here (poweredge 2650 and 750) and i've never had ANY problem with them. compare that to our hp server (now relegated to being a backup of a backup because of unreliability) or sun (running, can't update anything on it lest it crash) or ibm (8U, slow as a duck, but built like a tank), i'll take a dell anyday. i just wish they had a line with opterons in them

    6. Re:I went to a talk from the author by felicity · · Score: 2, Informative
      don't knock em till you try em.

      Right back at you. We tried out a Dell server at work (2650 iirc). It crashed 3 times during the install (kickstart), and then within an hour of putting any load on it. Needless to say, the server only stayed in the rack for about 2 days before we shipped it back.

      The IBM xSeries, OTOH, perform flawlessly for us.

      So from my POV, the Dells are cheaper, but they're also less expensive. :)

      IMO, get the vendors to give you a test box and play with them. Go from there.

    7. Re:I went to a talk from the author by oo_waratah · · Score: 1

      You could start by changing your web page:

      This is htop, an interactive process viewer for Linux.

      Huh, nothing deeper than that.

      What are you trying to solve with this tool and why should I use it. Give me a better sales blurb.

    8. Re:I went to a talk from the author by Anonymous Coward · · Score: 0

      Still have 2300 running almost non-stop since we got it 3 years ago. Never had an issue.

    9. Re:I went to a talk from the author by bettlebrox · · Score: 1

      Also a lot of this info is probably contained in IBM's Red Books: http://www.redbooks.ibm.com/cgi-bin/searchsite.cgi ?query=linux+performance

      --

      I have a very small mind and must live with it.
      -- E. Dijkstra

    10. Re:I went to a talk from the author by virtual_mps · · Score: 2, Insightful
      Right back at you. We tried out a Dell server at work (2650 iirc). It crashed 3 times during the install (kickstart), and then within an hour of putting any load on it. Needless to say, the server only stayed in the rack for about 2 days before we shipped it back.

      Of course you should have shipped it back--you obviously got one that was damaged in shipping. Do you really believe that it's normal for dell servers to crash during an installation routine? I'm sure you can make some snippy response and get moderated +5 funny, but the reality is that dell obviously wouldn't be making money if it was normal for their servers to arrive doa. I've got racks full of 2650's, and I've only had to swap out some fans now and then. I've got some IBMs also, and they haven't been any more or less reliable than the dells. (Although, oddly, when IBM shipped us the dual opterons we had to install the second cpu's ourselves. You'd think IBM's price premium over dell would at least cover assembly.)
    11. Re:I went to a talk from the author by HishamMuhammad · · Score: 1

      I'm not a salesman, indeed. But there is a "comparsion between top and htop" there, and a screenshot section. :)

      Any other suggestions?

      Thanks,

  5. What does it tune?!? by stretch0611 · · Score: 4, Interesting
    While the reviewer mentions file systems he does not mention which servers the book tunes?

    Does the book go into details with database servers, file servers, web servers, and/or specific application servers.

    What type of linux servers does it teach you to tune?

    --
    Looking for a job?
    Want your resume written professionally?
    DON'T USE TUNAREZ!!!
    1. Re:What does it tune?!? by Anonymous Coward · · Score: 0

      Now, I will grant you the review was poorly written ("The Appendix is provides a look..."). On the other hand, if you actually read it, and more importantly, comprehend it, the answers are right there.

      Then again, noting the warning (and especially the fact you feel you need to make this warning) in your signature, comprehension may be just a little to much to expect.

    2. Re:What does it tune?!? by CptChipJew · · Score: 2, Insightful

      It seems like this book is meant for more general purpose tuning, which is in itself quite useful and important. I've seen books before for tuning specific server types. Perhaps having these both would make a good combo reference.

      --
      Vonal Declosion
    3. Re:What does it tune?!? by chrisjwray · · Score: 1

      Tunarez sounds like a 0-day fish website. Better not look at that from work.

    4. Re:What does it tune?!? by w98 · · Score: 1

      What type of linux servers does it teach you to tune?

      From TFA:

      "The book is largely, though not completely, distribution neutral."

      That is, it should be generic enough to apply to nearly all Linux distros.

    5. Re:What does it tune?!? by stretch0611 · · Score: 1
      What type of linux servers does it teach you to tune?
      From TFA:
      "The book is largely, though not completely, distribution neutral."
      That is, it should be generic enough to apply to nearly all Linux distros.

      That's nice but it does't answer the question. If I wanted a book on Linux Operating System Tuning I would ask which distribution. However, I want to know what "type of server" it tunes... (db, www, file, etc...)

      --
      Looking for a job?
      Want your resume written professionally?
      DON'T USE TUNAREZ!!!
    6. Re:What does it tune?!? by w98 · · Score: 1
      According to an amazon lookup, "Tune web, file, database, and application servers running commercial workloads."

      The user reviews are pretty decent, it seems; I suppose they'll answer more of your questions.

    7. Re:What does it tune?!? by dgatwood · · Score: 1
      Or, as they said in the old BSD tunefs man page, you can tune a filesystem, but you can't tune a fish.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    8. Re:What does it tune?!? by gbjbaanb · · Score: 2, Insightful

      Surely it gives you enough information to understand how to tune each of the types of server. That's surely what you want, not a 'how-to tune a database server running mysql on the 2.6 kernel with the ReiserFS filesystem'

      Again, it'll also be distro independant, Red Hat is just the same as Suse as Debian when you're discussing the merits of one filesystem over another.

    9. Re:What does it tune?!? by RollingThunder · · Score: 2, Insightful

      You're not the intended market for this book.

      This book teaches people how to tune the things that they see are bottlenecking via monitoring software.

      From your posts, you just want a list of items to set for a given "type" of server, completely overlooking the fact that tuning is much more related to the workload of a given box than just what broad type of workload it fits in to.

    10. Re:What does it tune?!? by mikej · · Score: 1

      I want to know what "type of server" it tunes... (db, www, file, etc...)

      It says right there in the title: "Linux". I understand that this sounds flippant, but the distinction between www, db, file, and other servers is entirely artificial. There's no such thing as a "www server" - It's a linux server running an http server application.

      The book isn't a list of recipies for different server roles, along the lines of "Set the max number of shared memory segments to X for mysql, and Y for oracle". It's a description of the mechanics of the core of a linux system and how to tune its behavior.

      As far as distributions go, the kernel's the kernel, excepting patches the distributor applies. /proc is /proc, and gnu ps is gnu ps, no matter what distro you're on. There most useful information in the linux world is vendor-neutral.

      --
      Ideology breeds Hypocrisy. Just how much is up to you.
  6. Re:LOL OSX needs this book by Anonymous Coward · · Score: 0

    Lol internet: OS X is highly tuned to fit the hardware, it's even easier for apple's engineers to do this. Read some Tanenbaum once in your life, moron.

  7. Gerrit Huizenga, another of the authors... by tcopeland · · Score: 4, Informative

    ...is a pretty savvy fellow; he's a frequent LKML poster and has gotten some mentions on Kernel Traffic.

  8. performance tuning? by h4rr4r · · Score: 5, Funny

    That's easy it's just like your car. Put some huge fans in it, a window kit,some cold cathode lights and stickers, lots of stickers. That will easily double the performance. If you turn the box on its side thats good too, it gets the motherboard closer to the ground. Then some humongous plastic trim to round it all out. Don't forget to get neon heat spreaders for your ram, that lowers the latency a whole bunch.

    1. Re:performance tuning? by shri · · Score: 1

      Hmm.. I can see someone like Steve Erkel in a show called ... Pimp my server. :)

    2. Re:performance tuning? by cloudmaster · · Score: 1

      They'd install very over-the-top stuff that is only marginally better if at all, and gets in the way as much as it helps. So, basically they'd convert everything over to Gentoo. :)

  9. You can tune a file server... by Anonymous Coward · · Score: 1, Funny

    ...but you can't tuna fish.

    1. Re:You can tune a file server... by Anonymous Coward · · Score: 0

      Dating myself...

      Q. How do you tune a Vax?

      A. Turn it into a Vax Cluster...

    2. Re:You can tune a file server... by Anonymous Coward · · Score: 0

      after that joke, your lucky your anonymous

    3. Re:You can tune a file server... by Anonymous Coward · · Score: 0

      you've been reading too many man pages.

    4. Re:You can tune a file server... by Ruie · · Score: 2, Informative

      On the contrary ! Tuning fish can be accomplished by setting parameters in your $HOME/.ssh/config file.

  10. Torrent for book? by OsirisX11 · · Score: 0, Troll

    Anyone?

  11. 547 pages = 507 content + 13 appendix by Jamu · · Score: 3, Funny

    The book is 547 pages. Of that total, 507 are the content of the book while 13 pages are used for an Appendix.

    Is that the best opening for a review you could come up with? Sweet Jeebus!

    --
    Who ordered that?
    1. Re:547 pages = 507 content + 13 appendix by Clowning · · Score: 1

      Never mind that 507+13 only equals 520.

    2. Re:547 pages = 507 content + 13 appendix by Anonymous Coward · · Score: 0

      Glad I wasn't the only one thinking that.

      (PS. The CAPTCHA are getting very difficult to read. Not really doing their job in that case now, are they?)

    3. Re:547 pages = 507 content + 13 appendix by Anonymous Coward · · Score: 0

      not to mention some really odd math ... maybe it's in hex?

    4. Re:547 pages = 507 content + 13 appendix by Professional+Slacker · · Score: 0, Flamebait

      That's not important! Only nerds care about math...
      *looks around*
      ... oh, sorry I forgot where I was.

      --
      A Free Market requires informed intelligent consumers, such people are rare, we're in trouble.
    5. Re:547 pages = 507 content + 13 appendix by jeepee · · Score: 1


      Some of you must score really bad on a IQ test.

      "507 are the content of the book while 13 pages are used for an Appendix."

      Doesnt exclude that there is a glossary or whatever...

    6. Re:547 pages = 507 content + 13 appendix by brsmith4 · · Score: 1

      Nevermind the fact that he never stated that 507+13 = 547 nor was it implied. Any fool that has ever seen a book knows there are Copyright pages, a tables of contents and probably an index. Anyone with a clue would have noticed that.

    7. Re:547 pages = 507 content + 13 appendix by frenchs · · Score: 1

      The other 27 were intentionally left blank ;)

  12. Question by coflow · · Score: 1

    TFA makes it sound like the book focuses primarily on kernel tuning. Can someone who knows more about the subject than I comment on the usefulness of distro specific tuning? I'm just curious if the tuning capabilities of the different products vary greatly. (I'd imagine they would but I'm not sure to what extent....)

    1. Re:Question by Miniluv · · Score: 1

      There's very little aside from the kernel to tune on a linux box, and its almost entirely vendor neutral. Thats one of the really nice aspects of linux, that you can tune a SuSe box virtually identically to a RedHat box. This is in direct contrast to the proprietary world were a Sun box has utterly different tools from an AIX box.

    2. Re:Question by jimicus · · Score: 1

      Can someone who knows more about the subject than I comment on the usefulness of distro specific tuning?

      I really don't think you'd achieve much. Fundamentally, a Linux system is a bunch of programs running on a Linux kernel. A distribution dictates to a greater or lesser extent how those programs are installed and how the system as a whole is configured and managed, and may include some GUI-based tool to make it easier but is unlikely to have any special black magic to make it run much faster.

      IMO, you'd be better off with looking at tuning the kernel and whatever programs you're running, such as Apache, Samba etc.

    3. Re:Question by gbjbaanb · · Score: 2

      Not really. Tuning the kernel is fine, but really doesn't give you much (IMHO) compared to tuning the applications you're using.

      eg. If you're running a database server, what can you do to improve its performance (maybe buy MySQL Performance tuning), if you're running a web server what can you do (erm, buy Apache performance tuning), and err.. if you're running a file server.. then. erm.. I'll get my coat.

    4. Re:Question by Miniluv · · Score: 1

      That really depends on the applications you're running. As an example, at the shop I'm at the applications we run are all custom in house apps, and there's no tuning to perform on them. We have gotten some pretty significant performance out of tuning things like bdflush and some other paramters. I agree though that for some applications its not really worthwhile to spend much time tuning the kernel when the bulk of your performance can be picked up in the application. I've picked up some pretty immense performance gains by tuning the query cache in MySQL for example, as well as tweaking the max children on our apache servers.

  13. Contains a chapter by Steve French by GillBates0 · · Score: 5, Interesting
    This wasn't mentioned in the summary/review, but the book appeared in a news posting on samba.org in June. It contains a chapter on File and Print Server performance written by Samba team member Steve French, and the fine folks at samba.org appear to recommend the book too.

    21 June 2005 Performance Tuning for Linux Servers The new book Performance Tuning for Linux Servers from IBM Press contains a chapter on File and Print Server performance written by Samba Team member Steve French. The chapter discusses Samba and NFS performance concepts. Other chapters, especially those on networking and filesystem performance tuning for Linux, also could be helpful for Samba administrators.

    --
    An Indian-American Hindu committed to non-violent thought/speech/action alarmed by the global explosion of radical Islam
  14. easier way by ebatsky · · Score: 4, Funny

    just use some wi-fi spray to speed up your data transfer rates and youre all set. i plan on completely soaking my ethernet router in this stuff permantenly

    1. Re:easier way by Anonymous Coward · · Score: 0

      That's awesome.

    2. Re:easier way by ettlz · · Score: 1

      Now, if someone spammed me trying to sell that instead of Viagra or Cilialis or what have you...

    3. Re:easier way by Anonymous Coward · · Score: 0

      In the list of reviews the product got in english there was one in Spanish: "Esto es muy malo. No trabaja. Me engañan!" -Toraidio Smith, Tijuana

      HAHAHA! It kinda xlates to.

      "This is really bad. It doesn't work. They tricked me!"

  15. Re:LOL OSX needs this book by Anonymous Coward · · Score: 0

    Yeah you'd think with all that time they save by not having to deal with a billion pieces of hardware that they'd be able to make a decent os.

  16. Install (Open) Solaris the reboot by Anonymous Coward · · Score: 0

    How about the performance of Solaris 10 compared to Linux? How close can Linux come to the performance of Solaris? Too bad there isn't a nice Gentoo Open Solaris distribution.

    1. Re:Install (Open) Solaris the reboot by Anonymous Coward · · Score: 0

      I think you have that backwards... How close can Solaris 10 come to Linux performance on x86?

  17. Distro neutral ... Yes! by Anonymous Coward · · Score: 3, Interesting

    If there's one thing that will keep this book from getting out of date it is being distro neutral. Of course that also implies being on the command line. Once you've learned to do something on the command line, you pretty much don't care what distro is on the box you're working on.

    Of course, Joe user shouldn't have to be able to cope with the command line and for such people, there's always the pointy-clicky way but that also has a learning curve. The gui way to do things is different from distro to distro so instead of a sharp learning curve to do something on the command line, you have a lot of little learning curves as you move between systems.

    1. Re:Distro neutral ... Yes! by Anonymous Coward · · Score: 0

      "If there's one thing that will keep this book from getting out of date it is being distro neutral"

      Of course!

      The fact that both kernel and FS do change at a fast pace won't outdate it!

      What kind of a substandard moron are you?

    2. Re:Distro neutral ... Yes! by Anonymous Coward · · Score: 0

      yeah, because the first thing a Server Administrator thinks about is what kind of GUI he has to use.

    3. Re:Distro neutral ... Yes! by paranoidgeek · · Score: 1

      A book for a distro would last only until the next version comes out. The kernel does **NOT** change at a fast pace. Learn how to config a 2.4 kernel correctly and a 2.6 kernel is pretty straight forward. Heck i only learnt how to config a 2.6 kernel but i had no problem configging a 2.2 kernel when i had to.

      --
      Lima India November Uniform X-ray
    4. Re:Distro neutral ... Yes! by OmegaBlac · · Score: 1
      "Of course, Joe user shouldn't have to be able to cope with the command line... "
      They did when DOS was around. And "Joe user"--who is too lazy to deal with the CLI--should not be administering a server, let alone trying to tune it for performance gains.
    5. Re:Distro neutral ... Yes! by TeknoHog · · Score: 1
      "Of course, Joe user shouldn't have to be able to cope with the command line... "

      They did when DOS was around.

      Good point! Back then people -- that's users, not just admins -- treated software like tools: if they wanted to use them, they learned how to use them. They didn't complain about the difficulty of the command line, even though it was worse than today's unix equivalents.

      Nowadays it seems people refuse to learn things. They expect computers to read their minds. It's like each user interface feature that is 1 step easier to use, makes people 2 steps dumber. *sigh*

      --
      Escher was the first MC and Giger invented the HR department.
    6. Re:Distro neutral ... Yes! by cloudmaster · · Score: 1

      Joe User isn't performance tuning a cluster of corporate web servers, either. He's using a desktop system that won't see much if any difference from adjusting most of the stuff in /proc.

  18. The math.. by Anonymous Coward · · Score: 0

    Did no one else find a problem with this line?

    "The book is 547 pages. Of that total, 507 are the content of the book while 13 pages are used for an Appendix."

    Uhhh..?

    1. Re:The math.. by Anonymous Coward · · Score: 0

      Perhaps an opening, index, or other related items a book would have other than the body.

  19. Type R by Stanistani · · Score: 1

    You forgot the spoiler... a big, honking spoiler on the back

    1. Re:Type R by wowbagger · · Score: 1, Offtopic

      He also forgot the big, chrome fart-pipe muffler, the Thunder-Thump 3000® subwoofer kit, and the Krylon Black windows.

      And the spinner hubs. Gotta have the spinner hubs.

    2. Re:Type R by hotdiggitydawg · · Score: 1

      In fact, I can see a whole TV series in this!

      "Pimp my Linux Server"...

    3. Re:Type R by Vampyre_Macavity · · Score: 1

      Just one word of advice . . . Don't screw with the Phantom Eight Six!

  20. What commands quit working? by Anonymous Coward · · Score: 0

    Of the commands I use a lot, I can't think of any that quit working as I have upgraded systems. Do you know any important commands that quit working at some point?

    1. Re:What commands quit working? by paranoidgeek · · Score: 1

      Linux, unlike Windows ( cough cough ), is built on Unix standards so a linux 2.0 command is the same as a BSD command is the same as a linux 2.6 command. Regarding GNU software .... most commands are designed to keep compatibility with existing shell scripts. And for programming .. hasen't the GP ever heard of POSIX ??

      I am quite biased towards Linux but i am shocked by the number of people who think that Linux has no standards. The only standards it doesnt have is ones made by Microsoft.

      --
      Lima India November Uniform X-ray
    2. Re:What commands quit working? by Mad+Merlin · · Score: 1

      Microsoft makes standards?

    3. Re:What commands quit working? by Anonymous Coward · · Score: 0

      That is the most insightful funny post i have seen in a while.

  21. Hardware is cheap. Tuning is tricky. by Anonymous Coward · · Score: 0, Insightful

    Considering the bang for the buck of modern hardware, and how easy it is to screw things up without deep understanding, doesn't it mostly make sense to buy hardware that gives the performance you need rather than tweaking random knobs to beat out another 5% performance increase?

  22. Re:Linux needs it more by Anonymous Coward · · Score: 0

    OS X is more open than Linux (BSD license is FAR FAR superior to the communist style GPL)

    Communists are fine people (I mean real Communists, not those red painted fascists in former USSSR and PR China

  23. Re:Hardware is cheap. Tuning is tricky. by Meetch · · Score: 1
    It's a lot more than that. There may be a distro or 2 out there that offers a variety of tuning profiles, but the fact is that one distro will typically be tuned for one style of hardware profile. If it's half decent you'll get enough documentation to tune it yourself, but you'll probably still have to look for it...

    Fact: RedHat EL3's default httpd configuration is AWFUL for busy websites on high end machines, compared to say Windows/IIS defaults, though on cheap/low powered hardware running with a 300MHz CPU it would probably benchmark better. Back at the high end, tweak 4-6 settings to make more serving threads available and it will make use of that little extra RAM, and put you back ahead of the game. If you want more than that though, look at a Web Performance Tuning book.

    I've also heard of tools out there which can look at your system performance (eg if you run sar) and tell you what kernel parameters you need to alter to reduce bottlenecks and improve utilisation of underused system resources. You may have to pay for such a tool, but chances are it can delay the need for upgrading to meet growth of demand.

  24. Re:Linux needs it more by rsynnott · · Score: 1

    Communism is a political system which sadly requires everyone in the world to be perfectly ethical. As such, it doesn't work. Libertarianism has similar issues, for slightly different reasons.

    --
    Me (Blog)
  25. its ok by jpc · · Score: 1

    But there isnt a lot in it that you probably dont already know if you have any performance concerns. It is very dominated (unsurprisingly) by database workloads. Its ok, but doesnt say anything that important about tuning - it assumes you dont have source code access so it doesnt address the intersting questions like should I rewrite my application to use AIO.

    If you run Oracle you shoould buy it on expenses.

  26. Re:Hardware is cheap. Tuning is tricky. by Anonymous Coward · · Score: 0

    Why do you believe it is so easy to screw things up without deep understanding ? These are all just text files. How hard is it to copy the original back ? People say the same things about working on their own cars sometimes, but at least in that case there is a potential real cost to screwing up.

    That said, you are right that in many cases it is easier to buy more hardware than configure more efficiently. However, anyone who gets marginal payback from intense use of the server will find that these techniques can make the difference between profit and bankruptcy.

    For example, suppose you were one of the myriad horde of cheap web hosting providers. You know, the guys who sell 50 MB of disk space and a cpanel interface to a Redhat/Fedora server that is the cheapest rackmount they could find at Dell's refurbished outlet or ebay.

    If you look at your bill for bandwidth, power, etc, then at the default configuration the monthly payments of a few bucks a month come out even -- that's how competitive the market is.

    If you do a few small things and squeeze 20 percent more accounts onto each machine, all of a sudden you are making more than the bills each month.

    If you want to hire someone who REALLY knows how to optimize a server, you should look for someone in the porn/spam industry (unfortunately).

  27. How do I go about debugging this sort of stuff ? by Anonymous Coward · · Score: 0
    I have a program I wrote that is a web scrapper for a specific set of pages. When it runs, the machine is slow, feels like dogcrap on the user interface, and appears to have a high load. When I check with top the process only uses a few percent of cpu and memory.

    Is it some sort of interrupt thing related to using the network a lot ? Or the disk ? How do you fiugre out WHY the computer is so slow, and where the load is coming from ?

    Also, any comments on this other book -- is it worth getting in addition to the one reveiwed here ? Optimizing Linux Performance: A Hands-on Guide to Linux Performance Tools

    Thanks in advance.

  28. Accuracy Problems on htop by sigloiv · · Score: 1

    Unfortunately, I've seen that htop is wrong half the time on it's CPU usage. If you run X (of course, you wouldn't on a server, but whatever...) get gkrellm. It's got a much more accurate counter.

    --
    Software is like sex. It's better when it's free. -Linus Torvalds
  29. Freebsd 5 Tuning? by scooby2 · · Score: 1

    Anyone seen a good webpage or book on Freebsd 5 tuning? Sendmail is kicking the sh*t out of my Freebsd 5 boxes where on lunix it runs fine.

    1. Re:Freebsd 5 Tuning? by Anonymous Coward · · Score: 0

      Yeah, switch to Postfix

    2. Re:Freebsd 5 Tuning? by Anonymous Coward · · Score: 0
  30. noobs! by wild_berry · · Score: 1

    You're such beginnaz. You forgot to change the filter pipe to the air intakes so you get more compression and +3HP on the cooling fans.

  31. Re:Linux needs it more by Anonymous Coward · · Score: 0

    Capitalism is a system which assumes everyone is ethical too, however, the definition of ethics in both systems is exactly opposite! Communism projects living for others as the ultimate ideal (which is so obviously wrong that it can't be achieved - and hence its failure), while on the other hand capitalism requires everyone to be totally selfish , which means you live for your own good (and at the same time not sacrificing others for your purposes.) For detailed analysis of the true face of capitalism refer to Ayn Rand's work

  32. Also... by JayJay.br · · Score: 1

    ...may I add, Joe user does not tune performance. So that's actually a non-issue.

    Just adding to your point.