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

  Рет қаралды 52,810

Chris Kanich

Chris Kanich

Күн бұрын

Course schedule: www.cs.uic.edu/~ckanich/cs361...

Пікірлер: 29
@kafoby8732
@kafoby8732 6 күн бұрын
Thank you for making these lectures FREE!!
@yonahcitron226
@yonahcitron226 10 ай бұрын
It’s a joke that this is available online for free. Absolute gold. Love every minute!
@j5ylim396
@j5ylim396 Жыл бұрын
wished my lecturers were like this. great one man, cheers
@whata4head666
@whata4head666 3 жыл бұрын
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" kzbin.info
@stevewu9372
@stevewu9372 3 жыл бұрын
Thank you, Chris, I learned a lot from you!
@DJ-vx9gl
@DJ-vx9gl 2 жыл бұрын
Wonderful explanations, thank you!
@urbankoistinen5688
@urbankoistinen5688 17 күн бұрын
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.
@flyxtop
@flyxtop 3 жыл бұрын
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 kzbin.info
@user-jx1go3bf8k
@user-jx1go3bf8k Ай бұрын
Thank you!
@ninjazhu
@ninjazhu Жыл бұрын
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.
@alex_d_lee
@alex_d_lee 2 ай бұрын
this is so good
@nang88
@nang88 2 жыл бұрын
cool
@glenyeldho5782
@glenyeldho5782 3 жыл бұрын
Waiting for the next video in this series 😁😁
@ZubairAhmad-wu2tw
@ZubairAhmad-wu2tw 3 жыл бұрын
I found Y/T channel "Tech Instance" helpful too kzbin.info
@demablogia
@demablogia Жыл бұрын
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 Жыл бұрын
(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)
@wonderfulworld2475
@wonderfulworld2475 2 ай бұрын
When someone on KZbin compress your 4 hour lecture into 20mns :D
@venumaj112
@venumaj112 3 жыл бұрын
Is it possible to use mmap which is huge pages backed ?
@gleventhal
@gleventhal 5 ай бұрын
Yes, see the man page (MAP_HUGETLB and MAP_HUGE_2MB, etc)
@halleluyahwoldesenbetbrhan1099
@halleluyahwoldesenbetbrhan1099 9 ай бұрын
where can i get the slides
@jiezhang5325
@jiezhang5325 3 жыл бұрын
This vedio solve my confusion!
@KangJangkrik
@KangJangkrik 2 жыл бұрын
你好兄弟
@gleventhal
@gleventhal 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!
@winstonacousticstudio445
@winstonacousticstudio445 3 жыл бұрын
how many weeks does this course last for?
@ChrisKanich
@ChrisKanich 3 жыл бұрын
It's a 15 week course - I put a link to the schedule in the description.
@arunraju9705
@arunraju9705 2 жыл бұрын
0.75 speed is good.
@kiloton5764
@kiloton5764 Жыл бұрын
LOL I used 1.5
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 13 МЛН
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 11 МЛН
What's Virtual Memory? - Computerphile
22:40
Computerphile
Рет қаралды 175 М.
Why Linux Has This Syscall?!
2:05:25
Tsoding
Рет қаралды 47 М.
In-depth: ELF - The Extensible & Linkable Format
19:02
stacksmashing
Рет қаралды 190 М.
Introduction to Memory Management in Linux
51:19
The Linux Foundation
Рет қаралды 169 М.
Why I Chose Rust Over Zig
33:18
ThePrimeTime
Рет қаралды 45 М.
The mechanics of VIRTUAL MEMORY //Source Dive// 005
1:14:54
Low Byte Productions
Рет қаралды 24 М.
I built my own memory profiler (in Rust, on Linux)
22:58
fasterthanlime
Рет қаралды 59 М.
Here's What Happens When an 18 Year Old Buys a Mainframe
45:12
SHARE Association
Рет қаралды 3,2 МЛН
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 13 МЛН