How to Interpret Load Average in Linux (Linux Crash Course Series)

  Рет қаралды 21,427

Learn Linux TV

Learn Linux TV

Күн бұрын

Пікірлер
@aaronperl
@aaronperl 2 жыл бұрын
I liked your grocery store analogy. When I worked in customer support (defect support for a large commercial software product), we had spikes in activity (incoming customer calls) occasionally, but we were able to eventually catch up while the incoming volume was lower/more normal. Over time, the number of incoming calls increased (in part due to the, uh... evolving quality of the product and new releases, as well as increasing numbers of customers), and the "spikes" started to become the new "normal" volume. Unfortunately, management was very slow at hiring new people, so we got more and more overwhelmed, as our load average grew ever higher. Eventually people started leaving (CPU cores burning out? 😁 ), which made the load even higher on the remaining people. I've since moved on to other things, and I'm enjoying my work a lot more than I did when I was in that job. I do credit it for helping me to get into my later positions, though. Anyway, just wanted to say I did like your analogy, I thought it illustrates the concept well. I've been using Linux for 24 years now, and I knew a higher load average is "bad", or at least hints at a potentially overloaded system, but I always got confused about how to actually interpret it. I guess the idea that "1 means 100%" comes from the days of single-core systems. This video definitely helped me to understand what's really going on.
@abubua8781
@abubua8781 2 жыл бұрын
The number of processors can also be found by the command " nproc " which can be installed be various packages, eg coreutils
@Xcr-oj5ih
@Xcr-oj5ih 2 жыл бұрын
I see @abu bua mentioned "nproc" as an alternate for processor info. "lscpu" can be used as well. It is usualy installed on most Linux distros, but can be installed as part of the "util-linux" package if not on your system. Thank you Jay... Awesome information. I have learned 80% of my Linux commands from watching your videos and reading comments.
@Kanthon
@Kanthon 2 жыл бұрын
I ordered a hard copy of your book last night. Keep up the good work, sir.
@BehzodSabirov
@BehzodSabirov 2 жыл бұрын
From my experience, the load average also starts to grow when RAM runs out and processes start to eat into the swap file, which affects disk IO
@Im.Tabachnik
@Im.Tabachnik 2 жыл бұрын
This is the Best Video on this Topic! Thank you again for awesome videos!
@PowerUsr1
@PowerUsr1 2 жыл бұрын
You’re right. The supermarket analogy worked
@alvarezd
@alvarezd 8 ай бұрын
This video helped me understand linux load average concept very well. Thanks!
@poonsakthipwan4384
@poonsakthipwan4384 2 ай бұрын
wow. this is super good explanation and analogy for load average I am looking for. Thank you !
@shabadabadoo4326
@shabadabadoo4326 2 жыл бұрын
The percentage analogy is ALWAYS a bad one, when looking at load average. It is the average number of processes queued to be handled by cpu package, over a given length of time(1, 5 and 15 minutes as you mentioned). This is distinctly different from determining capacity, because it is NOT how many processes actually handled over that time. Only how many are queued for cpu, over that time. A load avg of 4 on a quad core cpu, doesn't mean the cpu is at 100% capacity. The way processes are managed in the kernel, means linux can adequately manage a number of processes well over the number of cpu cores. To know if the load is high, takes a much more holistic approach to troubleshooting, involving consideration of CPU states.
@jorgeorozco935
@jorgeorozco935 Жыл бұрын
Awesome video, i liked the simple way you explained the topic
@brandongraham3509
@brandongraham3509 2 жыл бұрын
Love the supermarket analogy
@christopherjackson2157
@christopherjackson2157 2 жыл бұрын
I've been doing some performance testing over the past week and you can get load averages that exceed the number of cpus. So loads above 100 percent by this measurement. I believe load avg is determined by the number of processes waiting to be completed so it shouldn't exceed number of cpus when working normally. But when ur slamming the system and there's serious bottlenecking that's not necessarily the case. The highest I saw was loads of around 3 on 2 cores (when I started seeing loads above 100 percent I got kinda interested and tried to see how high it could get). Ultimately load avg was more determined by the network interface on the machines than the cpus they had. Testing was done on pfsense firewalls and I was trying to see how low power consumption could be pushed without affecting performance. Firewalls are on all the time and spend a lot of that time at very low load if ur not servicing users at all hours.
@LearnLinuxTV
@LearnLinuxTV 2 жыл бұрын
Correct, the load average can go above the number of CPUs. I’ve seen it go to 500 and higher, to the point where the CPU is so pegged it can’t even authenticate an SSH session so you can even connect to it and fix it.
@christopherjackson2157
@christopherjackson2157 2 жыл бұрын
@@LearnLinuxTV I still think the 100 percent measurement is useful. As I understand it it's at that point that users will start noticing and making calls to IT
@TheCuteworm
@TheCuteworm 2 жыл бұрын
平衡 ... mmm... you really nailed it.
@shahidhiraj2613
@shahidhiraj2613 2 жыл бұрын
Thank you very much for detailed explanation, just to add on we can use nproc command to find number of processors
@MarkusHobelsberger
@MarkusHobelsberger 2 жыл бұрын
I think load average is not only measured by CPU workload. It can also increase when there is a disk I/O bottleneck. I usually encounter very high load averages during specific backup jobs of folders with many small files from mechanical drives while the actual CPU utilization is below 30%.
@christopherjackson2157
@christopherjackson2157 2 жыл бұрын
Thats how I understand it. The more processes waiting to be completed the higher the load. Any sort of bottleneck should increase load avg
@bobwong8268
@bobwong8268 2 жыл бұрын
👍👍👍👍👍 Thank you very much Jay, learnt something New & Useful today😊
@sussusamogus7831
@sussusamogus7831 Жыл бұрын
clear and nice as always
@giovannicordova4803
@giovannicordova4803 Жыл бұрын
Do those numbers still apply when using a virtual machine?
@13thravenpurple94
@13thravenpurple94 2 жыл бұрын
Great work 🥳🥳🥳 Thank you 💜💜💜
@brads2041
@brads2041 2 жыл бұрын
Great video. Have not understood this
@dragomirmari
@dragomirmari 2 жыл бұрын
Really helpful video!!!
@ahmedghallab5342
@ahmedghallab5342 8 ай бұрын
شكرا Thanks it was very helpful
@paulov9626
@paulov9626 Жыл бұрын
Nice analogy. BTW why not use the following one liner instead of scrolling up and down in /proc/cpuinfo: cat /proc/cpuinfo | grep -i 'cpu cores'
@aniscuet016
@aniscuet016 2 жыл бұрын
Thanks for the video, it's awesome! A question! how did you make your BASH CLI so nice? what did you use? Thanks!
@undergrounder
@undergrounder 2 жыл бұрын
Great video, thank you!
@ChrisPavey85
@ChrisPavey85 2 жыл бұрын
If you run 'grep -c "processor" /proc/cpuinfo' it will return the number of logical CPUs
@abhimudaliar1064
@abhimudaliar1064 7 ай бұрын
Thank you.
@FinderX
@FinderX 2 жыл бұрын
If you know how to use pipe and grep this will help to see how many CPU more easily: cat /proc/cpuinfo | grep processor
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 жыл бұрын
grep -c processor /proc/cpuinfo
@anoldslowhorse
@anoldslowhorse 2 жыл бұрын
really interesting, thanks ...
@mihai6564
@mihai6564 Жыл бұрын
good video
@terryc7142
@terryc7142 2 жыл бұрын
Why, if you're running a 32-core EPYC CPU, did /proc/cpuinfo show 'cpu cores: 1" ? That makes no sense to me. For this VM, you have at least 2 cores. Shouldn't it say 2 or 32?
@kevinding5770
@kevinding5770 Жыл бұрын
how does load average calculated? when my load average is 12 and I have 8 cpu corea, my android phone is not janky.
@DL-xf3ur
@DL-xf3ur 2 жыл бұрын
Awesome as always Jay - Is it the number of CPUs or Cores that has to be reached in the load average for it to be 100% used. I noticed you said 2 for your example but your cpuinfo shows that you have a multicore system. Thanks!
@josepuga5529
@josepuga5529 10 ай бұрын
nproc: this simple command tells you how many processor your machine has.
@ericjohnson5990
@ericjohnson5990 2 жыл бұрын
Hey Jay! Have you tried the system 76 darter pro recently? I ask because I just purchased one and wanted to know your thoughts on it.
@mohitsharma-ep9iy
@mohitsharma-ep9iy Жыл бұрын
i have 2 cores and 2 threads per core so it makes 4 CPUs , so I have 4 CPUs , so does that mean i have 4 cores or 4 threads , and if it will have 4 threads then why are you saying you have 2 cores because youe have 1 core and 2 threads so that makes it 2 CPUs. So please explain this ?
@cleightthejw2202
@cleightthejw2202 2 жыл бұрын
@Jay Just wanted to say you a great job with these vids Jay. And I also wanted to put a comment down just in case it truly does help with the algorithm stuff and your channel being promoted/recommended by GoogleTube..
@sotecluxan4221
@sotecluxan4221 2 жыл бұрын
@BrianLongoria
@BrianLongoria 2 жыл бұрын
Cool
@rashie
@rashie 2 жыл бұрын
👍👍
@nymnicholas
@nymnicholas 2 жыл бұрын
Wait a min, you have 48 Cores for Desktop and calculations based on load average based with CPU... ok, Overkill. The load then, will never reach 48.0 unless it's trying to compile, maybe the Linux kernel 48 times at 1 go [maybe the only way to know is to try it] Peace :-)
@guilherme5094
@guilherme5094 2 жыл бұрын
👍
@_den_
@_den_ 2 жыл бұрын
Once again I wasted my time on you. And you didn't even mention how disk handling affects this parameter.
Linux Crash Course - Understanding Logging
29:10
Learn Linux TV
Рет қаралды 54 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Linux Crash Course - Understanding Memory and Swap Usage
20:55
Learn Linux TV
Рет қаралды 51 М.
Linux Crash Course - Data Streams (stdin, stdout & stderr)
17:13
Learn Linux TV
Рет қаралды 57 М.
Linux Crash Course - The diff Command
22:21
Learn Linux TV
Рет қаралды 19 М.
Linux Crash Course -  Managing Users
32:59
Learn Linux TV
Рет қаралды 112 М.
Linux Crash Course - The df and du Commands
20:28
Learn Linux TV
Рет қаралды 31 М.
What is $PATH on a Linux Shell? (The Linux Crash Course Series)
21:52
Learn Linux TV
Рет қаралды 36 М.
Demystifying the Top Command in Linux | Linux Crash Course Series
27:08
How to Use the ip Command in Linux: A Beginner’s Guide
16:44
Learn Linux TV
Рет қаралды 15 М.
load averages explained in linux
2:53
Professor Linux
Рет қаралды 3 М.