When I opened my laptop this morning, it had rebooted itself (after installing updates). Now the .NET Runtime Optimization Service (ngen?) is using quite a bit of CPU while the computer is on battery. I'm wondering, is there any way to ask Windows to defer these tasks until the laptop is plugged in? I had the laptop plugged in overnight but 30% of my battery is gone after less than an hour of usage, which is not the usual situation.
I noticed my fans were really loud when I left my computer for a while, checked SpeedFan and yup: https/imgur.com/TOuhqPp Something was putting a load on my CPU and GPU. I left it alone with Task Manager open and it showed something called NET. Runtime Optimization using 100% of my GPU and about 50% of my CPU. Google comes up with a million results for high CPU usage, but I don't see anyone complaining that NET. Runtime Optimization is using their GPU. So I assume it's some kind of malware, mining bitcoin on my PC, but Malwarebytes comes up with nothing. I did a normal scan and scanned for rootkits. It also disappears as soon as I move my mouse, so I can't easily look into it. I tried Process Monitor to see if anything else is going on. It shows mscorsvw.exe using the CPU. But, again, Google tells me mscorsvw.exe puting a load on the CPU is normal. That still doesn't explain why my GPU is at 100%. What else can I do?
My computer wasn't idle while it was doing this, so I assume its compiling high-priority assemblies after a .Net Framework update from this article.
I checked the windows update history, and it had installed a cumulative update overnight while plugged in. (https://support.microsoft.com/en-ie/help/4038788/windows-10-update-kb4038788). I wish windows would run .net optimisation as part of that process instead of waiting for me to start using the laptop on battery.
user114447
1 Answer
The short answer is no, you cant reliably defer ngen (and you shouldnt try), the only consistent/useful option i found was forcing it to run to completion and not leaving it lurk in the background.
If your trying to save some CPU cycles on battery (or in my case stop a server from running ngen after returning it into service following Windows updates) your best option is to force ngen to run yourself. For a desktop PC, 2 options come to mind:
To run ngen you only need one of the following commands, use the first/most appropriate option for your system:
Below is the minimal output you get from ngen when there are no queued items:
When ngen.exe is ran with
executeQueuedItems it will force it to perform all pending tasks as quickly as possible. Normally ngen runs on a low priority background thread(and apparently just starts at random), the idea being it shouldnt starve other processes of CPU - though that doesnt always work. Running ngen interactively is quicker than leaving it run in the background - but it will impact performance more. How long it takes depends on your hardware and how many/which native images need recompiling.
MisterSmithMisterSmith
Stop Net Runtime Optimization ServiceDisclaimer
It is assumed that users are familiar with the operating system they are using and comfortablewith making the suggested changes. BleepingComputer.com will not be held responsible ifchanges you make cause a system failure.
This is NOT a list of tasks/processes taken from Task Manager orthe Close Program window (CTRL+ALT+DEL) but a list of startup applications,although you will find some of them listed via this method. Pressing CTRL+ALT+DEL identifies programsthat are currently running - not necessarily at startup.Therefore, before ending a task/process via CTRL+ALT+DEL just because it has an 'X' recommendation,please check whether it's in MSCONFIG or the registry first.An example would be 'svchost.exe' - which doesn't appear in either under normal conditions but does via CTRL+ALT+DEL.If in doubt, don't do anything.
Hi RandomguY9000,
Thanks for posting your query on Microsoft Community Forum. mscorsvw.exe is precompiling .NET assemblies in the background. Once it's done, it will go away. Typically, after you install the .NET Redist, it will be done with the high priority assemblies in 5 to 10 minutes and then will wait until your computer is idle to process the low priority assemblies. .net Runtime Optimization Service Windows 10
For more information on mscorsvw.exe refer this link:
http://blogs.msdn.com/b/davidnotario/archive/2005/04/27/412838.aspx The task manager in Windows 8 has been modified for better Graphical user Interface. The End process tree is available under the Details tab in the Task manager. For information on features available on the new Windows 8 task manager refer the link: http://windows.microsoft.com/en-IN/windows-8/task-manager#1TC=t1
Site Functions. Dpms 7mm 08 upper kit. Useful Links. Membership is free and we welcome all types of shooters, whether you're a novice or a pro. Come for the info, stay and make some friends.
Hope the information provided help! In case you have any more issues related to Windows Operating system feel free to post and we will be happy to help. Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |