Linux Nice and Priority values

  Рет қаралды 25,625

Engineer Man

Engineer Man

Күн бұрын

Пікірлер: 63
@pldvs
@pldvs 5 жыл бұрын
Learn something EVERYTIME I watch one of your videos.
@jarredallen3228
@jarredallen3228 5 жыл бұрын
One thing I like to use that wasn't mentioned here: If you renice your terminal, then all new jobs you run from within that terminal will inherit the new nice value from the ternal.
@syednadeembe
@syednadeembe 3 жыл бұрын
I didn't know this... thanks man
@ZeeLegend
@ZeeLegend 5 жыл бұрын
most of the comments say: Nice video. so I'm going to go another way and say this video was a definite priority for me to watch.
@vladimirmikulic7860
@vladimirmikulic7860 5 жыл бұрын
Nice level of yours KZbin channel notification is -20 on my system.
@Hackenbaker
@Hackenbaker 3 жыл бұрын
Ohhh, man!!! What great content. Clear, clean, and direct to the point. Thanks a lot.
@syednadeembe
@syednadeembe 3 жыл бұрын
amazingly done dude. I was always in doubt whether to set the priority or the nice or both. this helps
@GuitarreroDaniel
@GuitarreroDaniel 3 жыл бұрын
This lecture is so freaking epic! Thank you very much man
@arpansrivastava5943
@arpansrivastava5943 Жыл бұрын
Brilliant explanation! Thank you.
@jairahflores8393
@jairahflores8393 5 жыл бұрын
Straightforward explanation. Good job, Engr :)
@ibanez7736
@ibanez7736 2 жыл бұрын
Super useful thxs! Now when I need a long task to be done I can selectively speed it up
@carina_lins
@carina_lins 4 жыл бұрын
Thanks for that ! I wish you has a video explaining about Swap memory and difference between memories, when to use them, how they are useful, etc. Cos you explain really well !
@khushitshah2215
@khushitshah2215 5 жыл бұрын
Keep this work on! Learning something new every video 😊
@ericstevens653
@ericstevens653 4 жыл бұрын
Awesome simple video man. Thank you. I can hope I can find this again when it comes time for implementation
@binbashbuddy
@binbashbuddy 5 жыл бұрын
I wish I'd known that a couple weeks ago. Glad I know now, thanks.
@chilusoftcorp7762
@chilusoftcorp7762 5 жыл бұрын
always love your videos engineer man.
@aishuwaryaaishu6794
@aishuwaryaaishu6794 2 жыл бұрын
Kandungan video sangat baik, tahniah
@antwanwimberly1729
@antwanwimberly1729 Жыл бұрын
Niceness is real Rogue
@tobortine
@tobortine 5 жыл бұрын
A long time ago, way before Unix had an L, we would use renice if we had to get a job done quickly during the day. We worked on the basis that if we could give it max priority it would finish before users bothered picking up the phone to moan at the IT dept.
@valiok9880
@valiok9880 5 жыл бұрын
tobortine really cool
@glikar1
@glikar1 5 жыл бұрын
Brilliant and clear as usual!
@villakuyt
@villakuyt 5 жыл бұрын
Love your videos !
@azdinator
@azdinator 2 жыл бұрын
Question : What could explain that htop shows "wrong" rt-priority value than what had been coded in the software ? You mentioned that at the end, the Kernel has the last word and decides what prio it will assign to which task. Suppose your application has all the rights needed, how could you explain that the prio "seen" by the kernel differs to what has been coded ? Cheers & congrats for your vid.
@aitchpea6011
@aitchpea6011 5 жыл бұрын
Great video. One question: If I call a script with nice, will programs called from within that script also respect that nice value, or will they default?
@dmsalomon
@dmsalomon 5 жыл бұрын
The nice value of a new process is inherited from its parent process, so yes.
@aitchpea6011
@aitchpea6011 5 жыл бұрын
@@dmsalomon Perfect. Many thanks.
@iancullicott6867
@iancullicott6867 5 жыл бұрын
Very nice
@j.4880
@j.4880 5 жыл бұрын
Nice video
@zinsy23
@zinsy23 5 жыл бұрын
I'm assuming that in Windows, running a process in real time is basically the equivalent to running a nice value of -20 in Linux?
@vladimirmikulic7860
@vladimirmikulic7860 5 жыл бұрын
hahaha good one.
@fatemepourghaemi2587
@fatemepourghaemi2587 3 жыл бұрын
you rock sir! thanks
@robertkathrein9055
@robertkathrein9055 5 жыл бұрын
notice that 1 CPU with 4 Cores still only can run 1 Process at any given time! It only can handle 4 threads concurrent. To archive true parallel computing you need multiple CPUs not multiple cores
@EngineerMan
@EngineerMan 5 жыл бұрын
I believe you are mistaking CPUs and cores with threads. Each CPU core is independent from one another (including having its own registers and cache) and can handle tasks. A four core CPU can do four independent workloads in parallel. Often times we hear vendors advertising things like four core, eight thread CPUs. In this case, rather than the Linux kernel handling context switching for a four core CPU, it instead sees eight logical cores and the context switching is delegated to the hyper-threading mechanism in the CPU itself. A four core, eight thread machine can handle concurrent tasks better but can still only do four independent workloads.
@Grianan66
@Grianan66 2 жыл бұрын
While this video is 3.5yrs old, it still helped clear my brain fog with nice and priority levels. On a side note, any clue why they chose "nice"? Is it an acronym or something?
@param934
@param934 2 жыл бұрын
I didn't knew Mr Beast teaches Linux!!
@neelraval12
@neelraval12 5 жыл бұрын
Can you please make a tutorial on how to become a superuser on Linux
@hauby121
@hauby121 5 жыл бұрын
Wow I always wondered what ni was in top
@transatlant1c
@transatlant1c 5 жыл бұрын
Nicely done
@syrefaen
@syrefaen 5 жыл бұрын
Good video!
@frannelk
@frannelk 5 жыл бұрын
Very NICEZ 😉😉😉
@AshtonSnapp
@AshtonSnapp 5 жыл бұрын
Nice!
@jaisonvjohn7497
@jaisonvjohn7497 5 жыл бұрын
Thanks for the video
@alexeiz
@alexeiz 5 жыл бұрын
taskset is next?
@DevDungeon
@DevDungeon 5 жыл бұрын
Great example!
@matthewthecomposer
@matthewthecomposer 5 жыл бұрын
Great video, can you do one on make files please?
@vapon
@vapon 5 жыл бұрын
*I think that a single core with 2 threads can do 2 things in parallel*
@NumbBanana
@NumbBanana 5 жыл бұрын
That's not true. It just seems that way but in reality it is just smart scheduling.
@radiance4524
@radiance4524 5 жыл бұрын
Which linux distro are you using ?
@novaardent4528
@novaardent4528 5 жыл бұрын
he uses xubuntu
@porlando12
@porlando12 5 жыл бұрын
The docker container is CentOS.
@carlesg0n
@carlesg0n 5 жыл бұрын
what's the formula behind nice?
@transatlant1c
@transatlant1c 5 жыл бұрын
Priority +/- Nice --> 20 +/- 0 by default
@transatlant1c
@transatlant1c 5 жыл бұрын
Is that what you mean or the nice value itself specifically?
@DavidH13094
@DavidH13094 8 ай бұрын
Niceee
@buckweat420
@buckweat420 5 жыл бұрын
nice video
@Naleksuh
@Naleksuh 5 жыл бұрын
why did you disable comments on "showing scammer who is boss with python" video
@kougsk367
@kougsk367 5 жыл бұрын
Noice!
@chriszep21
@chriszep21 3 жыл бұрын
Really "nice" man!
@creeper3490
@creeper3490 5 жыл бұрын
Very *nice*
@creeper3490
@creeper3490 5 жыл бұрын
Hacker is hacking your pc? *boom* set she nice value to 19 The lag will make them stop!
Linux, Unix, macOS Cron Jobs
12:27
Engineer Man
Рет қаралды 26 М.
Linux processes, init, fork/exec, ps, kill, fg, bg, jobs
13:47
Engineer Man
Рет қаралды 173 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 15 МЛН
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 46 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 16 МЛН
Linux File Permissions and Attributes
8:30
Engineer Man
Рет қаралды 15 М.
Linux Process Tuning Made Easy: Understanding nice and renice
16:34
Learn Linux TV
Рет қаралды 14 М.
The World Depends on 60-Year-Old Code No One Knows Anymore
9:30
Coding with Dee
Рет қаралды 1 МЛН
My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency)
11:06
How Does Linux Boot Process Work?
4:44
ByteByteGo
Рет қаралды 722 М.
Supercharged Docker with Docker Compose
12:56
Engineer Man
Рет қаралды 29 М.
Linux Command Line Pipes and Redirection
10:34
Engineer Man
Рет қаралды 27 М.
Understanding Fork Bombs in 5 Minutes or Less
5:55
Engineer Man
Рет қаралды 175 М.
Chown, Chmod and Shell Aliases
22:07
DistroTube
Рет қаралды 13 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 15 МЛН