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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
This para is from book - 'Troubleshooting Linux Server Best Practices', describing load average in uptime command.
"A single-CPU system with a load average of 1 means the single CPU is under constant load. If that single-CPU system has a load average of 4, there is four times the load on the system than it can handle, so three out of four processes are waiting for resources. The load average reported on a system is not tweaked based on the number of CPUs you have, so if you have a two-CPU system with a load average of 1, one of your two CPUs is loaded at all times — that is, you are 50% loaded. So a load of 1 on a single-CPU system is the same as a load of 4 on a four-CPU system in terms of the amount of available resources used."
In this, when he says 1 CPU, is he referring to a physical CPU or Cores ?
I'm confused, in my system I have 1 physical CPU (Intel Core2Duo E7500) with 2 cores. A load of 1 in my system is 100% or 50% ? I have also seen servers with 2 physical CPUs (or processors )
My system output:
Code:
# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 23
Model name: Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz
Stepping: 10
CPU MHz: 1600.000
CPU max MHz: 2933.0000
CPU min MHz: 1600.0000
BogoMIPS: 5866.29
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 3072K
NUMA node0 CPU(s): 0,1
# nproc
2
When in doubt believe what the kernel is telling you.
Quote:
Is single core considered as one CPU ?
Yes.
The author of that article is wrong about how loadavg should be interpreted - this is a common fallacy on the web also. In Linux, the loadavg includes tasks in uniterruptible sleep - usually waiting on disk I/O. This can cause the loadavg to increase without having any demand or effect on CPU usage.
They're referring to cores and they wrote about that topic in a very confusing manner. They'd have been better off just copying from the uptime manual page instead of wherever they got that or rewrote it.
The definition of a CPU (Central Processing Unit) is that part of the hardware that incorporates the instruction cycle, which carries out the processing part.
The fact that vendors started mixing "cpu" for their product containing multiple cpus is a marketing issue. The technical definition of CPU hasn't changed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.