Linux Internals - Process Management

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 มิ.ย. 2024
  • In this episode of the CyberGizmo we explore how the Linux Process Management works, how programs become processes, how LINUX manages these process, and the State Machine behind the curtain that keeps it all straight. Also how Linux uses fork and exec to create new processes.
    Support me on Patreon: / djware
    Follow me:
    Twitter @djware55
    Facebook: / don.ware.7758
    Discord: / discord
    Music Used in this video
    "NonStop" Kevin MacLeod (incompetech.com)
    Licensed under Creative Commons: By Attribution 3.0 License
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @rotrose7531
    @rotrose7531 3 ปีที่แล้ว +2

    These knowledge are the very thing I am hunger for as a sys admin. Please continue to share these deep talk of Linux.

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

    Thanks DJ for sharing your knowledge in such a digestible way. You are an inspiration! Keep up the good work

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

    I am very much happy with the video...Thanks DJ Ware

  • @waliabbas
    @waliabbas 2 ปีที่แล้ว +1

    Thank you, your clear explanation has given me peace.

  • @dimitardanov
    @dimitardanov 3 ปีที่แล้ว +7

    Thank you for the series. Much appreciated.

    • @CyberGizmo
      @CyberGizmo  3 ปีที่แล้ว +1

      Welcome Dimitar

  • @emcpadden
    @emcpadden 2 ปีที่แล้ว +1

    Another great explanation, thank you!

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

    This was a good one. I've been working through these for continuing education at work. Some of them are a little boring, just because I already know parts of all this (so that's no criticism - they'd be great for someone not familiar), but this one was on some details I hadn't delved into before. So thanks for a very clear presentation and keep up the great work! Stay safe!

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

    @DJ This is good stuff. I don't know how old these videos are but this is definitely more the 'education' stuff for guys like myself.

  • @chandrakumar8371
    @chandrakumar8371 2 ปีที่แล้ว +1

    Thank you for such a wonderful explanation..

  • @AmIRealYouTube
    @AmIRealYouTube 2 หลายเดือนก่อน

    Very informative. Thank you!

  • @user-mr3mf8lo7y
    @user-mr3mf8lo7y ปีที่แล้ว

    Much obliged.

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

    Thanks, these in depth videos are so great! 👍 Didn’t know the word: “Zombie-Walk”, now I do 😀🖖

  • @swatiruhela655
    @swatiruhela655 2 ปีที่แล้ว +1

    Sir thank you very much for this series. Very nice content . Very informative ..Appreciate

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

    Great video

  • @ajaynair3366
    @ajaynair3366 3 ปีที่แล้ว +1

    I have an interview tomorrow and this is very helpful!

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

      Good Luck with the interview

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

    👍👍- Gracias, senor!

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

    Nice introduction Tasks relativ scheduled are the best processes

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

    These videos are awesome! Helping me refresh concepts and prepare for interviews. Do you have a link to these slides?

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

    The freaky thing (annoying) about zombies is that they don't or can't trap signals anymore. You find a defunct a.out because your program locked up somewhere, but you can't kill -9 it as it's already marked defunct. It gets even more freaky when the process you were trying to evict was a hung "mount" command, say due to a hung NFS mount point. You get fed up and kill the mount process, but you can't kill it as it's blocked in kernel space, the process disappears, you get your shell back, but the mount command stays as a defunct zombie for a while. Hung NFS mounts are evil.

  • @abdallahrashed1947
    @abdallahrashed1947 3 ปีที่แล้ว +1

    I was waiting to understand the difference between threads and processes, wish you talk about it

    • @CyberGizmo
      @CyberGizmo  3 ปีที่แล้ว +4

      I see from the poll so far people want more on the internals so will put together a few more videos and will had you request to the list Abadallah.

    • @alexanderalejandre241
      @alexanderalejandre241 2 ปีที่แล้ว +1

      @@CyberGizmo The internals are fascinating from your PoV

  • @subee128
    @subee128 4 หลายเดือนก่อน

    Thanks

  • @77jaykb
    @77jaykb ปีที่แล้ว +1

    I think the zombie process definition is not accurate. When a parent dies, its just a running orphan process which will be adopted by init. Zombie is when the child is already dead but it continues to use reasources - and the parent doesnt/canot do anything about it.

  • @icewreck
    @icewreck 2 ปีที่แล้ว +1

    Awesome tutorials. Can you send a link to the slides ?

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

    gold

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

    At 2.20ish you mentioned that each process will have a pid and this will be a number generated by the system. this number has a limit and then it will be recycled back through the numbers. can you please tell me what is that number (the limit) and also doco relating to that? Thank you.
    Your content is excellent, please keep going esp with Internals... :)

  • @anonymous.youtuber
    @anonymous.youtuber 3 หลายเดือนก่อน +1

    Hehe somehow you look some 20 years younger. The guru look was also ok though. 😉

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

    comment 2
    @DJ
    Do you think you could do a video or so on how a protocol works with its functions on 2 machines(which is ultimately expanded beyond that)? Like when IP sends out to another device- what is the other side wating for or how does it know what to send back like which functions to use? Does that make sense?
    Or if you are familiar with BGP (and I'm sure you are) how would that work on a 'smile level' (even overly simplified)?
    Are those functions packed in the same 'while'/'for' loop or are they separate? How does the other device know which function to use to address what it is receiving and then send out (if necessary) and visa-versa? So basically 'how are they 'talking' to each other with knoledge of what they are saying/expecting?
    DJ, I was saying this for video stuff- not to have you literally writing it all here. I'm sure that would take a while to do
    Thank you

  • @RobinSingh-md1sh
    @RobinSingh-md1sh 3 ปีที่แล้ว +2

    Thanks for the video. However I believe your description of zombie process is wrong and you actually described an orphaned process. What are your thoughts?

    • @CyberGizmo
      @CyberGizmo  3 ปีที่แล้ว +1

      So first, all processes are spawned via a fork call. The "official" UNIX definition is the one I use, even for Linux is: A process which has finished the execution but still has entry in the process table to report to its parent process is known as a zombie process. A child process always first becomes a zombie before being removed from the process table. The parent process reads the exit status of the child process which reaps off the child process entry from the process table.

    • @RobinSingh-md1sh
      @RobinSingh-md1sh 3 ปีที่แล้ว

      @@CyberGizmo thanks for the super prompt reply. Appreciate it. And yes this definition sounds right.

  • @enufots4621
    @enufots4621 3 ปีที่แล้ว +1

    Out of the 8 modules, which one should I start with and in what order?

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

      They are all independent wanted to put them together so each one stood alone.

  • @M0rn1n6St4r
    @M0rn1n6St4r 3 ปีที่แล้ว +1

    What happened to Part 1? After noticing that "Linux Internals - SysCalls" was the first in a _series_ of videos, I decided I would make a playlist to "binge-watch" later. I finally stopped procrastinating... creating the playlist, now. I recall seeing "...Part 1: Process Management" prior to today, but I cannot find it.

    • @CyberGizmo
      @CyberGizmo  3 ปีที่แล้ว +2

      I bet you were looking for the video at the same time I was creating a playlist for them, the play list is called Linux Internals and should have all of them in there. Cheers

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

      @@CyberGizmo: If only you had acted sooner. I've already created my own playlist. My procrastination could have yielded the pleasant surprise: someone else already took care of this. :-)

    • @M0rn1n6St4r
      @M0rn1n6St4r 3 ปีที่แล้ว +1

      @@CyberGizmo: Uhh... it is absent from your playlist, too. I cannot find it by searching your channel. Perhaps you changed the privacy setting on that video?

    • @CyberGizmo
      @CyberGizmo  3 ปีที่แล้ว +1

      I see it marked public look for Process Management

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

      Try this th-cam.com/video/Ip9P1XJt5PI/w-d-xo.html

  • @harikrishnan2698
    @harikrishnan2698 3 ปีที่แล้ว +1

    25:03 , isn't it orphan process ?
    en.wikipedia.org/wiki/Orphan_process

    • @CyberGizmo
      @CyberGizmo  3 ปีที่แล้ว +2

      You are quite correct, Hari and thanks for catching that.

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

    im on my way on backend, am i doing right being ended up here?

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

      You're fine, I tried to put these together so you didnt have to do them in a particular order

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

    who thought that process management was BPM (bussiness process management)?

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

      Can you just image an BPM expert writing OS code omg

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

      @@CyberGizmo hahaha i forgot the OS part, when researching

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

    sir why u dont have any beard like long beard, thanks btw

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

      hahah shaved it off long ago :)