Linux Nice and Priority values

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 63

  • @pldvs
    @pldvs 5 ปีที่แล้ว +39

    Learn something EVERYTIME I watch one of your videos.

  • @jarredallen3228
    @jarredallen3228 5 ปีที่แล้ว +22

    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 ปีที่แล้ว +9

    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 ปีที่แล้ว +24

    Nice level of yours TH-cam 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 ปีที่แล้ว +1

    This lecture is so freaking epic! Thank you very much man

  • @jairahflores8393
    @jairahflores8393 5 ปีที่แล้ว

    Straightforward explanation. Good job, Engr :)

  • @chilusoftcorp7762
    @chilusoftcorp7762 5 ปีที่แล้ว

    always love your videos engineer man.

  • @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

  • @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 !

  • @arpansrivastava5943
    @arpansrivastava5943 ปีที่แล้ว

    Brilliant explanation! Thank you.

  • @antwanwimberly1729
    @antwanwimberly1729 ปีที่แล้ว

    Niceness is real
    Rogue

  • @glikar1
    @glikar1 5 ปีที่แล้ว

    Brilliant and clear as usual!

  • @binbashbuddy
    @binbashbuddy 5 ปีที่แล้ว +1

    I wish I'd known that a couple weeks ago. Glad I know now, thanks.

  • @tobortine
    @tobortine 5 ปีที่แล้ว +1

    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

  • @villakuyt
    @villakuyt 5 ปีที่แล้ว

    Love your videos !

  • @iancullicott6867
    @iancullicott6867 5 ปีที่แล้ว +2

    Very nice

  • @aishuwaryaaishu6794
    @aishuwaryaaishu6794 2 ปีที่แล้ว

    Kandungan video sangat baik, tahniah

  • @AshtonSnapp
    @AshtonSnapp 5 ปีที่แล้ว +2

    Nice!

  • @fatemepourghaemi2587
    @fatemepourghaemi2587 3 ปีที่แล้ว

    you rock sir! thanks

  • @DevDungeon
    @DevDungeon 5 ปีที่แล้ว

    Great example!

  • @j.4880
    @j.4880 5 ปีที่แล้ว +1

    Nice video

  • @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 ปีที่แล้ว +1

    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 ปีที่แล้ว +2

      The nice value of a new process is inherited from its parent process, so yes.

    • @aitchpea6011
      @aitchpea6011 5 ปีที่แล้ว

      @@dmsalomon Perfect. Many thanks.

  • @transatlant1c
    @transatlant1c 5 ปีที่แล้ว

    Nicely done

  • @jaisonvjohn7497
    @jaisonvjohn7497 5 ปีที่แล้ว

    Thanks for the video

  • @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?

  • @syrefaen
    @syrefaen 5 ปีที่แล้ว

    Good video!

  • @param934
    @param934 2 ปีที่แล้ว

    I didn't knew Mr Beast teaches Linux!!

  • @DavidH13094
    @DavidH13094 8 หลายเดือนก่อน

    Niceee

  • @kougsk367
    @kougsk367 5 ปีที่แล้ว

    Noice!

  • @zinsy23
    @zinsy23 5 ปีที่แล้ว +1

    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?

  • @frannelk
    @frannelk 5 ปีที่แล้ว

    Very NICEZ 😉😉😉

  • @neelraval12
    @neelraval12 5 ปีที่แล้ว

    Can you please make a tutorial on how to become a superuser on Linux

  • @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 ปีที่แล้ว +2

      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.

  • @buckweat420
    @buckweat420 5 ปีที่แล้ว

    nice video

  • @hauby121
    @hauby121 5 ปีที่แล้ว

    Wow I always wondered what ni was in top

  • @alexeiz
    @alexeiz 5 ปีที่แล้ว

    taskset is next?

  • @matthewthecomposer
    @matthewthecomposer 5 ปีที่แล้ว

    Great video, can you do one on make files please?

  • @radiance4524
    @radiance4524 5 ปีที่แล้ว

    Which linux distro are you using ?

    • @novaardent4528
      @novaardent4528 5 ปีที่แล้ว +1

      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?

  • @vapon
    @vapon 5 ปีที่แล้ว

    *I think that a single core with 2 threads can do 2 things in parallel*

    • @NumbBanana
      @NumbBanana 5 ปีที่แล้ว +1

      That's not true. It just seems that way but in reality it is just smart scheduling.

  • @Naleksuh
    @Naleksuh 5 ปีที่แล้ว

    why did you disable comments on "showing scammer who is boss with python" video

  • @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!