Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I use "top" to check the existing resource , but I found that the CPU usage over 100% ( eg. 100.1 , 100.8 ) , can advise what is wrong , is it normal ?
besides , can I control the maximum % of CPU usage , for example , it I want all process can not use more that 50% CPU , what can i do ? thx
When you're looking at top then you can definetely see which process(es) are 'eating up' your CPU. If it's constantly at 100% then you do have a problem. You can try restarting the process that's consuming all CPU and see if that helps. Providing more information about what process(es) are putting it at 100% would be very usefull.
That's hard to say if you don't specify which process is putting your CPU at 100%. Can you post some output of the top command or at least which process is consuming your CPU as asked in my previous post?
Are we actually talking about a single cpu/core or multiple cpu's/cores? I've seen top show 390% cpu usage on a quad core cpu.
Top shows single state by default (all cpu's/cores together), press 1 (one) to see separate view. As syg00 already mentioned, rounding "errors" do make it possible to show slightly over a 100% for 1 specific cpu.
On my multi-core CPU, if a process hogs the CPU it only takes one core to 100% and the others are free, even if there is something wrong with the process and it shouldn't be using so much CPU.
Perhaps one process is thrashing one core, and the other(s) is (are) experiencing idle activity? Rarely is a CPU truly at rest...
As for me, top averages the loads of the virtual cores into a single "system load" indicator, i.e. it shows around 25% when one virtual core is totally busy. I say "virtual" because this system's CPU is an Intel Core i5, which is multithreaded dual-core. Two physical cores, but the OS sees four.
For example I have a quad-core CPU with hyper-threading, so the OS sees 8 CPUs. So even when the CPU is at 12.5% that means that a process is hogging the CPU or got stuck in an infinite loop.
I have a quad-core CPU with hyper-threading, so the OS sees 8 CPUs
[OT]Do you ever really use all that computing power? A Core i7 would be awesome for mass virtualization...this machine maxes out if I have 3 VMs booting/highly loaded at once. [/OT]
[OT]Do you ever really use all that computing power? A Core i7 would be awesome for mass virtualization...this machine maxes out if I have 3 VMs booting/highly loaded at once. [/OT]
Not really, but sometimes I have a VM or two in the background and am compiling something.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.