ArticleslgStudy

computer science

Nmon

Nmon is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Nmon rather than just read about it. In short: nmon (Nigel's Monitor) is a computer performance system monitor tool for the AIX and Linux operating systems. The nmon tool has two modes a) displays the performance stats on-screen in a condensed format or b) the same stats are saved to a comma-separated values (CSV) data file for later graphing and analysis to aid the understanding of computer resource use, tuning options and bottlenecks. nmon for Linux is open so…

Nmon — main illustration
Nmon — illustration

Key takeaways

  • Nmon belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Nmon to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Nmon from memory before moving on to harder problems.

Reference excerpt

nmon (Nigel's Monitor) is a computer performance system monitor tool for the AIX and Linux operating systems. The nmon tool has two modes a) displays the performance stats on-screen in a condensed format or b) the same stats are saved to a comma-separated values (CSV) data file for later graphing and analysis to aid the understanding of computer resource use, tuning options and bottlenecks. nmon for Linux is open source and available under GNU General Public License while the nmon for AIX is a proprietary software integrated into AIX.

Description nmon collects the following operating system statistics:

CPU and CPU threads Utilisation CPU frequency for servers or virtual machines that can alter their clock rate GPU stats including utilisation, MHz and temperatures Physical and Virtual Memory use Disk read & write and transfers plus service time and wait times Disk Groups - decided by the user Swap and Paging Network read & write and transfers Local File-systems Network File-system (NFS) Top Processes by CPU use, Memory size and I/O rates Kernel stats including Run Queue, context-switch, fork, Load Average & Uptime Large and Huge memory pages Virtual Machine stats (depending on the hardware) — useful for Linux running KVM to host virtual machines Resources in the Server and virtual machine When viewing in on-screen mode the stats displayed are controlled by the user using single letter toggles. For example, "c" to show CPU and then another "c" will switch the CPU stats off. Others include:

nmon -h lists the help and details, -f or -F to start collecting the stats to a file. When saving the stats to a file, there is a common default set of stats and then users can request more using command line options. Use nmon -? to display all the options. The output file can be analyzed with nmon_analyzer.

History The original nmon version was for the IBM AIX operating system (Release 4.3 and above) and was freely downloadable binary format only tool from the IBM AIX wiki.

Later a version was written for the Linux operating system running on IA-32, x86, x86_64, IBM RS/6000 and POWER processors, Mainframe and ARM (including Raspberry Pi). nmon for Linux was released by IBM as open-source in July 2009. The code is available from the Sourceforge open source repository. The nmon for AIX code was later bundled in as part of the AIX operating systems. From AIX 5.3 TL09 and AIX 6.1 TL02 onward it was included in the default installation of AIX and fully supported by IBM. The nmon command and the topas command are the same binary but behave differently depending on the command name used. The two editions (AIX and Linux) have completely different source code but offer many similar features, command line options and data — as much as the underlying operating system allow.

Features There are two runtime modes available: In Online Mode it uses curses for efficient screen handling, which updates the terminal frequently for real-time monitoring. In Capture Mode, the data is saved to a file in CSV format for later processing and graphing. The file also includes important configuration details that are useful for recommending tuning. nmon concentrates on performance information for the performance tuner and in a concise layout to aid understanding. This includes CPU, memory, disks, adapters, networks, NFS, Kernel statistics, File-systems, Workload Manager (AIX), Workload Partitions (AIX) and Top Processes. nmon includes support for older AIX releases, Linux running on x86, POWER and Mainframe platforms and other Linux supporting hardware.

Screenshots

Alternatives On AIX, there is the topas command that can output reports to a file but this is not in a format that can be used easily as a source for a spreadsheet or web tools like RRDtool. On Linux, there is the top command which is good for CPU and processes but does not cover disks and networks. For disk I/O, the iostat command can give you the details and ntop for network information. But neither of these commands allow saving data in a format suitable for a spreadsheet or simple further processing. Linux utility dstat can be used to produce text data, even in comma separated value format, which is quite suitable for spreadsheet programs.

References

External links Official website AIX nmon man page Tuning a Perfect Note: A look at performance tuning and new AIX 5.3 commands Archived 2010-07-08 at the Wayback Machine

Illustrations

Nmon illustration
Nmon illustration
Nmon illustration
Nmon illustration

Worked examples

Example 1 — a first encounter with Nmon

Start with the simplest possible case. Write down what Nmon claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Nmon before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Nmon ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Nmon

In research
Nmon appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Nmon in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Nmon is common in secondary-school and first-year university syllabi. It links to neighbouring topics Curses (programming library), Free system software, System monitors, so understanding it makes those chapters shorter.
In everyday life
Look for Nmon outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Nmon” →

How to study Nmon in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Nmon means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Nmon out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Nmon in simple terms?

nmon (Nigel's Monitor) is a computer performance system monitor tool for the AIX and Linux operating systems. The nmon tool has two modes a) displays the performance stats on-screen in a condensed format or b) the same stats are saved to a comma-separated values (CSV) data file for later graphing a…

Why does Nmon matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Nmon?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Nmon.

Tags

  • Curses (programming library)
  • Free system software
  • System monitors
  • Unix process- and task-management-related software

Keep exploring