cpu-usage

Weird issue regarding debugging using Visual Studio 2010 Express

Hi all , I'm a beginner in C# ,and i have a problem regarding debugging and running applications from VS 2010 ... Sometimes -for some certain projects- when i press F5 , the VS 2010 CPU usage jumps to 50% and my app. just won't run.. and nothing happen , i tried to rebuild the solution , but still , High CPU usage and no app. running a...

CPU contention (wait time) for a process in Linux

How can I check how long a process spends waiting for the CPU in a Linux box? For example, in a loaded system I want to check how long a SQL*Loader (sqlldr) process waits. It would be useful if there is a command line tool to do this. ...

Minimize the number of cross-core context switches

I was experimenting a lot with application profiling lately (using Visual Studio Performance Wizard). While working with Concurrency indicators, I've noticed the fact that when the application runs with multiple threads (both background and foreground) the cross-core context switch rate is quite high. Knowing that generally a large numb...

Does an AWK script take up a lot of CPU?

Does AWK uses a lot of processing power? If so, is there a better scripting language to do it? Or should I do it in C itself (where rest of my code is). ...

We have a problem with the CPU utilization going up to 380 % on a 4 core machine.

We had the problem when the CPU util on a single core machine went to 100 %. The number of users is 8-10 on a server hosted at the ISP end. When the server was upgraded to 4 core, the same problem persists. We have used Hibernate and JSF for implementation and MySQL as the backend. I strongly feel it is a problem with the JBOSS configura...

How to get the CPU information of a process in Linux?

In my server, there exists several CPUs (0-7). I need run parallel code, and each process affiliate with one CPU, so how do I know the CPU information for each process? For example, if two processes (#0 and #1) exist, and process #0 uses CPU 5 and process #1 uses CPU 7. how do I know that by programming in C or Fortran? ...

How to get the CPU usage of iPhone/iPad?

I saw in A+ monitor, it can show CPU Idle, CPU usage, CPU System. Which API should be used to get the these information? I have searched and I use the getloadavg function, but it can only return the CPU usage. Also it is not correctly for it will always be more than 90%. Thanks! ...

Never terminating cpu bound c program

hello guys, as you know there are two kind of process, i/o bound and cpu bound... i need a cpu bound program that never terminates itself... for example; is it like i wanted? while(1){ for(int i=0;i<1000; i++); } ...

Can I limit the CPU usage of a website for testing?

We have developed a website that has quite a lot of flash in it and it seems to be hanging on some machines using firefox, these machines are a lower spec than our development machines and we cannot recreate the problem locally. Ideally we want to somehow limit the CPU usage to maybe just a single core when browsing the website in the ...

High %wa CPU load when running PHP as CLI

Sorry for the vague question, but I've just written some php code that executes itself as CLI, and I'm pretty sure it's misbehaving. When I run "top" on the command line it's showing very little resources given to any individual process, but between 40-98% to iowait time (%wa). I usually have about .7% distributed between %us and %sy, wi...

Get Total CPU # via WMI or T-SQL

I don't want the list of all process, just a total percentage like you would see in windows taskmanager. I will be using this information via coldfusion, but i am having all kinds of problems just trying to find a total number of current cpu usage. I don't care if it comes from wmi or t-sql, i just want a total number for which i wil...

How to export instruments data? ("Export Data..." menu item is gray)

Hi, I want to export my instruments data. But the menu item is gray. I tried everything. How does it work? Is there any way to export CPU Sampler data? Thanks! ...

c++ high cpu usage

Possible Duplicate: c++ using too much cpu my game uses over 50% of cpu. i found way to reduce the cpu to be 40-50% but i can't find any other way to reduce it. i tried to use Code analyst profiler but it doesn't give me any good information in my code where im using my cpu. here is my code // Xstrike.cpp : Defines the entr...

How to find cpu hogs in a (monorails) web application

My web application is pretty ok in terms of speed, when I develop it, but as soon as I have higher load, cpu usage goes up to 100%, the ventilators spin up considerably and it is impossible to deploy. It seems anything more than 30 or so concurrent requests will kill the server. Of course I could add caching and some problems would go a...

PHP and CPU - Process of chat + notifications

Hello, My site has a PHP process running, for each window/tab open, that runs in a maximum of 1 minute, and it returns notifications/chat messages/people online or offline. When JavaScript gets the output, it calls the same PHP process again and so on. This is like Facebook chat. But, seems it is taking too much CPU when it is running....

GIF animation CPU consumption problem in C#!

I have made a GIF Animation user control which loads gif animations and have created about 30 of them in my project each animating a GIF. The problem is that when I check my CPU usage it is about 70%+!!! I'm sure something is wrong with this! Please help me. Here is the code of that GIF Animator control: public class AnimatedImage : Sys...

How to write a C or C++ program to act as a memory and CPU cycle filler?

I want to test a program's memory management capabilities, for example (say, program name is director) What happens if some other processes take up too much memory, and there is too less memory for director to run? How does director behave? What happens if too many of the CPU cycles are used by some other program while director is runn...

Finding processor usage through WMI.

I am trying to use the Win32_PerfRawData_PerfOS_Processor class on a windows server enterprise 2007 remotely to find the CPU usage. But I am getting huge 14-15 digit values like 11745679223456 %. Any idea why it is giving erroneous result? It seems to work fine on my server 2008. Is there any way I can reinstall these classes? P.S : I d...

c# multithreading mem usage - App slowing down and CPU usage drops.

I've got a multithreaded app that manipulates in-memory data (no database or network access). I tried this on 2 machines, one machine is Xeon dual quad core CPU, the other is twin dial-cores. 5 threads are spawned. Then this multithreaded process starts it runs very quickly and the CPU usage is at 60% for 5 cores, the physical memory is...

CPU Intensive Calculation Examples?

I need a few easily implementable single cpu and memory intensive calculations that I can write in java for a test thread scheduler. They should be slightly time consuming, but more importantly resource consuming. Any ideas? ...