Neuron Top User Guide — AWS Neuron Documentation (original) (raw)

Contents

This document is relevant for: Inf1, Inf2, Trn1, Trn2

Neuron Top User Guide#

Table of contents

Overview#

neuron-top provides useful information about NeuronCore and vCPU utilization, memory usage, loaded models, and Neuron applications.

Note

neuron-top fully supports the newly launched trn2 instances.

Note

If you are parsing neuron-top output in your automation environment, you can now replace it with neuron-monitor(Neuron Monitor User Guide) which outputs data in a standardized, easier to parse JSON format.

Using neuron-top#

Command line arguments#

Launch neuron-top by simply typing its name in the shell: neuron-top.

User interface#

The title section of the user interface shows the application’s version number, EC2 instance ID, and the instance type on which it is running:

titleimg

The rest of the user interface is divided in 4 sections. The data shown in these sections applies to the currently selected tab - which can be the ‘all’ tab, which aggregates data from all running Neuron processes, or a tab representing a single Neuron process:

overview

flops

The tree view shows the amount of memory used for the same categories shown in the Memory Usage Summary but in this section they are attached to either a model (if the memory has been allocated at model load time for that model), or to a NeuronCore (if the memory can’t be associated with a model, but has been allocated for that NeuronCore). The ‘parent’ shows the total amount of memory used - the sum of its children.

Note

The up/down/left/right keys can be used to navigate the tree view. The ‘x’ key expands/collapses the entire tree.

The bottom bar shows which Neuron process’ data is currently displayed by highlighting its tag using a green font and marking it using a pair of ‘>’, ‘<’ characters. The ‘all’ tab shows an aggregated view of all the Neuron processes currently running on the instance.

tabbar

Note

The ‘1’-‘9’ keys select the current tab. ‘a’/’d’ selects the previous/next tab on the bar.

This document is relevant for: Inf1, Inf2, Trn1, Trn2