Tuning 2000/XP/.NET

25
Tuning 2000/XP/.NET What should you tweak, and what should you replace? Presented by Mark Minasi author of Mastering Windows 2000 Server MR&D / www.minasi.com/gethelp

description

Tuning 2000/XP/.NET. What should you tweak, and what should you replace?. Presented by Mark Minasi author of Mastering Windows 2000 Server MR&D / www.minasi.com/gethelp. WEBCAST SCHEDULE. Today’s event will run one-hour long. Here are the expected times for each segment of the webcast: - PowerPoint PPT Presentation

Transcript of Tuning 2000/XP/.NET

Page 1: Tuning 2000/XP/.NET

Tuning 2000/XP/.NET

What should you tweak,

and what should you replace?

Presented by Mark Minasiauthor of Mastering Windows 2000 Server

MR&D / www.minasi.com/gethelp

Page 2: Tuning 2000/XP/.NET

WEBCAST SCHEDULEToday’s event will run one-hour long. Here are the expected times for each segment of the webcast:

:00 – :05: Moderator introduces the speaker and discusses the details of

the webcast.

:05- :25: Speaker delivers a PowerPoint presentation on the webcast topic. :25- :35: Moderator and speaker engage in a brief Q&A on the topic.

:35- :60: The speaker responds to questions submitted by the audience.

You can submit questions to the speaker at any time during the event. Just click on the “Ask a Question” button in the lower left corner of your screen.

Page 3: Tuning 2000/XP/.NET

TECHNICAL FAQsHere are answers to the most common technical problems users encounter during a webcast: Q: Why can’t I hear the audio part of the webcast?

A: Try increasing the volume on your computer.

Q: I just entered the webcast and do not see the slide that the speaker is referring to. What should I do?A: The slides are constantly being pushed to your screen. You should refresh (hit F5) to view the latest slide.

 Q: What time zone do the webcasts take place?

A: The TechTarget webcasts all occur on Eastern Standard Time (UTC/GMT – 5 hours).

If your question is still not answered, please click the “Ask a Question” button in the lower left corner of your screen and submit your problem. A technical support person will respond immediately.

You can also visit the Broadcast Help page for more information or to test your browser compatibility. Click here: http://help.yahoo.com/help/bcst/

 

Page 4: Tuning 2000/XP/.NET

Tuning 2000/XP/.NET

What should you tweak,

and what should you replace?

Presented by Mark Minasiauthor of Mastering Windows 2000 Server

MR&D / www.minasi.com/gethelp

Page 5: Tuning 2000/XP/.NET

Overview

Tools for tuning Five tuning methods Takin’ Out the Trash Tuning disk subsystems Tuning memory subsystems Tuning CPUs Tuning NICs

Page 6: Tuning 2000/XP/.NET

Tuning Tools

Performance Logs and Alerts (perfmon) – but don’t worry, you needn’t look at every single thing that Perfmon offers!

Task Manager logman – command-line perfmon logger Another excellent tool: Network Monitor (Netmon) Some nifty free Sysinternals tools: pagedfrg, contig,

Process Explorer Msconfig

Page 7: Tuning 2000/XP/.NET

Meet Perfmonthe Performance Monitor

You’ve probably looked at it before Things are grouped into “objects” and objects

are divided into “counters” Example: things related to the CPUs are in

an object called “processor” Lets you either log info long-term or view in

real time

Page 8: Tuning 2000/XP/.NET

Perfmon Tips

Use Perfmon on one computer to log another computer

Alerts can be useful, even if they’re simple The key to using Perfmon is in finding a

small number of things to log, and looking at them periodically

Click the “Ask a question” button in the lower left section of your screen to submit a question.

Page 9: Tuning 2000/XP/.NET

Tuning Basics

The object of tuning is to find the bottleneck Bottlenecks are where the computer spends most

of its time, the binding constraint File servers bottleneck in different places than

applications servers File servers bottleneck on the network card

interface and the disk interface App servers bottleneck on memory and CPU power

Page 10: Tuning 2000/XP/.NET

Five Tuning Solutions

1. Delete useless junk (programs that waste resources, unnecessary services)

2. Buy faster hardware

3. Reconfigure the hardware for better throughput (i.e., registry tweaks)

4. Clean resources

5. Move loads (apps) to other systems

Page 11: Tuning 2000/XP/.NET

Eliminating Junk

Fire up Task Manager and ask: What is all that stuff?

MSconfig32 can help So can Process Explorer and Autoruns from

www.sysinternals.com Then go after the services

Click the “Ask a question” button in the lower left section of your screen to submit a question.

Page 12: Tuning 2000/XP/.NET

Autoruns from Sysinternals

Page 13: Tuning 2000/XP/.NET

Process Explorer

Page 14: Tuning 2000/XP/.NET

Process Explorer

Page 15: Tuning 2000/XP/.NET

Killing Unnecessary Services

Workstation services:– Server/computer browser– Any Web/FTP server– Wireless Zero Configuration (unless 802.1x)– WebClient (unless you know you need it)– Infrared Monitor… and tons others; look your

system over and experiment Tune your personal firewall/antivirus software

Page 16: Tuning 2000/XP/.NET

Disk TuningDisk Tuningcounters and solutionscounters and solutions

Disk TuningDisk Tuningcounters and solutionscounters and solutions

Must use diskperf –y on W2k and reboot… but it’s no longer necessary on XP/.NET

You want to see:– Physical Disk / Percent disk time < 90– Physical Disk / queue length <= 2

Solutions: faster interfaces (UDMA-133) faster host adapters (SCSI), bus mastering (if it doesn’t already exist), move processes

Page 17: Tuning 2000/XP/.NET

Disk Tuning

If using two EIDE drives, put them on different channels

Use NTFS… not FAT32 Defrag volumes periodically Sysinternal’s “contig” will make a particular

file contiguous On an AD DC, defrag Active Directory with

NTDSUTIL

Page 18: Tuning 2000/XP/.NET

Network TuningNetwork Tuningwhat to watchwhat to watch

Network TuningNetwork Tuningwhat to watchwhat to watch

Network Interface/Output Queue Length <= 2 Look for increases in Server object, counter

– Blocking requests rejected– Errors system– Pool non-paged failures, pool paged failures– Sessions errored out

Rearrange binding order or provider order if you have multiple protocols

Kill unnecessary protocols

Page 19: Tuning 2000/XP/.NET

Memory Tuningpagefile optimization

Defrag pagefile with Sysinternals’ free pagedfrg.exe

You no longer need a pagefile >= RAM if you choose minidumps or kernel memory dumps

Spread pagefile over several physical drives This, of course, only makes sense if those

drives run asynchronously

Page 20: Tuning 2000/XP/.NET

Memory Tuningsizing pagefiles: general info

You cannot have too large of a pagefile – you don’t slow down your system; although, of course, you may burn too much disk space

Set maximum pagefile size = minimum And provide space for crashdumps

Click the “Ask a question” button in the lower left section of your screen to submit a question.

Page 21: Tuning 2000/XP/.NET

Memory Tuningsizing pagefiles: specifics

Size with XP’s Task Manager / Performance / Commit Charge (K) / Peak or log Perfmon’s Memory/Committed Bytes counter, take peak

Note that they may not match, as Perfmon and Taskman poll at different intervals

This will almost always be more than you’ll ever need – look at Paging File / % Usage Peak

Page 22: Tuning 2000/XP/.NET

Tuning CPUsperfmon counters

Processor counters; want to see:– percent CPU time < 80 percent– System/Processor Queue Length <= 2 on UP

system Run the histogram to find out who are the

hogs

And for heaven’s sake don’t run the silly 3D screensavers!

Page 23: Tuning 2000/XP/.NET

Thank you for attending!

You can find me at [email protected] Don’t forget the evaluations! Free tech newsletter at www.minasi.com Seminar information also Join our tech forum at

www.minasi.com/forum

Page 24: Tuning 2000/XP/.NET

Audience Q&A

Time for YOU to ask questions!

Mark is now taking questions from the audience on Tuning and Monitoring XP Win2k & Net Server. Click the “Ask a question” button in the lower left section of your screen to submit a question.

Page 25: Tuning 2000/XP/.NET

Feedback

Thank you for your participation

Did you like this webcast topic? Would you like us to host other events similar to this one? Send us your feedback on this event and ideas for other topics at [email protected].