The CPU (Central Processing Unit), is the chip in the computer that actually performs the operations and calculations that are done as a program runs. It is essentially what executes a program.

learn more… | top users | synonyms (1)

0
votes
1answer
1k views

Limit CPU and memory usage for PHP-FPM and Nginx processes in CentOS

I want to limit CPU and memory usage for PHP-FPM and Nginx processes in CentOS. I came across following tools cpulimit cggroups memory resource locater which will more efficient and how can I ...
7
votes
6answers
6k views

Getting cpu usage same every time.

When I execute following command to get cpu usage , I get nice + user cpu usage. top -b -n1 | grep "Cpu(s)" | awk '{print $2 + $4}' Output: 14.5 Here I am getting problem is that the output ...
0
votes
2answers
112 views

Ubuntu 10.04 on 64bit

I need to download the 64bit version of Ubuntu 10.04, I found this link http://releases.ubuntu.com/lucid/ and select this option: PC (Intel x86) desktop CD But it is x86? And the other 64bit ...
4
votes
2answers
538 views

How to bzip a file with minimum cpu percentage?

I am using bzip2 to compress a file,the process takes more that 100% cpu.Is there any way to run bzip2 with minimum CPU precentage.
2
votes
0answers
166 views

Unable to reduce core frequency freebsd

I'm working on a FreeBSD project where I need to maintain the temperature of the processor below a threshold value. In order to reduce the temperature I'm trying to dynamically change the frequency of ...
1
vote
0answers
122 views

FreeBSD 9,1 - upowerd's cpu consumption off the roof and causes OS to restart

I've been experiencing a really annoying problem with a FreeBSD setup on my laptop. The setup is as follows: FreeBSD 9.1 / KDE4 desktop / Broadcom wireless 4313 through NDIS / Intel GPU with the new ...
5
votes
2answers
309 views

Why do I have four CPUs listed in /proc/cpuinfo?

When I bought my Lenovo Thinkpad 520, it had Windows installed. I promptly cleaned that out and installed Fedora 16. I recently visited the /proc/cpuinfo and, much to my surprise, discovered that it ...
0
votes
1answer
103 views

Does loadavg affect CPU usage?

Does loadavg affect the CPU usage? Say I see a process consuming 60% of CPU time, both when loadavg (last minute) was 5 and 1, would it be the same?
3
votes
3answers
5k views

Bash script that automatically kills processes when CPU/memory usage gets too high

I have created a script that kills processes if CPU and/or memory usage hits 80%. It creates a list of killed processes when this happens. What can I do to improve it? while [ 1 ]; do echo echo ...
1
vote
3answers
3k views

kswapd0 takes 99% to 100% CPU in RHEL 6.3

I have 5 systems on which I have just installed RHEL6. System configuration is CPU-i7 HDD-500 GB RAM-2 GB Swap- 4 GB I have installed the same software's and all the configuration as per ...
1
vote
2answers
1k views

Top c - CPU usage >200% Will it Crash?

I would appreciate some advice from your experience. My main concern is I really REALLY do not want to cause the computer server to crash. The question is, I am running a program on a Linux computer ...
7
votes
1answer
484 views

Can I run multiple cores at different clock speeds?

I see the cores on an Intel i5 machine I'm looking at can only be run at the same clockspeed: /sys/devices/system/cpu/cpu1/cpufreq/related_cpus lists all of the CPUs. Setting cpu1's clockspeed changes ...
1
vote
2answers
1k views

How cpu works in conky

I' m trying to setup conky and I saw that I can use from cpu0 to cpu4 CPU0 ${cpu cpu0}% ${cpubar cpu0} CPU1 ${cpu cpu1}% ${cpubar cpu1} CPU2 ${cpu cpu2}% ${cpubar cpu2} CPU3 ${cpu cpu3}% ${cpubar ...
8
votes
2answers
10k views

Top and ps not showing the same cpu result

This is linked to this question. When I run top I get the following result: pid 3038 is using 18% cpu, however when running the result is 5.5%. And this number does not appear to be changing ...
2
votes
2answers
257 views

Monitor single process to logfile perodicly

Based on this question, I would like to log the performance of a specific process, with a frequency of say one second, to a csv (comma separated value) log file. Something like: ...
1
vote
1answer
1k views

Running a Snow Leopard 10.6.7 Image on an AMD: The CPU has been disabled by the guest operating system

I am quite frustrated so I have turned to this medium in hoping to get an answer. After reading thousands of forums and trying out various methods (I have lost track what I have tried already) I still ...
3
votes
2answers
2k views

How do I know which processors are physical cores?

I've got an Intel i7 2700k here, and I'd like to know how I can tell which processors are physical and which are virtual (ie: hyperthreading). I'm currently running a Conky script to display my CPU ...
1
vote
2answers
748 views

Kernel not detecting multicore cpu

Kernel Version 3.3.4-5.fc17.x86_64 CPU info: sashan@dhcp-au-122 ~ $ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) ...
1
vote
1answer
778 views

Which “Processor family” to choose under “Processor type and features”?

I have recently compiled a minimal kernel for my Intel(R) Pentium(R) Dual CPU T3400 @ 2.16GHz, and chose CONFIG_MCORE2 (Core 2/newer Xeon) under "Processor type and features > Processor family" I ...
1
vote
0answers
503 views

How can a single thread use 200% CPU usage?

From the screenshot above of htop output you can see that mysql is apparently using 204% of CPU usage (this is a CentOS server with dual quad-core Intel Xeons). However only one core (8) is doing ...
2
votes
1answer
381 views

System IDLE Time > System Uptime?

I was testing out the linux api while working on something but got stuck on the following output. [Abhii@localhost net]$ cat /proc/uptime 39135.53 149657.73 As per specs the first number should be ...
2
votes
2answers
2k views

Hyperthreading not detected by Linux [on hold]

I have a Dell server with two Intel Xeon E5645 cpus, each cpu has 6 cores, and each core is hyperthreaded (i.e. should be equivalent to two virtual cores). I installed CentOS 6.2 on this server and it ...
2
votes
2answers
1k views

Find the PID of top CPU/MEM usage, save to a shell variable

Is there any way to get the PID of the top CPU/MEM usage, I need to use that in a script, top command doesn't seem to work for it.
3
votes
1answer
358 views

cpufreqd does not control temperature plus shows no output

Since my laptop (an Acer Aspire 5750G running a Gentoo Linux with a not-quite-up-to-date kernel 2.6.39-r3 (a weird wLan hardware makes the update difficult)) tends to run rather hot I am trying to ...
4
votes
3answers
2k views

On Ubuntu Linux, is it normal for mandb to run continuously (apparently in the background)?

I have access to a Ubuntu Linux node at my institution. The nodes are shared among the group, but typically I am the only person who uses this particular node. I am running a calculation in parallel ...
2
votes
2answers
493 views

Putting Linux processes on certain CPU cores [duplicate]

Possible Duplicate: How can I set the processor affinity of a process on Linux? Computer CPUs have many cores insde them nowadays. I have always wondered if there is a way to, when I start ...
2
votes
4answers
8k views

How to get CPU info on a vmware guest

This is a server that is running on Vmware ESXi: SERVER:/root # cat /etc/SuSE\-release SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 2 ...
1
vote
3answers
193 views

CPU or RAM better in old machine?

I'm planning to use one of two old computers as a low-volume backup server. The machine will be online and files will be backed up over ssh/rsync. I will do a minimal install of Ubuntu or Debian ...
51
votes
3answers
25k views

What do the flags in /proc/cpuinfo mean?

How can I tell whether my processor has a particular feature? (64-bit instruction set, hardware-assisted virtualization, cryptographic accelerators, etc.) I know that the file /proc/cpuinfo contains ...
3
votes
3answers
773 views

Invoking CPU Stress

Looking for an app or tool to invoke CPU usage on my virtual Linux and Unix guests. I found the app "stress" from a post on Stackoverflow, but curious what the Unix/Linux crowd would recommend.
3
votes
1answer
716 views

Do I have PCLMUL instruction set support?

Here are the flags from /proc/cpuinfo: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc ...
2
votes
1answer
2k views

CPU and core usage stats

I'm running some programs on a server and I would like to know how much % cpu I'm taking up and how many cores are being utilised by my process. To clarify, the server has 16 CPUs, all quad-core. I ...
13
votes
2answers
725 views

Is it possible to limit how much CPU power a process can take?

I'm wondering, is there way to tell a process how much processor power it can take? The problem is I'm converting video with Arista (video converter) and I'm annoyed by the fan running like crazy, ...
2
votes
2answers
248 views

How to compare usage of memory by Window Managers?

I'd like to test a few window managers to see which of them takes less memory and CPU in certain time period (so is better choice for older computers). I'd like to make the tests myself (not to read a ...
4
votes
2answers
665 views

How can we use the command 'top‘ to monitor the total CPU usage and each processor usage simultaneously?

You know that we can use the command top to monitor the real-time CPU usage and toggle the result display to the per-processor view by pressing key 1. The disadvantage of it is you can only monitor ...
5
votes
2answers
2k views

VirtualBox guest: 16 CPUs detected but only 1 online

I am running VirtualBox (using the Qiime image http://qiime.org/install/virtual_box.html) The physical hardware is a 32 core machine. The virtual machine in VirtualBox has been given 16 cores. When ...
1
vote
1answer
236 views

Make effective the changes in CPU governor plugin

I'm using Debian Testing + Xfce. I added to my panel the plugin the handle the CPU governor. My problem is that the setting that I do on the plugin interface are not made effective. Maybe because I'm ...
1
vote
1answer
2k views

How to increase Xen guest CPU utilization?

My Xen dom0 is a Gentoo x64 pvops. I boot my guest Gentoo, in PV mode, system with the same kernel my dom0 uses. When I emerge in the guest system, building a CPP package, I am experiencing low CPU ...
23
votes
1answer
2k views

High CPU usage with CFS?

I asked a previous question to try and isolate the source of an increase in CPU usage when moving an application from RHEL 5 to RHEL 6. The analysis that I did for that seems to indicate that it is ...
8
votes
1answer
3k views

Isolating cause of higher CPU usage on RHEL 6 vs RHEL 5

I'm currently looking to move our system from RHEL 5 to RHEL 6, but I've run into a snag with unexpectedly high CPU usage on the RHEL 6 machines. It appears that this may be due at least in some part ...
3
votes
1answer
746 views

Hyperthread and processors Clock, Size, and Capacity

When I enable hyperthreading, CPU size and capacity decrease to about half the non-hyperthreaded value. Since most of my processes use only two cores, should I disable hyperthreading? lshw -C ...
8
votes
2answers
1k views

lshw and lscpu disagree on caches - which is right?

I am trying to find out specifics about caches (in particular which caches are shared between cores and which are not) and have stumpled onto a inconsistency. sudo lshw says *-cache:0 ...
4
votes
4answers
880 views

script for logging all the stats for a particular process

I want to monitor CPU usage, disk read/write usage for a particular process, say ./myprocess. To monitor CPU top command seems to be a nice option and for read and write iotop seems to be a handy ...
1
vote
4answers
1k views

How to find which machines are idle on a cluster of many nodes

I run measurements on a cluster consisting of 32 nodes/machines. I do not require all nodes, only 4, for example. The problem is most of the time, the nodes are busy with other people running their ...
0
votes
1answer
425 views

CPU governor settings

What are CPU governor settings? How can I get their values, if they're set? I have 24 vCPUs on my machine.
6
votes
2answers
1k views

How does load average work with modern CPU's?

My understanding of load average lead me to be quite shocked with my current system. The CPU in my workstation is an i7 with hyperthreading enabled, and cat /proc/cpuinfo produces 4 'cpu's. That all ...
7
votes
1answer
2k views

Is the sum of all PIDs “utime” the total system utime?

In order to measure a user's total CPU time, I'm using the "utime" field out of /proc/[pid]/stat: utime %lu Amount of time that this process has been scheduled in user mode, measured in ...
2
votes
1answer
2k views

i686 versus i486 kernel on an Intel Core i3

I had installed Debian 6 Squeeze on my laptop a couple of weeks ago. Coming from Ubuntu, I did this by downloading the hybrid i386 image and booting it off a USB drive. Now on GRUB, I'm presented ...
2
votes
0answers
207 views

eldoc makes emacs use 100% cpu

When I use eldoc, I add this to .emacs: (add-hook 'emacs-lisp-mode-hook 'turn-on-eldoc-mode) (add-hook 'lisp-interaction-mode-hook 'turn-on-eldoc-mode) (add-hook 'ielm-mode-hook ...
1
vote
1answer
428 views

Process priority and cpu speed

In some devices the cpu speed is dynamic, being faster when there is more load. I was wondering if it is possible to set nice level or priority of a process so that it does not influence an increase ...