11.01.2013 Views

Workshop

Workshop

Workshop

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

it a point to say, “Would you show me, please?” Otherwise, a communication jam (between you and her)<br />

could send you on the wrong track. As soon as you saw her open a Telnet session to a UNIX host and log<br />

on, you knew, objectively, that this application lived on a UNIX host.<br />

Check with other users of the UNIX host. Are they having problems? Some of them are disgruntled: “Yes,<br />

things are pretty slow.” Others are not. You examine who is having problems and find that they’re mostly<br />

people running reports. Because you know that the processing for reports takes place on the UNIX host<br />

itself, you naturally suspect the UNIX host as the culprit. If you suspected a network problem at this point,<br />

you might time an FTP transfer of a large file to this UNIX host to rule out a network problem. You don’t,<br />

however, suspect a network problem, because all the folks who are reporting problems are largely doing<br />

back-end processing on the UNIX host. You decide to monitor the resources of the UNIX host. You<br />

perform a vmstat and come up with this:<br />

procs memory page faults cpu<br />

-------------------------------------------r<br />

b avm fre re pi po fr sr cy in sy cs us sy id wa<br />

0 0 16894 120 1 0 78 208 312 0 279 1208 94 5 19 54 22<br />

0 0 17091 173 1 8 95 288 872 0 271 2730 180 13 34 33 20<br />

4 1 17112 123 0 48 0 168 635 0 293 3751 386 20 51 0 29<br />

6 1 17050 267 0 48 0 152 652 0 267 4124 359 24 44 0 32<br />

Wow! It looks horrible. What in blazes does this cryptic output mean? (Hint: See Hour 8, “Hard Basics:<br />

Guide to Being a Hardware Geek,” for a verbose description of these column headings.)<br />

For the purposes of this discussion, the salient points here are contained in the fre, po, and pi columns.<br />

Basically, this output is showing that you have very little memory in the free list and that page-outs (po)<br />

and page-ins (pi) are way up.<br />

Remember that paging activity takes a really, really long time in comparison to using physical memory. All<br />

this paging activity sure does slow things down. To be absolutely sure that this is the problem, you monitor<br />

the paging activity during the times the users say the box is slow. There’s definitely a correlation. You<br />

recommend a memory upgrade, and as soon as the memory is installed, the problem goes away. Excellent!<br />

Certain third-party vendors make graphical long-term server resource reporting tools; if you have long-term<br />

problems, it might be worth investing in one of these. The graphical representation of resource use can really<br />

be helpful in spotting resource trends that can be dealt with before you have problems. (The Microsoft<br />

System Monitor is certainly a good start, but even more sophisticated tools are available.)<br />

Previous Table of Contents Next

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!