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
1 answer

Couchdb causes a "process flooding" with 100% cpu power consumption

Since a few days my couchdb v1.6.1 is starting continuously new processes consuming 100% of the cpu power. After a system reboot this behavior repeats. I added a screenshot showing the situation as displayed by "top". Does anybody know what this…
Tom Nauka
  • 13
  • 2
1
vote
1 answer

Optimize read from .gz file and cpu utilization python

Sample Input File: 83,REGISTER,0,10.166.224.34,1518814163,[sip:1202677@mobile.com],sip:1202977@mobile.com,3727925550,0600,NULL,NULL …
van neilsen
  • 547
  • 8
  • 21
1
vote
0 answers

LoadPercentage win32_processor Windows Powershell

I have written the following code for a Powershell script: while($true){ $os= Get-Ciminstance Win32_OperatingSystem $cpu=Get-WmiObject win32_processor $cpuUsage=($cpu.LoadPercentage) $os | Select @{Name = "CPU usage"; Expression =…
Questionnaire
  • 656
  • 2
  • 11
  • 25
1
vote
1 answer

Is it safe to use all 4 cores of your pc to train a machine learning model

I am training a ml model on my ubuntu 16.04 . I wrote a code that utilizes all 4 cores of my pc. I doubt if this would lead to some sort of crash Using htop command on terminal shows me my 100% usage of all 4 cores along with many information…
1
vote
1 answer

CPU Usage% NotifyIcon Using WMI

I've been trying to create a taskbar tray icon that displays the CPU usage (pulled from wbemtest if possible) when hovered over or clicked on using C#. I used the PercentProcessorTime Name from the ManagementClass…
Zach R
  • 181
  • 3
  • 15
1
vote
0 answers

Java - Write Excel Using POI, CPU consuming

My program generate some Excel using apache POI. This part take up 50% of CPU for 1 excel.. If users generate at the same time multiple excel the server is out... How can i reduce it ? final Workbook workbook = new HSSFWorkbook(); …
Alexandre
  • 105
  • 1
  • 2
  • 7
1
vote
2 answers

In rails Processing 45k of database records using workling without affecting server performance

In my rails app, I use a worker process to scan 45k database records once in 6 hours and send out mails if certain condition is met. This causes the server CPU/Load to spike when the worker is processing. As a result of which other server request…
anusuya
  • 653
  • 1
  • 9
  • 24
1
vote
0 answers

Process Cpu time increases gradually

In our linux systems we observe that cpu load, heap usage of a java server is normal but OperatingSystem.ProcessCpuTime is gradually increasing, drops to minimum value and increased again. We have 2 cores in linux system. could you clarify me on…
santosh.a
  • 503
  • 5
  • 20
1
vote
2 answers

Why is time servicing softirqs increased on kernel 4.1 in compare with kernel 3.4?

We found a performance degradation issue when doing linux uplift from kernel 3.4 to 4.1 version. Seems, it is caused by that the new kernel spends much more time to service softirqs. We did a test using traffic generator (IXIA) which generates GTP-C…
1
vote
4 answers

Script to make high cpu and disk usage with low memory footprint

I am trying to create a very simple batch script to make high usage of CPU and disk with low memory(RAM) footprint. The purpose is to make the system very slow to test and fix some timeout exceptions issues. For high CPU usage, I am able to achieve…
Koder101
  • 844
  • 15
  • 28
1
vote
5 answers

PHP - using microtime() to measure CPU usage of a function/code block

I tried using it like this: $now = microtime(true); // cpu expensive code here echo microtime(true) - $now; but regardless of what code I enter between these statements, I alwasy get almost the same results, something like…
Alex
  • 66,732
  • 177
  • 439
  • 641
1
vote
1 answer

c# Code optimization for large volume of data

I am getting large volume data over TCP. There are 2 type of XML packets in data. I need to process it as fast as possible. .... [dynamic length data] .... and
Manjoor
  • 4,091
  • 10
  • 43
  • 67
1
vote
2 answers

Azure "Percentage CPU" metric on a VM

What exactly is it measuring? I have an Debian VM in Azure with 16 vCPUs. I am using it to run tensorflow. The metric "Percentage CPU" on Azure Portal shows 33.5% average. My concern is that I might not fully utilize all the 16 vCPUs. What really…
1
vote
1 answer

Multi core machine - cpu load metric

In a multi core machine what is the best metric to understand whether cpu is loaded or not ? I have a web application that sends a post request to apache CGI server. CGI server loops over the post data and launches perl process for each of the item…
ThinkGeek
  • 4,749
  • 13
  • 44
  • 91
1
vote
0 answers

process with UID postgres eats CPU

I am facing with cpu load issue causing by postgresql server. Here is top output: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND …