Hi CPU usage in ABAP coding
Hello,
I have a custom program (programmed by somebody else) which is churning away all day long and consuming between 50% and 70% CPU as seen in the 'top' command. I'm on HP-UX with 8 CPUs installed. The CPU usage is consistently at this level. (I matched the PID from SM50 with the PID in 'top')
I ran abap traces in ST12 which found that between 60% and 70% of the time was spent in the following coding:
773 IF SY-SUBRC <> 0.
774 LOOP AT GIT_ZTABLEA TRANSPORTING NO FIELDS
775 WHERE KUNNR = PC_KUNNR "CUSTOMER CODE゙
776 AND ZZVCGRTNFG IN P_DRTNFG "FLAG゙(SELECTION CRITEREA)
777 AND ZZVCGSTPFG IN P_DSPDFG . "QUIT FLAG゙(SELECTION CRITEREA)
778 EXIT.
779 ENDLOOP .
780
781 *
782 PI_SUBRC = SY-SUBRC .
783 RETURN .
784
785 *
786 ELSE.
787 LOOP AT GIT_ZTABLEA TRANSPORTING NO FIELDS
788 WHERE ZZVCGGRPID = GFC_TABLEB-ZZVCGGRPID "GROUP ID
789 AND ZZVCGRTNFG IN P_DRTNFG "FLAG゙(SELECTION CRITEREA)
790 AND ZZVCGSTPFG IN P_DSPDFG. "STOP FLAG゙(SELECTION CRITEREA)
791 EXIT.
792 ENDLOOP .
I guess the idea here is to just find the number of rows in GIT_ZTABLEA for certain conditions.
Is there a simple and less intensive way of achieving this?
(apologies in advance for foreseen dumb questions. I'm very new to coding).
Peter
> LOOP AT GIT_ZTABLEA TRANSPORTING NO FIELDS
> 775 WHERE KUNNR = PC_KUNNR "CUSTOMER CODE゙
> 776 AND ZZVCGRTNFG IN P_DRTNFG "FLAG゙(SELECTION CRITEREA)
> 777 AND ZZVCGSTPFG IN P_DSPDFG . "QUIT FLAG゙(SELECTION CRITEREA)
sorted table ... is the usual answer but not in this case.
You should check the IN P_DRTNFG "FLAG゙(SELECTION CRITEREA) ?
What does it mean? I don`t undterstand the flag.
With the IN conditions I doubt that there is any optimziation possible, it will always scan.
If the two IN-flag are really flags then it should be possible to write equal condition
and get something
WHERE k = a AND z1 = b AND z2 = c.
The can be solved with sorted tables.
And from the coding you show with will exit after the first solution, so a READ would then also
be enough. The LOOP is only used because the WHERE is only possible with the LOOP.
but a LOOP is not really necessary because it check only the first solution.
So please revise the logic.
Then it will become really fast.
Siegfried
Similar Messages
-
Avoiding 100% CPU Usage
Hi, I don't know too much about concurrency but I thought I had the general idea (obviously not) so I would appreciate it if someone could point me in the right direction here.
I have a program with a class called Client, which has a Queue of Events (My own class called Event)., it also has two methods hasEvent() and nextEvent() which return a boolean and an Event respectively.
Now I made a small program to test that Client was working properly:
public class Test {
private static Client one;
private static Client two;
public static void main(String args[]) {
one = new Client();
two = new Client();
one.connect();
two.connect();
(new Thread() {
public void run() {
getEvents(one);
}).start();
(new Thread() {
public void run() {
getEvents(two);
}).start();
public static void getEvents(Client c) {
while(c.isConnected()) {
if(c.hasEvent()) {
Event e = c.nextEvent();
// Do stuff with the event.
}I know the way i'm just creating Threads probably isn't the best, but I was just trying to test that Client was working properly.
The problem is that when I run the program the CPU usage jumps to 100% and stays there.
I'm assuming it is to do with the while loop.
How would I go about making this kind of a loop without using so much CPU?
ThanksOk thanks,
I've got this for my run method:
public void run() {
running = true;
while (running) {
while (!connected) {
try {
wait();
} catch (InterruptedException e) {
sendEvent(0);
}and at the end of my connect() method I have notifyAll().
But both calls (wait and notifyAll) both throw IllegalMonitorStateExceptions with no error message.
EDIT: Fixed the notifyAll one by making connect synchronized.
To fix the wait one should I add a synchronized block around part of it or make run synchronized?
I don't really need it (or any of my methods really) to be synchronized because i'm not intending to call them from separate threads at the same time.
But do they have to be synchronized for the blocking to work?
Oh, and is it acceptable (that is, good coding practice) to make run synchronized?
Edited by: KrimsonEagl on 6/11/2009 14:39 -
This is a rather technical question about CPUs. I have the latest, top end, quadcore i7 iMac. I'm using it to run simulations in paralel using the 4 cores. For that I'm using Matlab, but I don't think the question is specific to Matlab. The program splits into 4 parellel processes. Each of these run at 100% CPU according to Activity Monitor. Yet, total CPU usage is only 50%. This doesn't make sense to me. If I have one process running at 100% total CPU usage is around 12.5%. Again, multiplying by gives 50%. Does it mean Apple only allows users to use 50% of the CPU? Or is it a technicallity in Activity Monitor or the way Intel is accounting for CPU usage? On my Macbook Air, if I have two processes running at 100%, total CPU usage is 100%, which makes more sense.
Well, depends on coding & other resources, so many times there's zero gain, I've even read where 4 Cores beat 6 Cores at many things.
Some processors take multithreading even further by running two threads in each core. This is what Intel calls hyperthreading (also called simultaneous multithreading). For example, the Intel Core i7 processor with four cores can run eight threads simultaneously - two in each core. Apparently, the more threads you can run simultaneously the more work you get done in a given time. But there is a problem here: The two threads running in the same core are competing for the same resources. If each of the two threads gets only half the amount of a limiting resource then it will run at half speed, and the advantage of hyperthreading is completely gone. Two threads running at half speed is certainly not better than a single thread running at full speed.
http://www.agner.org/optimize/blog/read.php?i=6
http://www.makeuseof.com/tag/hyperthreading-technology-explained/ -
Help with regular cpu usage spike
im running a VI thats reading data off a mouse through a VISA driver. i get these strange spikes in cpu usage which are regular at ~12-13 second intervals, which i haven't got a clue as to the cause.
any ideas??
Attachments:
cpu spike.jpg 73 KBhi all,
thanks for the suggestions. ive looked with sysinternals, and it appears to be a very minor increase in labview cpu usage - i closed all antivirus related processes, and the spike still continues, so it doesn't appear to be that...
ive attached the vi, in case its some stupid coding issue..
apologies for being so ignorant, but how would i go about checking if it's some issue caused by a windows update or whatnot..
Attachments:
mouse_reader_no_output.vi 44 KB -
CPU Usage of Xcode while editing
Hi,
I have a early 2011 Macbook Pro 13, and i am a college student and use my mac for my college needs and also for some development work. I recently upgraded to Mountain Lion from Lion, and i found everything to be fine, until today i found out in Activity Monitor that, when i just opened a C++ file to edit it,not even an Xcode Project, just the file, Xcode was taking a very high CPU usage and it started warming the under side of the notebook as well after a few hours. This would not be the case when i had Lion. I am not sure if this issue is specific to Xcode 4.4 or something else.
Please help me get a solution for this..i do coding on the go as well and this eats battery a lot more as well.
ThanksAs mentioned in my post, i did not open an Xcode project to edit the code. i merely opened the folder containing my code in finder, double clicked the C++ file, which opened it in the Xcode editor. In this mode Xcode only gives me code completion and syntax help, but does not show live issues like errors or warnings, so i do not think that your suggestion will help.
In any case i tried your suggestion and it didnt seem to help -
High CPU Usage when charging Macbook Pro 2011 13"
Hey,
Over the last week or so I noticed that when my Macbook Pro (Late 2011 13") was switched on and charging the CPU usage shoots up to ~90% with the fan operating at roughly 6.2k RPM. I have had the laptop a year come the end of the month and mainly use it for word processing, coding and general web browsing.
I updated OS X to 10.8.3 this morning and the problem still exists. If I remove my charger the problem goes away.
I've tried resetting the SMC but I don't know if it worked.
Has anyone else had this issue and been able to rectify it?
There is no Apple store in my home town and I'm praying there is something I can do rather than drive 20 miles or so to the nearest store.
If it is of any benefit, it is the stock build in terms of RAM and HDD (haven't got round to ordering an SSD yet ).
Mountain Lion OS X 10.8.3
Boot ROM Version: MBP81.0047.B27
SMC Version (system): 1.68f99
Thank youHi Fernando,
I came across a Google search result which was from a forum belonging to a folding application I had previously installed, I cannot recall the name of it.
When I checked Activity Monitor application I could see that there was a process belonging to the folding@home application. Even though I had removed the application it still left a file behind which was continually being used (somehow).
Hope this helps. You may not have had this application in particular, but I guess there could be similar behaviours with other applications?
Kind regards
Jamie
Message was edited by: Kurakai87 -
High CPU usage while running a java program
Hi All,
Need some input regarding one issue I am facing.
I have written a simple JAVA program that lists down all the files and directories under one root directory and then copies/replicates them to another location. I am using java.nio package for copying the files. When I am running the program, everything is working fine. But the process is eating up all the memories and the CPU usage is reaching upto 95-100%. So the whole system is getting slowed down.
Is there any way I can control the CPU usage? I want this program to run silently without affecting the system or its performance.Hi,
Below is the code snippets I am using,
For listing down files/directories:
static void Process(File aFile, File aFile2) {
spc_count++;
String spcs = "";
for (int i = 0; i < spc_count; i++)
spcs += "-";
if(aFile.isFile()) {
System.out.println(spcs + "[FILE] " + aFile2.toURI().relativize(aFile.toURI()).getPath());
String newFile = dest + aFile2.toURI().relativize(aFile.toURI()).getPath();
File nf = new File(newFile);
try {
FileCopy.copyFile(aFile ,nf);
} catch (IOException ex) {
Logger.getLogger(ContentList.class.getName()).log(Level.SEVERE, null, ex);
} else if (aFile.isDirectory()) {
//System.out.println(spcs + "[DIR] " + aFile2.toURI().relativize(aFile.toURI()).getPath());
String newDir = dest + aFile2.toURI().relativize(aFile.toURI()).getPath();
File nd = new File(newDir);
nd.mkdir();
File[] listOfFiles = aFile.listFiles();
if(listOfFiles!=null) {
for (int i = 0; i < listOfFiles.length; i++)
Process(listOfFiles, aFile2);
} else {
System.out.println(spcs + " [ACCESS DENIED]");
spc_count--;
for copying files/directories:public static void copyFile(File in, File out)
throws IOException {
FileChannel inChannel = new
FileInputStream(in).getChannel();
FileChannel outChannel = new
FileOutputStream(out).getChannel();
try {
inChannel.transferTo(0, inChannel.size(),
outChannel);
catch (IOException e) {
throw e;
finally {
if (inChannel != null) inChannel.close();
if (outChannel != null) outChannel.close();
Please let me know if any better approach is there. But as I already said, currently it's eating up the whole memory.
Thanks in advance. -
Platform is WIN_XP Pro and machine is a P4 at 2.5Ghz with 512 Mb ram.
LV7.1 + PCI 6229
I am using 50ms Timed loop for running a state machine inside it
and also a whole lot of other things like reading / writing
DAQMx functions; file I/O functions and such. As the
project involves a main and sub-panlel set up local variables
could not be elimnated fully and there should be something like 150 of
them. But not all are accessed always - maybe about 15 of them at any
given time depending on the SM staus.
Problem :
Once started the "Finished late" indication is off and
the actual timing alternates between 49 to 52 ms. The CPU
usage is around 25%.
But as time goes by, the system gets unstable : After 15 minutes
or so, the Finished Late indication is always ON and the CPU usage is
gradually tending towards or exceeds 100%.
Obviously the machine control timing now gets affected and things slow
down badly. Closing the application ands restarting repeats the above
cycle.
I am at a loss to understand what is happening ? WIll
breaking down the single Timed Loop to multiple ones help ? WIll
that be an efficient way of parallel threading ?
I can post the code but its quite large and will do it as a last resort.
thanks
Raghunathan
Raghunathan
LV2012 to Automate Hydraulic Test rigs.Hello,
It sounds like an interesting problem. It would be worth some experimentation to figure out what's going wrong - attempting to decouple major "pieces" of the code would be helpful. For example, you could try breaking your code into multiple loops if that makes sense in your architecture, but perhaps you could even eliminate all but one of the loops to begin with, and see if you can correlate the problem to the code in just one of your loops.
Another concern is that you mention using many local variables. Variable read operations cause new buffer allocations, so if you're passing arrays around that way, you could be hitting a problem of forcing your machine to perform many allocations and deallocations of memory. As arrays grow, this can be a bigger and bigger problem. You can use other techniques for passing data around your block diagram, such as dataflow if possible (just simple wires), or queues where dataflow can't dicatate program flow completely.
Hopefully looking into your code with the above considerations will lead you in the right direction. In your case, removing code so that you can identify which elements are causing the problem should help significantly.
Best Regards,
JLS
Best,
JLS
Sixclear -
Which Is the Best App to Show CPU Usage by App?
ActMonitor by Aeonika ($.99) and System Activity Monitor by Recession Applications LLC ($1.99) are the 2 activity monitors with 5 star ratings. However, the info available for each in the App Store and their websites failed to show whether either measured each open and background apps CPU usage individually.
Knowing that info is the only way we'll get to the bottom of iOS 7.1's higher battery usage.
Does anyone know of a CPU usage monitor that does give us individual app CPU usage?Hi Susan,
Kindly check out Flash pro CC
For more details: Explore Adobe desktop apps | Adobe Creative Cloud
Thanks,
Atul Saini -
I've cleared cookies multiple times
I've emptied the cache
I cleared my download history, and a majority of my browsing history
I've tried having hardware acceleration for both flash and firefox on and off
I turned off all my apps and plugins and when that did nothing I turned back on the ones I need. I never had a lot of apps to begin with. only a max of 5. I had quite a few plugins, but i disabled all but quicktime, flash, and silverlight. I have those three set on "ask to activate" so none are "always active" anymore.
I also tried a couple things from the FAQ and forums here about changing a few settings in the "about:config" setup.
A few of the above things initially worked, but after a day or two it'd be back to sucking up my CPU and memory. I would then try the same thing again, and this second time there would be no improvement.
The real memory will fluctuate between 200 MB and 1.7 GB, and has done so for quite a while.
Even after I've left streaming sites, and sites with lots of images, and I'm not downloading anything, the memory and the CPU will still do that. I only have a handful of tabs open at a timeusually, and all of them are mostly text. I'll quit and reopen firefox, which will initially bring the memory and CPU usage down, but it inevitably climbs up quite quickly, regardless of my tab usage. It'll be the same if I'm playing a flash game or scrolling through blogs.
I never had any of these problems with Firefox 23, and my internet usage habits haven't changed at all. I had some of this slowness a few times with version 24, but nowhere near as bad as this, or as constant. Almost everyday I end up googling for other ways to speed things up. Everything I do never slowed down Firefox on earlier versions.
I've tried all my usual tasks on Safari which will never climb above 30-40 MB of memory, even on netflix streaming, or flash games, and the CPU will average around 8 and 11%.i'm also having major CPU problems w/ FF 29.0.1. when i restart the app it calms down again but after loading tabs it steadily climbs up to 100% after not too long. i have checked out the 2 CPU links/articles above and do all the basic troubleshooting and tips, but with all the FF tools & add-ons isn't there some sort of CPU monitor that has the ability to display which extensions/scripts are hogging the CPU? Activity Monitor on Mac just shows the total used by the app. it's impossible in my case to efficiently disable dozens of add-ons & scripts, restart, and test each one by one b/c it can take several hrs before the CPU starts to spike high again. i have no time for this.
thanks -
Problem with paintComponent, and CPU usage
Hi,
I had the weirdest problem when one of my JDialogs would open. Inside the JDialog, I have a JPanel, with this paintComponent method:
public void paintComponent(Graphics g) {
super.paintComponent(g);
Color old = g.getColor();
g.setColor(Color.BLACK);
g.drawString("TEXT", 150, 15);
g.setColor(old);
parent.repaint();
now when this method is called, the CPU usage would be at about 99%. If i took out the line:
parent.repaint();
the CPU usage would drop to normal. parent is just a reference to the Jdialog that this panel lies in.
Anyone have any ideas on why this occurs?
Thanks!1) I never got a stack overflow, and i have had this in my code for quite sometime...If you called paint() or paintComponent(), I'm betting that you would see a stack overflow. The way I understand it, since you are calling repaint(), all you are doing is notifying the repaint manager that the component needs to be repainted at the next available time, not calling a paint method directly. good article on how painting is done : http://java.sun.com/products/jfc/tsc/articles/painting/index.html#mgr
2) If this is the case, and the two keep asking eachother to paint over and over, .....
see above answer -
Problem with memory usage and CPU usage
Hello,
i have a problem with the memory usage and cpu usage in my project!
My application must run for more than 24 hrs. The problem is that the longer it runs the bigger is the memory and cpu usage!
It starts with ~15% CPU usage and ~70 MBytes memory usage. After ~ 24hrs the CPU usage is ~60% and the memory usage is ~170 MBytes!
After 3 days the CPU usage is almost about 70% and the memory usage is about 360 MBytes!
What can I do to reduce this huge recource usage?
Thank you!Hi Pahe,
I think the issue is memory usage, since CPU usage can increase due to greater memory requirements.
Anyway, it's difficult to debug without seeing your code, can you post it (possibly for LV 7.1 compatibility)? Or just post a JPEG of the piece of code that can give problems...
I guess you're appending data to an array instead of replace data elements, but I can't be sure...
Have a nice day!
graziano -
Hi there,
since a few days there is on some machines (40-60) a high cpu usage on one core (quad core cpu machines) with the WMIPRSVE.EXE if the HARDWARE INVENTORY CYCLE started.
i try out some tests, read some forum articles and troubleshooting the WMI management but a real problem i doesn´t see.
in some articles i read that hardware inventory runs about minutes up to more hours but some machines runs longer, someone more as 1 day.
here an example of mine PC:
at 8:07 i started Hardware Inventory Cycle, in the InventoryAgent.log i can see that some Collection Namespace are captured.
after a few minutes there stopped and does nothing round about 5.9 hours or better, after 21436.097 Seconds.
For any hints i am grateful. :)
Inventory: *********************** Start of message processing. ***********************
InventoryAgent 18.03.2015 08:09:56
11088 (0x2B50)
Inventory: Message type is InventoryAction InventoryAgent
18.03.2015 08:09:56 11088 (0x2B50)
Inventory: Temp directory = C:\WINDOWS\CCM\Inventory\Temp\
InventoryAgent 18.03.2015 08:09:56
11088 (0x2B50)
Inventory: Clearing old collected files. InventoryAgent
18.03.2015 08:09:56 11088 (0x2B50)
Inventory: Opening store for action {00000000-0000-0000-0000-000000000001} ...
InventoryAgent 18.03.2015 08:09:56
11088 (0x2B50)
CInvState::VerifyInventoryVersionNumber: Mismatch found for '{00000000-0000-0000-0000-000000000001}': 4.2 vs. 0.0
InventoryAgent 18.03.2015 08:09:56
11088 (0x2B50)
Inventory: Version number mismatch; will do a Full report.
InventoryAgent 18.03.2015 08:09:56
11088 (0x2B50)
Inventory: Action=Hardware, ReportType=ReSync, MajorVersion=5, MinorVersion=0
InventoryAgent 18.03.2015 08:09:56
11088 (0x2B50)
Inventory: Initialization completed in 0.141 seconds
InventoryAgent 18.03.2015 08:09:56
11088 (0x2B50)
Collection: Namespace = \\localhost\root\Microsoft\appvirt\client; Query = SELECT __CLASS, __PATH, __RELPATH, CachedLaunchSize, CachedPercentage, CachedSize, LaunchSize, Name, PackageGUID, TotalSize, Version, VersionGUID FROM Package; Timeout = 600 secs.
InventoryAgent 18.03.2015 08:09:56
7836 (0x1E9C)
Failed to get IWbemService Ptr for \\localhost\root\vm\VirtualServer Namespace: 8004100E
InventoryAgent 18.03.2015 08:10:02
7836 (0x1E9C)
Failed to enumerate instances of VirtualMachine: 8004100E
InventoryAgent 18.03.2015 08:10:02
7836 (0x1E9C)
Collection: Namespace = \\.\root\cimv2\sms; Query = SELECT __CLASS, __PATH, __RELPATH, AddressWidth, BrandID, CPUHash, CPUKey, DataWidth, DeviceID, Family, Is64Bit, IsHyperthreadCapable, IsMobile, IsTrustedExecutionCapable, IsVitualizationCapable, Manufacturer,
MaxClockSpeed, Name, NormSpeed, NumberOfCores, NumberOfLogicalProcessors, PCache, ProcessorId, ProcessorType, Revision, SocketDesignation, Status, SystemName, Version FROM SMS_Processor; Timeout = 600 secs.
InventoryAgent 18.03.2015 08:10:02
7836 (0x1E9C)
Collection: Namespace = \\.\root\CCM\powermanagementagent; Query = SELECT __CLASS, __PATH, __RELPATH, Requester, RequesterInfo, RequesterType, RequestType, Time, UnknownRequester FROM CCM_PwrMgmtLastSuspendError; Timeout = 600 secs.
InventoryAgent 18.03.2015 08:10:03
7836 (0x1E9C)
Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, Availability, Description, DeviceID, Manufacturer, Name, Status FROM Win32_IDEController; Timeout = 600 secs.
InventoryAgent 18.03.2015 08:10:03
7836 (0x1E9C)
Collection: Namespace = \\.\root\cimv2\sms; Query = SELECT __CLASS, __PATH, __RELPATH, BinFileVersion, BinProductVersion, Description, ExecutableName, FilePropertiesHash, FilePropertiesHashEx, FileSize, FileVersion, HasPatchAdded, InstalledFilePath, IsSystemFile,
IsVitalFile, Language, Product, ProductCode, ProductVersion, Publisher FROM SMS_InstalledExecutable; Timeout = 600 secs.
InventoryAgent 18.03.2015 08:10:03
7836 (0x1E9C)
Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, DefaultIPGateway, DHCPEnabled, DHCPServer, DNSDomain, DNSHostName, Index, IPAddress, IPEnabled, IPSubnet, MACAddress, ServiceName FROM Win32_NetworkAdapterConfiguration; Timeout
= 600 secs. InventoryAgent
18.03.2015 14:06:43 7836 (0x1E9C)
Collection: Namespace = \\.\root\Nap; Query = SELECT __CLASS, __PATH, __RELPATH, description, fixupState, friendlyName, id, infoClsid, isBound, percentage, registrationDate, vendorName, version FROM NAP_SystemHealthAgent; Timeout = 600 secs.
InventoryAgent 18.03.2015 14:06:43
7836 (0x1E9C)
Collection: Namespace = \\.\root\cimv2\sms; Query = SELECT __CLASS, __PATH, __RELPATH, AdditionalProductCodes, CompanyName, ExplorerFileName, FileDescription, FilePropertiesHash, FileSize, FileVersion, FolderPath, LastUsedTime, LastUserName, msiDisplayName,
msiPublisher, msiVersion, OriginalFileName, ProductCode, ProductLanguage, ProductName, ProductVersion, SoftwarePropertiesHash FROM CCM_RecentlyUsedApps; Timeout = 600 secs.
InventoryAgent 18.03.2015 14:06:43
7836 (0x1E9C)
Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, BankLabel, Capacity, Caption, CreationClassName, DataWidth, Description, DeviceLocator, FormFactor, HotSwappable, InstallDate, InterleaveDataDepth, InterleavePosition, Manufacturer,
MemoryType, Model, Name, OtherIdentifyingInfo, PartNumber, PositionInRow, PoweredOn, Removable, Replaceable, SerialNumber, SKU, Speed, Status, Tag, TotalWidth, TypeDetail, Version FROM Win32_PhysicalMemory; Timeout = 600 secs.
InventoryAgent 18.03.2015 14:07:02
7836 (0x1E9C)
Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, Availability, Description, DeviceID, InstallDate, Manufacturer, Name, PNPDeviceID, ProductName, Status FROM Win32_SoundDevice; Timeout = 600 secs.
InventoryAgent 18.03.2015 14:07:02
7836 (0x1E9C)
Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, Caption, ClassGuid, ConfigManagerErrorCode, ConfigManagerUserConfig, CreationClassName, Description, DeviceID, Manufacturer, Name, PNPDeviceID, Service, Status, SystemCreationClassName,
SystemName FROM Win32_USBDevice; Timeout = 600 secs.
InventoryAgent 18.03.2015 14:07:12
7836 (0x1E9C)
Collection: 62/74 inventory data items successfully inventoried.
InventoryAgent 18.03.2015 14:07:12
7836 (0x1E9C)
Inventory: Collection Task completed in 21436.097 seconds
InventoryAgent 18.03.2015 14:07:12
7836 (0x1E9C)
Inventory: 12 Collection Task(s) failed. InventoryAgent
18.03.2015 14:07:12 7836 (0x1E9C)
Inventory: Temp report = C:\WINDOWS\CCM\Inventory\Temp\25bf01b2-12fc-4eea-8e97-a51b3c75ba50.xml
InventoryAgent 18.03.2015 14:07:12
7836 (0x1E9C)
Inventory: Starting reporting task. InventoryAgent
18.03.2015 14:07:12 7552 (0x1D80)
Reporting: 4381 report entries created. InventoryAgent
18.03.2015 14:07:13 7552 (0x1D80)
Inventory: Reporting Task completed in 1.030 seconds
InventoryAgent 18.03.2015 14:07:13
7552 (0x1D80)
Inventory: Successfully sent report. Destination:mp:MP_HinvEndpoint, ID: {5541A94A-BED9-4132-AE54-110CB6896F02}, Timeout: 80640 minutes MsgMode: Signed, Not Encrypted
InventoryAgent 18.03.2015 14:07:13
7552 (0x1D80)
Inventory: Cycle completed in 21453.570 seconds
InventoryAgent 18.03.2015 14:07:30
7552 (0x1D80)
Inventory: Action completed. InventoryAgent
18.03.2015 14:07:30 7552 (0x1D80)
Inventory: ************************ End of message processing. ************************
InventoryAgent 18.03.2015 14:07:30
7552 (0x1D80)
Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, Caption, ClassGuid, ConfigManagerErrorCode, ConfigManagerUserConfig, CreationClassName, Description, DeviceID, Manufacturer, Name, PNPDeviceID, Service, Status, SystemCreationClassName,
SystemName FROM Win32_USBDevice; Timeout = 600 secs.
InventoryAgent 18.03.2015 14:07:12
7836 (0x1E9C)
Collection: 62/74 inventory data items successfully inventoried.
InventoryAgent 18.03.2015 14:07:12
7836 (0x1E9C)
Inventory: Collection Task completed in 21436.097 seconds
InventoryAgent 18.03.2015 14:07:12
7836 (0x1E9C)
Inventory: 12 Collection Task(s) failed. InventoryAgent
18.03.2015 14:07:12 7836 (0x1E9C)
Inventory: Temp report = C:\WINDOWS\CCM\Inventory\Temp\25bf01b2-12fc-4eea-8e97-a51b3c75ba50.xml
InventoryAgent 18.03.2015 14:07:12
7836 (0x1E9C)
Inventory: Starting reporting task. InventoryAgent
18.03.2015 14:07:12 7552 (0x1D80)
Reporting: 4381 report entries created. InventoryAgent
18.03.2015 14:07:13 7552 (0x1D80)
Inventory: Reporting Task completed in 1.030 seconds
InventoryAgent 18.03.2015 14:07:13
7552 (0x1D80)
Inventory: Successfully sent report. Destination:mp:MP_HinvEndpoint, ID: {5541A94A-BED9-4132-AE54-110CB6896F02}, Timeout: 80640 minutes MsgMode: Signed, Not Encrypted
InventoryAgent 18.03.2015 14:07:13
7552 (0x1D80)
Inventory: Cycle completed in 21453.570 seconds
InventoryAgent 18.03.2015 14:07:30
7552 (0x1D80)
Inventory: Action completed. InventoryAgent
18.03.2015 14:07:30 7552 (0x1D80)
Inventory: ************************ End of message processing. ************************
InventoryAgent 18.03.2015 14:07:30
7552 (0x1D80)InventoryAgent 18.03.2015 08:10:03
7836 (0x1E9C)
Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, DefaultIPGateway, DHCPEnabled, DHCPServer, DNSDomain, DNSHostName, Index, IPAddress, IPEnabled, IPSubnet, MACAddress, ServiceName FROM Win32_NetworkAdapterConfiguration; Timeout
= 600 secs. InventoryAgent
18.03.2015 14:06:43 7836 (0x1E9C)
Collection: Namespace = \\.\root\Nap; Query = SELECT __CLASS, __PATH, __RELPATH, description, fixupState, friendlyName, id, infoClsid, isBound, percentage, registrationDate, vendorName, version FROM NAP_SystemHealthAgent; Timeout = 600 secs.
InventoryAgent 18.03.2015 14:06:43
7836 (0x1E9C)
Looks like something in one or both of those wmi queries. it goes from 8:10:03 to 14:06:43 right around there. 6 hours to do that...
try running those queries from wbemtest manually; and see which one just never finishes.
Standardize. Simplify. Automate. -
Macbook Air running extremely slow - kernel_task at 300% cpu usage
I purchased my Macbook Air roughly 15 months ago and it's performance has constantly been impressive since I purchased it - until roughly a fortnight ago. I came home from work one afternoon and it was running at a snails pace. I had recently upgraded to Yosemite though I'm unsure if this had anything to do with it. I had also recently installed FitBit software to sync to my new FitBit flex.
It has continued to run in this manner constantly since the problem began. It is ridiculously slow, every single request takes a very long time to respond. Logging in takes forever. When I click on an app to open it, the icon bounces for 30 seconds or more, and it's not a smooth bounce either, it's quite a jagged bounce!
I'm hoping someone is able to provide some advice, guidance or help. The laptop is no longer covered by the 12 month Manufacturer Warranty, and I did not purchase an Apple Care plan as no Apple product I've owned before has experienced issues like this.
This whole experience is killing me! I'm suspecting hardware failure and I'm just so sad that this could happen to the laptop I've loved so much since I bought it!
The problem:
The kernel_task process is constantly running at 300% or higher cpu usage, with Activity Monitor indicating the processor is being maxed out by a system task. Also, the laptop's fan is constantly running at full capacity - from the moment the laptop turns on, or wakes up.
What I think the problem might be:
As a result of many, many Google searches, it appears that this behaviour may be due to the Macbook Air thinking it is overheating - and I will clarify here that it certainly is not. It is cool to touch, always, when this problem occurs. (yet the fan is almost taking off!). As a result of the MacBook Air thinking it's overheating, it not only is running the fan at a very high RPM (confirmed with iStat), but it also is intentionally choking the system with 'simple requests' in attempt to cool the computer down. Apparently this is a built-in feature of OS X. The kernel has priority over user tasks, causing all user tasks to be granted a lower priority, causing the computer to run INCREDIBLY SLOW. Even as I'm typing this, I'm about two sentences ahead of what is showing on the screen!
Steps I have taken:
- Read widely across the internet with every possible relevant search term I can think of
- Downloaded iStat to see if any of the temperatures are too high (they all seemed fine..)
- Disabled Bluetooth and Wifi. (no change)
- Reset SMC (multiple times.., no change)
- Reset PRAM (multiple times.., no change)
- Drained the battery completely (2 or 3 times, no change)
- Install Windows 7 on BootCamp in attempt to bypass the issue (CPU usage was 100% constantly in Windows also)
- Uninstalled FitBit software (no change..)
- Uninstalled other software I did not need (no change..)
- Attempt to boot into Safe Mode / Recovery Mode (even in this modes, the same thing is happening)
- Repaired Disk Permissions
- Backed up all personal data
- Used the built-in Internet Recovery mode to format my Macintosh HD and re-install a fresh copy of OS X (Mountain Lion). (no change…)
- Re-upgrade to Yosemite (no change..)
I've downloaded EtreCheck and here is the output:
Problem description:
OS X is running incredibly slow. kernel_task process is constantly using 300% and upward CPU usage.
EtreCheck version: 2.1.5 (108)
Report generated 20 December 2014 3:38:49 PM AEST
Click the [Support] links for help with non-Apple products.
Click the [Details] links for more information about that line.
Click the [Adware] links for help removing adware.
Hardware Information: ℹ️
MacBook Air (11-inch, Mid 2013) (Verified)
MacBook Air - model: MacBookAir6,1
1 1.3 GHz Intel Core i5 CPU: 2-core
4 GB RAM
BANK 0/DIMM0
2 GB DDR3 1600 MHz ok
BANK 1/DIMM0
2 GB DDR3 1600 MHz ok
Bluetooth: Good - Handoff/Airdrop2 supported
Wireless: en0: 802.11 a/b/g/n/ac
Video Information: ℹ️
Intel HD Graphics 5000 - VRAM: 1024 MB
Color LCD 1366 x 768
System Software: ℹ️
OS X 10.8.5 (12F45) - Uptime: 1:24:6
Disk Information: ℹ️
APPLE SSD SD0128F disk0 : (121.33 GB)
disk0s1 (disk0s1) <not mounted> : 210 MB
Macintosh HD (disk0s2) / : 120.47 GB (106.42 GB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
USB Information: ℹ️
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Gatekeeper: ℹ️
Mac App Store and identified developers
User Login Items: ℹ️
uTorrent Application (/Applications/uTorrent.app)
Internet Plug-ins: ℹ️
QuickTime Plugin: Version: 7.7.1
JavaAppletPlugin: Version: 14.6.0 - SDK 10.8 Check version
3rd Party Preference Panes: ℹ️
None
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
17% WebProcess
16% storeagent
15% Safari
9% WindowServer
9% repair_packages
Top Processes by Memory: ℹ️
404 MB repair_packages
395 MB WebProcess
129 MB Safari
86 MB App Store
64 MB Finder
Virtual Memory Information: ℹ️
1.77 GB Free RAM
1.76 GB Active RAM
140 MB Inactive RAM
623 MB Wired RAM
425 MB Page-ins
0 B Page-outs
Diagnostics Information: ℹ️
Dec 13, 2014, 09:47:32 PM /Library/Logs/DiagnosticReports/Kernel_2014-12-13-214732_[redacted].panic [Details]
Dec 13, 2014, 08:31:50 PM /Library/Logs/DiagnosticReports/Kernel_2014-12-13-203150_[redacted].panic [Details]
Dec 13, 2014, 04:54:18 PM /Library/Logs/DiagnosticReports/Kernel_2014-12-13-165418_[redacted].panic [Details]
Dec 13, 2014, 07:05:03 AM /Library/Logs/DiagnosticReports/Kernel_2014-12-13-070503_[redacted].panic [Details]
Dec 20, 2014, 02:15:38 PM Self test - passedHi,
I have an update so I thought I would share in case any other users are experiencing a similar problem.
I made an appointment with the Genius Bar at the Apple Store.
I went in and they ran a thorough diagnostic check on my Macbook Air and determined that the sensors were indeed faulty - several were providing no information "No reading" instead of providing a temperature. Thus, the Air was unaware of the temperature across multiple components.
Despite the laptop being outside the 12 Month Manufacturer Warranty, the Apple Store determined that it was covered under warranty through Australian Consumer Law - the laptop is now in for a complete repair under warranty at no cost to myself.
I couldn't be happier. -
Google Earth Plugin and LabVIEW: High CPU usage when adding placemarks
Hi,
I posted this question on stackoverflow earlier this week but feel it might be better suited to the LabVIEW community specifically so I'm reposting here:
I'm writing an application which uses the Google Earth Plugin to display events on the globe. Each event is a single point kml placemark with an icon which is a 3kb png file. Placemarks are uploaded to the plugin as they are received by the software. I am experiencing increasing CPU usage with the number of placemarks that are added.
I have tested displaying a new placemark every second and running until the software running the plugin completely froze (graph attached). The GEPlugin (green trace) stopped responding (i.e. the globe did not respond to the mouse) at around 1200 placemarks added and CPU usage was at ~30%. When the software itself (red trace) froze the plugin was using around 50% CPU and ~3700 placemarks had been added). After the freeze, no new placemarks were added which caused the software to respond (but not the plugin) so I could clear all the placemarks. After the placemarks were cleared from the globe, the CPU usage of the plugin returned to around 5% CPU.
So what I've seen is that GEPlugin CPU usage increases linearly with each kml placemark added. Is this the expected behaviour/ a normal limitation of the plugin? If not is there a more efficient way of adding many placemarks to the globe?
I am using GEPlugin version 7.1.1.1580 (API version 1.010) and LabVIEW 12.0f3
Please see the test results attached. Any input greatly appreciated!
Original stackoverflow post:
http://stackoverflow.com/questions/20994323/google-earth-plugin-with-labview-high-cpu-usage-when-add...
Attachments:
Performance Log 020114_095115.png 82 KBHello,
I have had a look at your graphs and understood what you are trying to do. To me it seems that as the image gets more complex it gets harde to render which wold likely cause increase in CPU usage resulting in the freeze. I would suggest you try running the program on anoher computer to check on the RAM front of things. If this is a limitation of the GE Plugin then unfortunately I can not do much to help, but if you think this is a problem coming from your LabVIEW code then you can post your code here and I can take a look.
Maybe you are looking for
-
ICloud / Calendar app keeps changing my calendar colors
I just noticed this happening two days ago, the calendar app on my iphone and macbook is changing the colors of my calendars at random. They're only cycling between two colors for each of the 3 calendars (the original color, green, orange, purple and
-
Oracle Application 12.1.1 to 12.1.3 upgrade error
Hi, I m upgrading oracle application from 12.1.1 to 12.1.3.When the worker one executing the arhdqupg.sql i m getting error. Fixed: file arhdqupg.sql on worker 1 for product ar username AR. Restarted: file arhdqupg.sql on worker 1 for product ar user
-
Hi all, When I insert a record to a table , how to lock it for preventing others write the table at the same time? Thanks.
-
How can I remove all faces from certain photos
I've done some photography at my church for a camp and I've got tons of photos with dozens of people that I have no idea who they are - and I don't want iPhoto to suggest them as possibilities for the people I actually do know. The same goes for any
-
Regarding Business content activation
Hi , I am facing this problem,please tell me if any one knows the resolution. I have to activate the 0fi_gl_4 data source in bi. while i am doing this one it is giving below error. " Remote activation of data source is not possible " Thanks in advanc