New issue
Advanced search Search tips

Issue 668718 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Task Manager takes several seconds to gather data

Project Member Reported by michae...@chromium.org, Nov 25 2016

Issue description

Version: 55.0.2883.59
OS: Windows 10.1

Something annoying me lately is how long Task Manager takes to show CPU usage data.

1. Shift + Esc to open Task Manager

Expected
Tasks are listed along with their memory and CPU usage.

Actual
Tasks are listed. All CPU usage data is 0. Memory and network usage are all "-" (hyphen character).
After 1 second, the network column is populated.
After 2 seconds, the Memory column is populated.
After 3 seconds, the CPU column changes from all 0's to accurate numbers.

This means it takes at least 3 seconds in the best case (when Chrome is performing well) to identify heavy processes, as the tasks don't correctly sort until the data is populated.

Note: Changing the available columns does NOT affect these timings. In particular, after removing Network, it still takes 3 seconds to populate CPU, and 2 seconds to populate all other fields.
 
Owner: nick@chromium.org
Status: Assigned (was: Untriaged)
I don't see this on Chrome OS. Sorry, I don't have a Windows machine to try this on. Nick, can you please take a look?

Comment 2 by ism...@i10z.com, Dec 4 2016

Here on Windows 10 x64 with Chrome 55 update, memory column is never populated (waited for 5 minutes).
Labels: OS-Chrome
afakhry: I can still repro on my samus on 56.0.2924.58. It's only a delay of 2-3 seconds, but it's very consistent.

Comment 4 by nick@chromium.org, Jan 17 2017

Cc: stanisc@chromium.org
This is believably a Windows-specific bug, and I believe we can probably understand what's going on by adding some TRACE_EVENTs.

There's no reason for us to not show memory asap. CPU usage may actually need need a baseline off of which to delta.
Re #2: That issue was fixed recently in  issue 673175 .

Re #3: I just tried on 57.0.2981.0 on a peach_pit and CPU and Memory usages take about 1 second to show up which is expected. I'll try to borrow a samus and see.
#5: CPU takes exactly 3 seconds. Until then everything is marked "0.0" for CPU usage, which is misleading. There is one update every second:

t+0: Task Manager loads:
     Memory and Network columns each display "-" for every row
     CPU usage column displays "0.0" for every row

t+1: Network column is populated

t+2: Memory column is populated

t+3: CPU column is corrected (some values greater than 0.0 are now shown)

If CPU is the sort column, tasks are sorted in no discernible order until the CPU column is correctly populated.

This is at low load.
২৩ মে, ২০১৭ ১১:২৫ pm এ, "michae… via monorail" <
monorail+v2.3419636982@chromium.org> লিখেছেন:
Labels: -Performance -OS-Chrome Performance-Browser
Owner: ----
Labels: Hotlist-DesktopUIValid Hotlist-DesktopUIChecked
**UI Mass Triage**

This issue is still reproducible on windows 10 using latest canary #72.0.3618.0. Adding appropriate labels.



Cc: brucedaw...@chromium.org
Is this a dupe of issue 657009?
Cc: -stanisc@chromium.org davidbienvenu@chromium.org
No, this seems to be different. This seems to be some weirdness in the data collection model. I just invoked Chrome's task manager a few times and there was usually about a one second delay before the memory data populates (that seems too long) and sometimes the *Start Time* column took two seconds (two refresh passes) to populate.

Maybe it's as simple as the tasks to gather the data being tagged as best-effort or some-such, and therefore sometimes getting delayed for a while. I understand the reasoning behind having the data gathering tasks be tagged as best-effort (we don't want task manager slowing down Chrome) but having task manager lagging too much is arguably worse because then we can't reliably get timely data on what Chrome is doing.

TL;DR - my guess is that our data gathering tasks are running at too low a priority and my opinion is that this should probably be fixed. Adding davidbienvenu@ (who might be doing some task manager work), removing stanisc@.

Owner: davidbienvenu@chromium.org
As an experiment, I increased the refresh interval in task_manager_table_model.cc to 20 seconds, which made it easier to see how the data collection works
1st paint - Pid and Priority, which is to be expected - the data collection first enumerates the PIDS and displays rows for each of them.
2nd paint - user handles, cpu of 0
3rd paint - mem footprint, actual cpu, network

Given that the same thing happens with a much larger interval, I doubt this is a task priority issue. In any case, I'll do a bit more debugging.

Sign in to add a comment