mike
2023-02-06 18:14:56 UTC
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.