Click here to Skip to main content
15,885,365 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: ChatGTP: Write me a poem about programming Pin
Ron Anders1-Feb-23 9:16
Ron Anders1-Feb-23 9:16 
GeneralRe: ChatGTP: Write me a poem about programming Pin
SteakhouseLuke15-Feb-23 1:02
SteakhouseLuke15-Feb-23 1:02 
GeneralSpan<T> equality Pin
Rob Grainger31-Jan-23 14:05
Rob Grainger31-Jan-23 14:05 
GeneralRe: Span<T> equality Pin
Richard Deeming31-Jan-23 21:50
mveRichard Deeming31-Jan-23 21:50 
GeneralRe: Span<T> equality Pin
Richard Deeming7-Feb-23 4:12
mveRichard Deeming7-Feb-23 4:12 
GeneralWeird One: CPU utilization Pin
raddevus25-Jan-23 8:31
mvaraddevus25-Jan-23 8:31 
GeneralRe: Weird One: CPU utilization Pin
RickZeeland25-Jan-23 9:06
mveRickZeeland25-Jan-23 9:06 
GeneralRe: Weird One: CPU utilization Pin
trønderen25-Jan-23 9:28
trønderen25-Jan-23 9:28 
That flat 19% utilization of all cores is rather strange.

All modern general chips are prepared to reduce the clock speed when load is low, to reduce heating and battery drain. I have seen my 3.3 GHz CPU going down to about 1000 MHz, never as low as 380 MHz. Maybe I am good at keeping it busy Smile | :) . Maybe the OS routine that should increase your clock speed when needed crashed, and 380 MHz is some sort of minimum value (for your processor), so it never was raised, and that is why your PC was sluggish.

Your CPU was stuck at approx. 1/5 its max clock speed. The CPU utilization was approx. 1/5 of the total capacity. If 19% utilization refers to the capacity at full clock speed rather than the current one (I don't know which is the case!), then the flat 19% can be read as '100% utilization at the current clock speed'. If there is a great backlog of CPU tasks, it isn't surprising that all cores are saturated. When I run Handbrake, I see all cores at flat 100% utilization for minutes at a time (at the nominal 3.3 MHz clock frequency). Trying to use the PC for other tasks in parallel with Handbrake is futile.

If you immediately after boot up turn on the Resource Monitor CPU view, you will loads of processes coming and going, for completing the boot up. When you see the login screen, there is still a lot to be done in the background. It takes several minutes before activity calms down, even if you do not touch the keyboard, activate no user task. If the CPU is strangled to 1/5 the normal speed, it may take five times as long. Maybe this startup activity is what you saw saturating all cores (given the clock speed reduction).

If this theory is correct, the one remaining problem is: What caused your PC to refuse to raise the clock frequency? If it had done so, that backlog of startup tasks could have been processed before you even noticed it. I have no idea about what could cause the clock adjustment to fail. (I have never looked into Windows source code at all - never had access to it, never cared to.)
GeneralRe: Weird One: CPU utilization Pin
trønderen25-Jan-23 9:57
trønderen25-Jan-23 9:57 
GeneralRe: Weird One: CPU utilization Pin
raddevus25-Jan-23 10:22
mvaraddevus25-Jan-23 10:22 
GeneralRe: Weird One: CPU utilization Pin
RainHat25-Jan-23 23:00
RainHat25-Jan-23 23:00 
GeneralWhat the *ell Windows Explorer? Pin
charlieg18-Jan-23 9:23
charlieg18-Jan-23 9:23 
GeneralHow old am I, according to Amazon? Pin
jsc4214-Jan-23 5:09
professionaljsc4214-Jan-23 5:09 
GeneralRe: How old am I, according to Amazon? Pin
Richard Deeming15-Jan-23 22:38
mveRichard Deeming15-Jan-23 22:38 
GeneralRe: How old am I, according to Amazon? Pin
jsc4215-Jan-23 23:05
professionaljsc4215-Jan-23 23:05 
GeneralRe: How old am I, according to Amazon? Pin
Jeremy Falcon18-Jan-23 2:53
professionalJeremy Falcon18-Jan-23 2:53 
GeneralRe: How old am I, according to Amazon? Pin
charlieg18-Jan-23 8:42
charlieg18-Jan-23 8:42 
GeneralRe: How old am I, according to Amazon? Pin
jsc4218-Jan-23 22:54
professionaljsc4218-Jan-23 22:54 
GeneralForbidden File Names? Pin
kmoorevs30-Dec-22 9:23
kmoorevs30-Dec-22 9:23 
GeneralRe: Forbidden File Names? Pin
trønderen30-Dec-22 9:52
trønderen30-Dec-22 9:52 
GeneralRe: Forbidden File Names? Pin
kmoorevs2-Jan-23 7:16
kmoorevs2-Jan-23 7:16 
GeneralRe: Forbidden File Names? Pin
Eddy Vluggen2-Jan-23 10:36
professionalEddy Vluggen2-Jan-23 10:36 
GeneralRe: Forbidden File Names? Pin
Daniel Pfeffer2-Jan-23 21:23
professionalDaniel Pfeffer2-Jan-23 21:23 
GeneralRe: Forbidden File Names? Pin
Eddy Vluggen2-Jan-23 22:43
professionalEddy Vluggen2-Jan-23 22:43 
GeneralRe: Forbidden File Names? PinPopular
haughtonomous2-Jan-23 21:47
haughtonomous2-Jan-23 21:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.