Skip to content

scxtop: add v0 process view #2434

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

Merged

Conversation

yaakov-stein
Copy link
Collaborator

@yaakov-stein yaakov-stein commented Jul 20, 2025

This adds an initial process view that is sorted by number of threads. The idea here is to get this out and quickly iterate with new features (more on that below). The process view will be focused on information that would be helpful for scheduler development and debugging as opposed to a general process view like top/btop. Following that idea, the v0 contains the last CPU/LLC/NUMA and DSQ that the process ran on.

This also changes the default view to be more of an overview, pushing the DSQ statistics to the scheduler view (s).

Upcoming Features:

  • Turn into stateful widget - ability to scroll and filter by process name
  • Sorted by Cpu Utilization
  • Thread view (allows one to dive into a specific process)
  • Prettier UI
  • Additional fields such as scheduling latency, slice duration (reach out to me here or in the discord if there are any that you think would be helpful)

@hodgesds
Copy link
Contributor

LGTM

}

/// Creates a new ProcData from a given tgid.
pub fn from_tgid(tgid: i32, max_data_size: usize) -> Result<ProcData> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be easy to generate tests for this

@yaakov-stein yaakov-stein added this pull request to the merge queue Jul 21, 2025
Merged via the queue into sched-ext:main with commit bac6db8 Jul 21, 2025
20 checks passed
@yaakov-stein yaakov-stein deleted the ystein/scxtop_add_process_view branch July 21, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants