how greedy are your processes? | Linux niceness

Sdílet
Vložit
  • čas přidán 13. 08. 2023
  • Discovering Backend Bottlenecks: Unlocking Peak Performance
    performance.husseinnasser.com
    In this video I explain linux Nice processes and how to change the priority of a process.
    In the Linux operating system, processes manage and execute applications and tasks. One of the key utilities for managing processes on Linux is the `nice` command, which adjusts the priority of a process. Every process on Linux is assigned a 'niceness' value, which ranges from -20 (highest priority) to 19 (lowest priority). The default niceness value for processes is 0. By adjusting this value, users can influence the scheduler's decisions, giving more CPU time to crucial tasks and less to background jobs. The related command, `renice`, allows users to modify the priority of an already running process. Both utilities, when used correctly, provide users with fine-grained control over system resources, ensuring that the system remains responsive and efficient in multitasking environments.
    Fundamentals of Backend Engineering Design patterns udemy course (link redirects to udemy with coupon)
    backend.husseinnasser.com
    Fundamentals of Networking for Effective Backends udemy course (link redirects to udemy with coupon)
    network.husseinnasser.com
    Fundamentals of Database Engineering udemy course (link redirects to udemy with coupon)
    database.husseinnasser.com
    Follow me on Medium
    / membership
    Introduction to NGINX (link redirects to udemy with coupon)
    nginx.husseinnasser.com
    Python on the Backend (link redirects to udemy with coupon)
    python.husseinnasser.com
    Become a Member on CZcams
    / @hnasr
    Buy me a coffee if you liked this
    www.buymeacoffee.com/hnasr
    Arabic Software Engineering Channel
    / @husseinnasser
    🔥 Members Only Content
    • Members-only videos
    🏭 Backend Engineering Videos in Order
    backend.husseinnasser.com
    💾 Database Engineering Videos
    • Database Engineering
    🎙️Listen to the Backend Engineering Podcast
    husseinnasser.com/podcast
    Gears and tools used on the Channel (affiliates)
    🖼️ Slides and Thumbnail Design
    Canva
    partner.canva.com/c/2766475/6...
    Stay Awesome,
    Hussein
  • Věda a technologie

Komentáře • 24

  • @hnasr
    @hnasr  Před 18 dny

    Fundamentals of Operating Systems course oscourse.win

  • @cunningham.s_law
    @cunningham.s_law Před 9 měsíci +31

    nice processes finish last

  • @brandonhunter3036
    @brandonhunter3036 Před 8 měsíci +3

    In Windows I like re-prioritize certain CPU hogs, often as a workaround until the root cause can be properly addressed.
    I’ve heard people talking about “re-nicing” Linux processes for over 20 years but have never seen it done. Thank for sharing 🙏

  • @2005kpboy
    @2005kpboy Před 9 měsíci +11

    I knew about this nice thing, but the way you have demonstrated is plain awesome.
    Linux is awesome, windows is meh...

  • @danielzendejas2390
    @danielzendejas2390 Před 9 měsíci +1

    Hello Hussein! Thank you for the great videos throughout the years.
    I just wanted to share another cool way to demonstrate this. The htop command allows to update the priority of a process interactively with the characters [ and ]. That way you can assign different priority values to processes and see the effects in real time.
    Thanks again!

  • @User-ty2ml
    @User-ty2ml Před 9 měsíci +1

    Very Entertaining, good to see operating systems are NOT Ghosts. They live a life like human beings & They do not have powers of Ghosts etc.,

  • @srivasala4080
    @srivasala4080 Před 9 měsíci

    Hey Hussein, nice topic and nice talk. In the end, the dessert of philosophical wisdom is also nice 😀

  • @Learner-hg4hj
    @Learner-hg4hj Před 9 měsíci

    Thanks for talking about nice....and being wise and nice and you never fail to entice us with your awesome knowledge... You are Mr. Nice19

  • @FracsoMehdi
    @FracsoMehdi Před 9 měsíci +7

    Keep bringing value dude 💪

  • @ahsantahir5583
    @ahsantahir5583 Před 9 měsíci +1

    really appreciate this kind of content.

  • @nagame859
    @nagame859 Před 5 měsíci

    Learnt something new.. thank you sir

  • @sasonbraha4599
    @sasonbraha4599 Před 9 měsíci

    Cool. Didn't know about this.

  • @vishal8274
    @vishal8274 Před 9 měsíci +1

    Hi hussein
    This things are really beautiful
    Do u have a course on operating systems teaching these kinds of stuff. If not then I will be the first student of that course 😅

  • @hnasr
    @hnasr  Před 9 měsíci +4

    Unlock your backend performance - check out new course performance.husseinnasser.com

    • @AleemAhmed
      @AleemAhmed Před 9 měsíci

      How did you get that emoji???

  • @oyesusheel
    @oyesusheel Před 9 měsíci

    nice

  • @jameswestbrook5709
    @jameswestbrook5709 Před 9 měsíci

    when are you doing crash course on "vitess"

  • @inderjeetsingh1340
    @inderjeetsingh1340 Před 9 měsíci

    From where you read this stuff?

  • @Armand79th
    @Armand79th Před 9 měsíci

    'nice' and 'swap'... two things that rank amateurs shouldn't mess with, but often do.

  • @SumitBhanushali16
    @SumitBhanushali16 Před 9 měsíci

    so, this is why nice guys finish last 😛😂

  • @vishalgaurav4411
    @vishalgaurav4411 Před 9 měsíci

    can anyone please give me link to discord server?

  • @AU-hs6zw
    @AU-hs6zw Před 9 měsíci

    I never noticed your accent until now