Bug 365942 - [visualizer] Have multicore visualizer handle large amounts of threads
Summary: [visualizer] Have multicore visualizer handle large amounts of threads
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-07 13:18 EST by Marc Khouzam CLA
Modified: 2020-09-04 15:17 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Khouzam CLA 2011-12-07 13:18:11 EST
From bug 335027 comment #37:

> (In reply to comment #35)
> > Poor display of 1000 threads
> 
> As I mentioned in the conf call a while back, we don't normally
> have to worry about that case, because having a gazillion
> threads on the same core is usually not an effective use
> of processor resources. One should be using a master/worker
> pattern, or thread pooling, etc. so that ideally one or at most
> a few threads are running on each core.
> 
> This hasn't come up as an issue for the Grid View because
> developers tend to be savvy about multicore design, but
> you're right that people running generic code in the visualizer
> are more likely to try "let see if it goes to eleven"
> kinds of programs, which would raise these kinds of issues.
> 
> We can modify the visualizer so that if more than
> a displayable number of threads are on a given core, we only draw
> a few, then a "..." indication, or otherwise indicate there are
> "An Awful Lot of Threads Here". (In a tooltip, or other mechanism,
> we can show the individual thread IDs, if the list isn't
> ridiculously long, and if it is, we use "..." again.)
> 
> I wouldn't go overboard trying to squeeze in lots of threads,
> because as noted above, this case should be the exception
> rather than the rule. (And in fact, having a lot of threads
> crowded on one tile is a good visual indicator of imbalanced
> code, so you don't _want_ it to look too neat and tidy! :-)