Questions tagged [cpu-usage]

CPU usage indicate how much of a workload is being handled by the CPU.

CPU-usage or CPU time is the amount of time for which a central processing unit (CPU) was used for processing instructions of a computer program.

CPU time accounting :http://public.dhe.ibm.com/software/dw/linux390/perf/CPU_time_accounting.pdf

2881 questions
1
vote
2 answers

CPU usage dropping as UIScrollView gets larger?

Experiencing a strange phenomenon. My app is built around a vertical UIScrollView (i.e. "the feed") that is essentially an activity timeline much like Facebook's. When the user scrolls to the bottom, the feed can load older items in blocks of…
chickeneye
  • 43
  • 1
  • 4
1
vote
0 answers

Linux device Wyse Z50S: howto get CPU usage as string (for Python), top has bug about "dumb" terminal with "-b" and cannot be updated

We are using a Wyse device, Z50S. It runs a version of Linux. The tool "top" can obtain the CPU output; however, when run normally and piping the output to a file, the file has a bunch of control characters. Using the "-b" option to top tells it…
Ken
  • 11
  • 1
1
vote
0 answers

KVM high %sy cpu usage, guest hangs

Please, help to deal with a strange problem: Have a KVM host with 2 Intel(R) Xeon(R) CPU E5-2630 v2 (24 virtual cores total). This host carries 3 typical guests with ubuntu - 8 cores each, 20Gb ram. In such configuration everything seems to be ok.…
user1932286
  • 71
  • 1
  • 5
1
vote
0 answers

MySQL 100% CPU usage all the time - process list empty

Please help me. My server is impossible to reach because of high CPU usage. mysqld takes all the CPU. show processlist; shows no queries at most of the time. I tried everything in 3 days but problem still exist. Note if I stop apache mysqld cpu…
Deyan Vitanov
  • 695
  • 5
  • 18
1
vote
0 answers

Parent process that repeatedly forks off short-lived children consumes more and more CPU over time

I have a bash script that does the following things in a loop: sleep 0.04 seconds ping another host on the same LAN with count=1 (only one echo request sent) and timeout limit of 1 second if host does not respond. The problem is that the script…
Akunis
  • 11
  • 3
1
vote
2 answers

How can I get CPU usage value as an integer?

I ran this batch file: :START FOR /f "tokens=2 delims=," %%a in ('typeperf "\processor(_Total)\%% Processor Time" -SC 1 -y ^|find ":" ') DO (set "var=%%~na" IF var>=30 (netsh interface teredo set state disabled netsh interface 6to4 set state…
Rock smith
  • 11
  • 3
1
vote
2 answers

Js (+Mootools) - Why my script use over 60% of processor?

On this site - LINK - i need to use 3 banner scrollers (2x vertical + 1x horizontal). I've tried to do it in flash, but then everyone web browsers shut down, or suspended. Now i want to do it in JS (i use mootools). All data come from MySQL. Here's…
Misiur
  • 11
  • 1
1
vote
2 answers

How to find precise cpu utilization at 1 sec granularity in linux

I want to get a decently accurate value for overall cpu utilization at 1 sec granularity, while introducing minimal delay possible. I tried "top" but that is not at all accurate because of the delay between cpu dumps. Right now I am doing it by…
L Lawliet
  • 2,565
  • 4
  • 26
  • 35
1
vote
1 answer

Fine-tuning Get-Counter script for quicker execution

Below is my script to get process utilization of individual w3wp.exe app pools, the problem is each iteration takes about 2 seconds there are about 25 app pools. Can you please help me to fine tune the below script for faster execution. gwmi…
Sudheej
  • 1,873
  • 6
  • 30
  • 57
1
vote
2 answers

simulate high cpu load for java development

I'm developing a Java app and would like to see how it runs on slower/overloaded machines. (I suspect there may be some thread unsafe issues, etc. that get ignored because my machine just compiles it quickly enough. Is there a way to simulate high…
QuinnFreedman
  • 2,242
  • 2
  • 25
  • 42
1
vote
1 answer

Ternary Conditional causes weird CPU usage in Java

I was running this bit of code to compare performance of 3 equivalent methods of calculating wraparound coordinates: public class Test { private static final float MAX = 1000000; public static void main(String[] args) { long time =…
mleyfman
  • 635
  • 4
  • 13
1
vote
1 answer

Understanding cpu frequency, thread selection and more

With a 1270v3 and a single thread app I'm at the end of performance but when I watch monitoring tools like atop I don't understand how this whole stuff works. I tried to find a nice article about this sort of topic but they either have been…
user2693017
  • 1,750
  • 6
  • 24
  • 50
1
vote
2 answers

All languages end up as assembly code in the process to be executed?

Sorry if it's a dumb question or obvious, if so i will delete it. Im searching and i can't find a definetive answer to that. There it goes: High level languages like PHP, Ruby or Java and so on are all decoded to assembly to be executed by the CPU??…
Julio Marins
  • 10,039
  • 8
  • 48
  • 54
1
vote
1 answer

Very low fps, except when running something else on background

So, i give development support to a private server for a game called metin2. The game have low requirements so it runs pretty smoothly, but there is a certain zone in the game that is going well and like randomly and instantly, the fps drops from 40…
Elsendion
  • 187
  • 1
  • 4
  • 15
1
vote
1 answer

Website with a lot of animate gifs runs high CPU

I'm having trouble finding a solution to this problem. I have a site much like http://giphy.com, that runs a lot of animated gifs. The site currently runs a high cpu of 40-50%. I need to find I solution to lower the CPU usage without having to…
1 2 3
99
100