Skip to Content
Managing IMAP
book

Managing IMAP

by Dianna Mullet, Kevin Mullet
September 2000
Beginner
408 pages
10h 29m
English
O'Reilly Media, Inc.
Content preview from Managing IMAP

How to Know When It’s Time to Scale Up

If you’re reading this section, chances are that you’ve come across a bottleneck on your system and you need to find the cause. A good way to diagnose the problem is to check the usage levels of each of the following resources:

  • CPU usage

  • Physical memory usage

  • I/O usage

  • Networking

This section shows how to use standard Unix tools to characterize your system’s performance.

CPU Usage

To check your system’s CPU usage, use the vmstat command. An example vmstat command and its output are shown in Example 16-4 . The argument 3 tells vmstat to report on system usage every 3 seconds.

Example 16-4. vmstat

#vmstat 3
 procs     memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr f0 s0 s1 s6   in   sy   cs us sy id
 0 0 0 328912 40008   0   0  0  0  0  0  0  0  0  0  0  142 40479  47 77 23  0
 0 0 0 328912 40008   0   0  0  0  0  0  0  0  0  0  0  147 40425  44 83 17  0
 0 0 0 329160 40224   0 256  0  5  5  0  0  0  3  0  0  160 38942  84 79 21  0
 0 0 0 331000 40792   0   2  0  0  0  0  0  0  1  0  0  143 40485  49 83 17  0
 0 0 0 331000 40792   0   0  0  0  0  0  0  0  0  0  0  142 40463  47 87 13  0

The last three columns, under the heading “cpu,” report the average percentage CPU usage over all processors. The “us” column reports the percentage of processor time used by user processes, the “sy” column reports the percentage CPU used by system processes, and the “id” column reports the percentage idle time. If you have the top program installed on your system, you can use it to get much the same information as vmstat provides.

What is a ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Why Sleep Is a Strategic Resource

Why Sleep Is a Strategic Resource

Gretchen Spreitzer, Christopher M. Barnes
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 059600012XCatalog PageErrata