understanding mmap, the workhorse behind keeping memory access efficient in linux

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

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

  • @yonahcitron226
    @yonahcitron226 ปีที่แล้ว +12

    It’s a joke that this is available online for free. Absolute gold. Love every minute!

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

    Thank you for making these lectures FREE!!

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

    wished my lecturers were like this. great one man, cheers

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

    Thank you professor for these lectures.💌

  • @whata4head666
    @whata4head666 4 ปีที่แล้ว +9

    Greetings from Brazil Chris, just wanna say thank you, you're really helping me :)

    • @ZubairAhmad-wu2tw
      @ZubairAhmad-wu2tw 3 ปีที่แล้ว

      you might also want to watch "Tech Instance" th-cam.com/users/TechInstance

  • @gleventhal
    @gleventhal 9 หลายเดือนก่อน +5

    Boy, do I love when a native english speaker who actually knows the topic well presents a technical topic this well. Thanks for being you!

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

    thanks I learned some things today again! (I knew this earlier but it's interesting every program or library exists as a file)

    • @ZubairAhmad-wu2tw
      @ZubairAhmad-wu2tw 3 ปีที่แล้ว

      give "Tech Instance" a try too th-cam.com/users/TechInstance

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

    Thank you, Chris, I learned a lot from you!

  • @realkoryheard
    @realkoryheard 14 วันที่ผ่านมา

    This is really good.

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

    It is also worthwhile to test that the system does what the documentation seems to imply it should do.
    Try mmap on a large file using different flags, see what happens when the file is cashed in main memory.

  • @DJ-vx9gl
    @DJ-vx9gl 2 ปีที่แล้ว +3

    Wonderful explanations, thank you!

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

    That is one method of implementing VM. There are multiple methods. Not all hardware has the came features which limits sometimes which techniques are used and can even force you to think outside the box which programmers should do anyway.

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

    Waiting for the next video in this series 😁😁

    • @ZubairAhmad-wu2tw
      @ZubairAhmad-wu2tw 3 ปีที่แล้ว

      I found Y/T channel "Tech Instance" helpful too th-cam.com/users/TechInstance

  • @wonderfulworld2475
    @wonderfulworld2475 7 หลายเดือนก่อน +1

    When someone on TH-cam compress your 4 hour lecture into 20mns :D

  • @demablogia
    @demablogia 2 ปีที่แล้ว +4

    Great video, thanks. One question: when source is compiled & linked into an ELF file , this file doesn't have any virtual address but local offsets. So , I guess, someone and sometime translate those local offsets to virtual adresses . Is the code (.text, .data ) stored into real memory modified ( by someone ) with virtual address references ? Or code stored into real memory still has got offsets ?

    • @Henry-sv3wv
      @Henry-sv3wv ปีที่แล้ว +3

      (i am no expert, just writing what i just learned from web)
      * every process only "sees" virtual memory.
      * a static linked ELF contains no symbols and is ready to run with a fixed entry point address.
      * an ELF that uses dynamic libraries contains symbols and needs dynamic linking which is done by the loader ( ld-linux )
      In my current Arch Linux the dynamic linker/loader ld-linux is: ld-linux-x86-64.so.2 coming from the glibc 2.36 library package. (it itself is a statically linked ELF executable)

  • @janshaka
    @janshaka 5 หลายเดือนก่อน

    Thank you!

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

    cool

  • @alex_d_lee
    @alex_d_lee 6 หลายเดือนก่อน

    this is so good

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

    This vedio solve my confusion!

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

    Is it possible to use mmap which is huge pages backed ?

    • @gleventhal
      @gleventhal 9 หลายเดือนก่อน

      Yes, see the man page (MAP_HUGETLB and MAP_HUGE_2MB, etc)

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

    where can i get the slides

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

    0.75 speed is good.

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

      LOL I used 1.5

  • @winstonacousticstudio445
    @winstonacousticstudio445 4 ปีที่แล้ว

    how many weeks does this course last for?

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

      It's a 15 week course - I put a link to the schedule in the description.