![]() |
| | #16 |
| (?<!re)tired Join Date: May 2006 Location: Portugal
Posts: 5,220
|
__________________ Originally Posted by brewbuck: Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster. |
| Mario F. is online now | |
| | #17 |
| Super Moderator Join Date: Aug 2001
Posts: 7,472
| I don't see anything odd or nefarious about that screenshot. The size of the idle process depends on what the system is doing (as has been said some operations are performed in the idle process), the type of CPU, the number of cores, etc. And of course you cannot shut down the idle process. Not a trojan, not a worm, and it's a bit scary that a computer literate person thinks that the idle process isn't legit. Truthfully a really nasty virus or trojan won't show up in the task manager because it will hook into svchost. If you see a lot of svchost's then that might be a cause for concern. svchost encompasses a large number of threads that are running on the system but unfortunately with the default task manager you cannot see what they are. I believe Salem's fav guys over at SysInternals have an answer to this with their own task manager app.
__________________ If you aim at everything you will hit something but you won't know what it is. Last edited by Bubba; 07-04-2009 at 10:54 AM. |
| Bubba is offline | |
| | #18 |
| (?<!re)tired Join Date: May 2006 Location: Portugal
Posts: 5,220
| It never even crossed my mind. I was just curious about the size of the process and wanted to know more. I was under the impression this was a fixed size, depending on the kernel. Sure, maybe the number of processors affected the size. But the math didn't add up to 28k. So I was just asking. Never really got an answer.
__________________ Originally Posted by brewbuck: Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster. |
| Mario F. is online now | |
| | #19 |
| Super Moderator Join Date: Aug 2001
Posts: 7,472
| Sorry Mario F. I was addressing that to the OP and not you. I apologize if that was not clear. I would never question you on a simple matter such as this and hold your responses and abilities in very high regard. So to be clear I was stating the OP should know better.
__________________ If you aim at everything you will hit something but you won't know what it is. |
| Bubba is offline | |
| | #20 | |
| The Registered User Join Date: May 2009
Posts: 64
| Quote:
| |
| Aparavoid is offline | |
| | #21 | |
| Super Moderator Join Date: Aug 2001
Posts: 7,472
| Quote:
__________________ If you aim at everything you will hit something but you won't know what it is. | |
| Bubba is offline | |
| | #22 |
| (?<!re)tired Join Date: May 2006 Location: Portugal
Posts: 5,220
| Indeed. It's like trying to become a painter without learning about color theory. It is particularly scary in programming languages like those mostly discussed on these forums. Not only knowledge of computer and OS operation is mandatory in order to effectively use these languages for anything other than the simplest (read useless) programs, but what strikes me most chilling is the fact these languages usually provide their users with an immense incentive to learn more about the machine.
__________________ Originally Posted by brewbuck: Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster. |
| Mario F. is online now | |
| | #23 |
| Banned Join Date: Mar 2009
Posts: 533
|
__________________ ╔╗╔══╦╗ ║║║╔╗║║ ║╚╣╚╝║╚╗ ╚═╩══╩═╝ |
| ಠ_ಠ is offline | |
| | #24 | |
| Registered User Join Date: Apr 2006 Location: United States
Posts: 3,202
| Quote:
__________________ Os iusti meditabitur sapientiam Et lingua eius loquetur indicium "There is nothing either good or bad, but thinking makes it so." (Shakespeare, Hamlet, Act II scene ii) http://www.myspace.com/whiteflags99 | |
| whiteflags is offline | |
| | #25 | |
| Registered User Join Date: Sep 2004 Location: California
Posts: 2,845
| Quote:
| |
| bithub is offline | |
| | #26 |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| A proper "idle loop" will be: Code: here:
hlt
jmp here
Code: L1:
cmp context_switch_needed, 0
jz L2
call do_context_switch
L2:
cmp other_work_needed, 0
jz here
call other_work_function
here:
hlt
jmp L1
As stated elsewhere, the idle process is sometimes doing REAL WORK, in which case it will also need memory for those things. -- Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. |
| matsp is offline | |
| | #27 |
| Hail to the king, baby. Join Date: Oct 2008 Location: Faroe Islands
Posts: 714
| I once had that Idle task thing, that was on Windows 7 build 7000, I havn't had it on task manager for XP, Vista or Windows 7 RC :S Also, it did scare me when I first saw it, like I looked at the CPU usage only and it said 99%, that gave me a shock... Also, I always have a load of those svhost processes, I always think the OS has some bug which makes it start it over and over again... |
| Akkernight is online now | |
| | #28 |
| (?<!re)tired Join Date: May 2006 Location: Portugal
Posts: 5,220
| Okies, been taking a look at the innards of working sets, which essentially forced me to revisit the whole memory management thingy. It's quite curious I never see a change on my Idle Process working set size. It boots on 16k and stays on 16k no matter what I do. With 3Gb RAM and with a very conservative memory usage, I'd expect less aging of the working sets. But I gather many things can affect this; like prefetch and an apparent preference for aged working sets over "free" memory, when handling soft faults. It however becomes established that the discrepancy in values of the Idle Process size report on XP is mostly a function of total system RAM. Thanks.
__________________ Originally Posted by brewbuck: Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster. |
| Mario F. is online now | |
| | #29 | |
| Hat seller extraordinaire Join Date: Apr 2008
Posts: 159
| Apparently the Idle loop runs at dispatch level (it's the last paragraph) so that'd explain it. At that level it can't use anything that'd need to be paged back in, because the page fault handling interrupt has been masked off as that runs at APC_LEVEL (the level below). Quote:
| |
| adeyblue is offline | |
| | #30 | |
| Senior software engineer Join Date: Mar 2007 Location: Portland, OR
Posts: 5,381
| Quote:
I'm kind of disturbed that people don't seem to have ever looked at the task manager before, then are shocked at mundane things. God forbid you use Process Explorer...
__________________ "Congratulations on your purchase. To begin using your quantum computer, set the power switch to both off and on simultaneously." -- raftpeople@slashdot | |
| brewbuck is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What the hell!? Crashes and memory leaks? | pobri19 | C++ Programming | 3 | 09-26-2008 05:45 AM |
| operator from hell | algi | A Brief History of Cprogramming.com | 16 | 12-24-2004 07:36 AM |
| DLL Hell | Sentaku senshi | Windows Programming | 9 | 11-21-2002 08:06 AM |
| Living in the 00'S | mithrandir | A Brief History of Cprogramming.com | 3 | 01-21-2002 09:31 AM |
| Heaven, Hell, and Aetheists/Non-believers | Aran | A Brief History of Cprogramming.com | 34 | 09-10-2001 02:18 PM |