• task manager

    From mike@21:1/5 to All on Mon Feb 6 21:44:49 2023
    I used to use task manager but now I'm using process explorer.
    Both have the same problem.

    When my pc is crunching away for no known reason, I hit control alt delete
    and bring up the task manager via process explorer but things move around
    so much I'm always using an eyeball sort - which is inefficient & error
    prone.

    Obviously I sort by eyeball in the cpu or i/o columns to look for the
    offender but the lines move around too quickly - the program need a lag of about 10 seconds to be temporarily turned on when you're using your
    eyeballs to find the offenders (which come and go, I know).

    Obviously I can stabilize the sort by pid or process name but then I have
    to (again) sort by eyeball to find the constantly changing offenders.

    What I want is a program that spits out ONLY something like the top three offenders when I press a button.

    Just that. A static list of the worst cpu (or i/o) users at that moment.

    Does such a tool exist?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ken Blake@21:1/5 to All on Mon Feb 6 09:57:38 2023
    On Mon, 6 Feb 2023 21:44:49 +0530, mike <this@address.is.invalid>
    wrote:

    I used to use task manager but now I'm using process explorer.
    Both have the same problem.

    When my pc is crunching away for no known reason, I hit control alt delete >and bring up the task manager via process explorer but things move around
    so much I'm always using an eyeball sort - which is inefficient & error >prone.

    Obviously I sort by eyeball in the cpu or i/o columns to look for the >offender but the lines move around too quickly - the program need a lag of >about 10 seconds to be temporarily turned on when you're using your
    eyeballs to find the offenders (which come and go, I know).

    Obviously I can stabilize the sort by pid or process name but then I have
    to (again) sort by eyeball to find the constantly changing offenders.


    Have you tried clicking on the CPU header to sort on it? Will that do
    what you want?

    What I want is a program that spits out ONLY something like the top three >offenders when I press a button.

    Just that. A static list of the worst cpu (or i/o) users at that moment.

    Does such a tool exist?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From VanguardLH@21:1/5 to All on Mon Feb 6 11:14:59 2023
    Also see replies to where you also MULTI-posted, like alt.comp.freeware.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From mike@21:1/5 to Ken@invalid.news.com on Mon Feb 6 23:12:40 2023
    On 06-02-2023 16:57 Ken Blake <Ken@invalid.news.com> wrote:

    Have you tried clicking on the CPU header to sort on it? Will that do
    what you want?

    The problem has nothing do to with the sort and I said that in the op.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From mike@21:1/5 to V@nguard.LH on Mon Feb 6 23:44:56 2023
    XPost: alt.comp.freeware, alt.msdos.batch

    On 06-02-2023 22:44 VanguardLH <V@nguard.LH> wrote:

    Also see replies to where you also MULTI-posted, like alt.comp.freeware.

    Nobody replied but you but I'll respond to both newsgroups if you like.
    And, since it's turning into a batch command search, I'll add another.

    Thanks for your suggestion of looking at https://superuser.com/a/1419186
    Which first suggests this powershell command which needs a longer sleep

    While(1) {ps | sort -des cpu | select -f 15 | ft -a; sleep 1; cls}
    I changed that to a ten second sleep which works better than 1 second.
    While(1) {ps | sort -des cpu | select -f 15 | ft -a; sleep 10; cls}
    Then I got rid of the clearscreen so that the history is preserved.
    While(1) {ps | sort -des cpu | select -f 15 | ft -a; sleep 5}

    Next time the machine is slowing down, I'll try it to see if it identifies
    what process is doing all the i/o that seems to be going on at times.

    Later was another similar suggestion which was easier to understand.
    while (1) { ps | sort -desc cpu | select -first 30; sleep -seconds 2; cls } while (1) { ps | sort -desc cpu | select -first 5; sleep -seconds 10; cls }

    A later findstring suggestion helps pin down the high-use process.
    while (1) { Ps |Findstr explorer | Sort -desc cpu | Select -first 30; Sleep -seconds 2; Cls }
    while (1) { Ps |Findstr explorer | Sort -desc cpu | Select -first 30; Sleep -seconds 2; }

    Same with the next suggestion in that helpful superuser thread you found. While(1) { $p = get-counter '\Process(*)\% Processor Time'; cls; $p.CounterSamples | sort -des CookedValue | select -f 15 | ft -a}
    Which I changed to add a ten second sleep and a clearscreen after that. While(1) { $p = get-counter '\Process(*)\% Processor Time'; cls; $p.CounterSamples | sort -des CookedValue | select -f 15 | ft -a; sleep -seconds 10; cls }

    There is also the suggestion you mentioned of testing out Windows ntop. https://github.com/gsass1/NTop https://github.com/gsass1/NTop/releases/tag/v0.3.4 https://github.com/gsass1/NTop/releases/download/v0.3.4/ntop.exe

    Thank you for those excellent suggestions, which I will test out.

    It may take a couple of days before I have something working to do what I
    want which is just to list what is making my machine slow down sometimes.

    I'll let you know how they worked after I run a few tests since it's
    important to nail down which process is slowing down the machine the most.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From mike@21:1/5 to this@address.is.invalid on Mon Feb 6 12:42:42 2023
    XPost: alt.comp.freeware, alt.msdos.batch

    On 06-02-2023 12:14 mike <this@address.is.invalid> wrote:

    I'll let you know how they worked after I run a few tests since it's important to nail down which process is slowing down the machine the most.

    I also installed Memory Hogs but it's seems to be a very strange program
    which will take some getting used to even as the author is reputable.

    https://www.ghacks.net/2017/01/23/memory-hogs/ http://michaels-tech-notes.info/software-database/ https://www.michaels-tech-notes.info/app/download/3888974/MemoryHogs.exe

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Burns@21:1/5 to mike on Mon Feb 6 19:47:24 2023
    mike wrote:

    Obviously I sort by eyeball in the cpu or i/o columns to look for the offender but the lines move around too quickly

    You realise you can speed up or slow down the refresh rate, and even
    pause it?

    Maybe in Win11 they've even fixed the bug where once you change the
    speed you can never get back to the original refresh rate through the GUI?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From mike@21:1/5 to usenet@andyburns.uk on Wed Feb 8 10:49:12 2023
    On 06-02-2023 19:47 Andy Burns <usenet@andyburns.uk> wrote:

    Obviously I sort by eyeball in the cpu or i/o columns to look for the
    offender but the lines move around too quickly

    You realise you can speed up or slow down the refresh rate, and even
    pause it?

    I did not know that. Thank you. But are you talking about Process Explorer?
    Or the Task Manager (which Process Explorer replaces)?

    In Process Explorer the only thing I can find is "Differences Highlight"
    time which is set to 1 second by default. I changed it to ten seconds.

    But it didn't do anything different that I could easily tell.

    Maybe in Win11 they've even fixed the bug where once you change the
    speed you can never get back to the original refresh rate through the GUI?

    I think I found the culprit. It seems to be Thunderbird that is hanging. https://i.postimg.cc/sg6DpCc9/hung.jpg

    The problem now is I don't know how to debug WHY Thunderbird is hanging.
    What would you do next if you found out it was Thunderbird hanging the CPU?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Burns@21:1/5 to mike on Wed Feb 8 09:56:05 2023
    mike wrote:

    Andy Burns wrote:

    You realise you can speed up or slow down the refresh rate, and even
    pause it?

    I did not know that. Thank you. But are you talking about Process Explorer? Or the Task Manager

    Task Manager per your original subject

    (which Process Explorer replaces)?

    It doesn't really (but i know what you mean)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to mike on Wed Feb 8 18:46:46 2023
    On 2023-02-06 18:42, mike wrote:
    On 06-02-2023 16:57 Ken Blake <Ken@invalid.news.com> wrote:

    Have you tried clicking on the CPU header to sort on it? Will that do
    what you want?

    The problem has nothing do to with the sort and I said that in the op.

    Apparently, but when you sort by CPU load, the table seems to be more
    stable, when the machine is busy. Meaning, when there is a process that
    is consistently busy, hung.

    And if I remember correctly, you can pause it.

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From PeterC@21:1/5 to mike on Wed Feb 8 18:10:08 2023
    On Mon, 6 Feb 2023 23:12:40 +0530, mike wrote:

    On 06-02-2023 16:57 Ken Blake <Ken@invalid.news.com> wrote:

    Have you tried clicking on the CPU header to sort on it? Will that do
    what you want?

    The problem has nothing do to with the sort and I said that in the op.

    I use System Explorer as a replacement for TM and had the same trouble with CPU. Found a setting that changes Update Speed from Normal to Slow - might there be such in your app?
    --
    Peter.
    The gods will stay away
    whilst religions hold sway

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From mike@21:1/5 to giraffenos.pam@homecall.co.uk on Thu Feb 9 00:16:32 2023
    On 08-02-2023 19:10 PeterC <giraffenos.pam@homecall.co.uk> wrote:

    I use System Explorer as a replacement for TM and had the same trouble with CPU. Found a setting that changes Update Speed from Normal to Slow - might there be such in your app?

    Thanks for all the good advice for pausing the output from the various
    process explorers. I think the best program in some ways is the Memory Hogs program (which works a bit funny so you have to get used to how it works).

    It told me within hours that what was hanging up the CPU was Thunderbird. https://i.postimg.cc/sg6DpCc9/hung.jpg

    To gather more data, I installed What is Hang from Nirsoft which confirmed. https://i.postimg.cc/Vsg7ShQL/tbhung.jpg

    But that brings up a confusing question about the task managers out there.

    What's unfortunate is that I couldn't get this obvious and clear "hang" information out of process explorer (which "replaces" the task manager).

    In hind sight, does process explorer or task manager have a way to confirm
    when a process is hung? Is there a way to get it to say "this is hung?"

    I mean, it could be using zero resources when it's hung, is that right?

    Like, what does a "hung" app do if it's doing nothing?

    In other words, looking at process explorer or task manager, how would thunderbird look when it's hung compared to how it looks when not hung?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to mike on Wed Feb 8 20:39:02 2023
    On 2023-02-08 19:46, mike wrote:
    On 08-02-2023 19:10 PeterC <giraffenos.pam@homecall.co.uk> wrote:

    I use System Explorer as a replacement for TM and had the same trouble
    with
    CPU. Found a setting that changes Update Speed from Normal to Slow -
    might
    there be such in your app?

    Thanks for all the good advice for pausing the output from the various process explorers. I think the best program in some ways is the Memory Hogs program (which works a bit funny so you have to get used to how it works).

    It told me within hours that what was hanging up the CPU was Thunderbird. https://i.postimg.cc/sg6DpCc9/hung.jpg

    To gather more data, I installed What is Hang from Nirsoft which confirmed. https://i.postimg.cc/Vsg7ShQL/tbhung.jpg

    But that brings up a confusing question about the task managers out there.

    What's unfortunate is that I couldn't get this obvious and clear "hang" information out of process explorer (which "replaces" the task manager).

    In hind sight, does process explorer or task manager have a way to confirm when a process is hung? Is there a way to get it to say "this is hung?"

    I mean, it could be using zero resources when it's hung, is that right?

    Yes.


    Like, what does a "hung" app do if it's doing nothing?

    There are two basic meanings of "hung". It can be waiting for something
    to happen, fully stopped, waiting for the operating system to tell it
    that whatever it is waiting on it is ready. Or it can be hung in an
    endless loop, doing something for ever, never hitting the condition for
    loop exit.

    And there are "non full hangs". A process can be apparently hung, doing something that is very CPU intensive and that takes for ever (either a
    very long task, or an endless loop), but still be responsive (either
    really responsive or barely responsive) to external actions, say a keyboard.



    In other words, looking at process explorer or task manager, how would thunderbird look when it's hung compared to how it looks when not hung?

    Depends...

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Char Jackson@21:1/5 to mike on Wed Feb 8 18:36:45 2023
    On Thu, 9 Feb 2023 00:16:32 +0530, mike <this@address.is.invalid> wrote:

    In other words, looking at process explorer or task manager, how would >thunderbird look when it's hung compared to how it looks when not hung?

    In Task Manager, I've seen "Not Responding" on a task now and then.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)