Skip to content
New issue

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

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

Already on GitHub? # to your account

Add posibility to sort on any column #169

Closed
Yanpas opened this issue Oct 6, 2021 · 1 comment
Closed

Add posibility to sort on any column #169

Yanpas opened this issue Oct 6, 2021 · 1 comment

Comments

@Yanpas
Copy link

Yanpas commented Oct 6, 2021

Problem: I need to filter out all threads that are running on core 6 (CPUNR = 6).

It would be handy if < and > buttons would change sorting column, like in classic top

@Atoptool
Copy link
Owner

Implementing a sorting possibility for any column would require a major redesign of atop.
Instead, you can use the parsable output e.g. to find all threads running on CPU6, like this:

atop -Zy -PPRC | awk '$17 == 6 {print $5, $7, $8}'

This command line shows for all threads running on CPU6 the current time ($5), the PID ($7) and the command name ($8) for a live measurement. Add the -r flag to produce this output for a recorded measurement (raw log).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants