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.
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 !
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.
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.
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?
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?
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
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.
Learn something EVERYTIME I watch one of your videos.
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.
I didn't know this... thanks man
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.
Nice level of yours TH-cam channel notification is -20 on my system.
Ohhh, man!!! What great content. Clear, clean, and direct to the point. Thanks a lot.
amazingly done dude. I was always in doubt whether to set the priority or the nice or both. this helps
This lecture is so freaking epic! Thank you very much man
Straightforward explanation. Good job, Engr :)
always love your videos engineer man.
Keep this work on! Learning something new every video 😊
Awesome simple video man. Thank you. I can hope I can find this again when it comes time for implementation
Super useful thxs! Now when I need a long task to be done I can selectively speed it up
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 !
Brilliant explanation! Thank you.
Niceness is real
Rogue
Brilliant and clear as usual!
I wish I'd known that a couple weeks ago. Glad I know now, thanks.
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.
tobortine really cool
Love your videos !
Very nice
Kandungan video sangat baik, tahniah
Nice!
you rock sir! thanks
Great example!
Nice video
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.
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?
The nice value of a new process is inherited from its parent process, so yes.
@@dmsalomon Perfect. Many thanks.
Nicely done
Thanks for the video
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?
Good video!
I didn't knew Mr Beast teaches Linux!!
Niceee
Noice!
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?
hahaha good one.
Very NICEZ 😉😉😉
Can you please make a tutorial on how to become a superuser on Linux
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
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.
nice video
Wow I always wondered what ni was in top
taskset is next?
Great video, can you do one on make files please?
Which linux distro are you using ?
he uses xubuntu
The docker container is CentOS.
what's the formula behind nice?
Priority +/- Nice --> 20 +/- 0 by default
Is that what you mean or the nice value itself specifically?
*I think that a single core with 2 threads can do 2 things in parallel*
That's not true. It just seems that way but in reality it is just smart scheduling.
why did you disable comments on "showing scammer who is boss with python" video
Really "nice" man!
Very *nice*
Hacker is hacking your pc?
*boom* set she nice value to 19
The lag will make them stop!