Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to show hidden elements in monitor mode? #9

Closed
yinrong opened this issue Nov 19, 2021 · 4 comments
Closed

How to show hidden elements in monitor mode? #9

yinrong opened this issue Nov 19, 2021 · 4 comments
Labels
cli / gui Something related to the CLI documentation Improvements or additions to documentation question Further information is requested

Comments

@yinrong
Copy link

yinrong commented Nov 19, 2021

no instruction found in README or 'h'

@XuehaiPan
Copy link
Owner

XuehaiPan commented Nov 19, 2021

tl;dr: run nvitop with nvitop -m full or simply press f key. You can set environment variable NVITOP_MONITOR_MODE="full" in your shell profile, then you will get the full monitor mode when you run nvitop -m (without arguments).

NOTE: the bar plot requires the terminal width is no less than 100.


According to the size of the terminal window, some information is hidden when the window is overfull.

Rendering strategy for terminal height:

Monitor display modes (shortcut a / f / c):

  1. auto (default): automaticly resize panels according to the terminal window size. This is the default behavior of nvitop -m if you don't pass an explicit argument and haven't set the NVITOP_MONITOR_MODE environment variable.

    Resizing priority: process panel > host panel > device panel. The bar plot of GPU utilization is shown in the device panel.

    The auto mode is identical to full when the terminal size is big enough.

  2. full: show everything but sometimes overfull the terminal window (use keys [ / ] to scroll up and down the entire screen).

  3. compact: only show key information, useful for small windows.

Rendering strategy for terminal width:

nvitop requires the terminal width is no less than 79. For the elements on the right side (bar plots and graph plots for GPU / VRAM percent), they require terminal width >= 100 (otherwise hidden).

@XuehaiPan XuehaiPan added the documentation Improvements or additions to documentation label Nov 19, 2021
@XuehaiPan
Copy link
Owner

Here is a screencast for auto-resizing:

screencast

@XuehaiPan XuehaiPan changed the title how to show bar plot of GPU utilization? How to show hidden elements in monitor mode? Nov 19, 2021
@XuehaiPan
Copy link
Owner

Thanks for the feedback from @yinrong! Feel free to reopen this issue if you have any other questions.

@XuehaiPan XuehaiPan pinned this issue Nov 19, 2021
@XuehaiPan XuehaiPan added the question Further information is requested label Dec 15, 2021
@yinrong
Copy link
Author

yinrong commented Mar 24, 2022

not working in centos linux.

tested on:
CentOS Linux release 7.9.2009 (Core)

image

@XuehaiPan XuehaiPan added the cli / gui Something related to the CLI label Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli / gui Something related to the CLI documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants