Тёмный

But, what is Virtual Memory? 

Tech With Nikola
Подписаться 49 тыс.
Просмотров 278 тыс.
50% 1

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 291   
@therelatableladka
@therelatableladka 6 месяцев назад
Hey if you are seeing this, let me tell you, this is the best video in RU-vid if you want to understand the concept of virtual memory, and others in simple and sweet. Perfect! ❤ Edit: Coming back after long time. Writing a blog, and really needed an low level and mostly complete explanation of virtual memory. Also, following windows internals part-1 book. This video is still gold.
@TechWithNikola
@TechWithNikola 6 месяцев назад
Thank you! :)
@siegfriedbarfuss9379
@siegfriedbarfuss9379 5 месяцев назад
Not really. He forget that OS claims RAM too
@Chemest_a
@Chemest_a 5 месяцев назад
@@siegfriedbarfuss9379 3:54
@Hyp3r8Sniper
@Hyp3r8Sniper 4 месяца назад
​​​​@@siegfriedbarfuss9379 Why is that relevant to this demonstration? You could just generalise an OS as another program? It's also shown at 3:58...
@BigBoiTurboslav
@BigBoiTurboslav 5 месяцев назад
Holy crap. RU-vid algorithm finally came through. This is some amazing content.
@TechWithNikola
@TechWithNikola 5 месяцев назад
Thank you :-)
@jay_wright_thats_right
@jay_wright_thats_right 4 месяца назад
Diet
@antoniofuller2331
@antoniofuller2331 4 месяца назад
It sure did
@Roekelly-j3x
@Roekelly-j3x 2 месяца назад
yooo W disco elysium pfp
@viking420
@viking420 5 месяцев назад
Fantastic video. I'm taking a OS course at university and we have a virtual memory assignment. The hand out documents left me feeling confused and a bit lost, but then this 20-minute video made all concepts clear as day. Thank you for putting effort into making these videoes, you earned a new subscriber!
@TechWithNikola
@TechWithNikola 5 месяцев назад
I’m glad it was helpful. You’re welcome, and thank you for taking the time to comment.
@ddosan4108
@ddosan4108 2 месяца назад
Start with the problem to understand the solution !!!!! Again and again I’ve seen explanation that detail the concepts without starting with the why. If you don’t understand the problem you’ll never truly get the solution. If you can’t put your finger on the problem… that’s the reason you’re having a hard time understanding. Don’t try to skip this step. Excellent job! Amazing video.
@TechWithNikola
@TechWithNikola Месяц назад
Thanks a lot for taking the time to comment. It means a lot to hear from people that it was worth it! Exactly. I always like to start with the problem first. It makes everything much easier
@diegorodriguezv
@diegorodriguezv 4 месяца назад
This is amazing! More detail than most Operating System courses in 20 minutes. Awestruck!
@TechWithNikola
@TechWithNikola 4 месяца назад
Thanks. Glad you think so! I’ll try to make more videos on similar topics in the future.
@69k_gold
@69k_gold 5 месяцев назад
There's a quite good reason 4 KB is used as a standard page size. In most disk partitioning software the minimum data you can read/write to is 4KB, so it can move it in one swoop
@ethos8863
@ethos8863 5 месяцев назад
yeah i figured this was the reason and was wondering why he didn't say so
@TechWithNikola
@TechWithNikola 5 месяцев назад
Thanks. I didn’t know that. Do you have any material or references that provide motivation for 4KB page size? I read some articles that suggest it was chosen empirically long time ago, but I’d like to learn more about it.
@mc-not_escher
@mc-not_escher 5 месяцев назад
This is simply untrue if you grew up during the 80’s or 90’s (or, shoot, even later). Research something called a “filesystem”. Also while you’re at it, check out an article on “Solid State Drives” or “Flash Memory” or “NVRAM” if you’re wondering why 4K is the block size. 😂😂😂
@rodrigodoh
@rodrigodoh 5 месяцев назад
@@TechWithNikola They probably choose it because 0x1000 is pretty nice to type. ARM macs use 16kb pages I think.
@yaroslavpanych2067
@yaroslavpanych2067 4 месяца назад
It has nothing to do with disc sector/cluster size, like at all. And yeah, 64 bit osses use 32k pages.
@jansustar4565
@jansustar4565 11 месяцев назад
Thank you for the video. The explanation was clear, structured and concise, better than most other explanations on youtube.
@TechWithNikola
@TechWithNikola 11 месяцев назад
Thanks a lot for the kind words and for taking the time to leave the comment. I'm so happy to hear that you've liked the video!
@ShaunYCheng
@ShaunYCheng Месяц назад
Found your channel from RU-vid recommendation. Nice work. Dude you have a huge overlap of interests as me. I was a math major and now a SW engineer for over 10 yrs, play chess, plays basketball, plays games (not sure what game you play but I mostly play an old game called StarCraft 2). I recently started to play soccer as well.
@TechWithNikola
@TechWithNikola Месяц назад
Hey dude, nice to hear that. I’ve played SC2 a looot as well 😀 got to diamond 1 but never broke to masters…
@ShaunYCheng
@ShaunYCheng Месяц назад
@@TechWithNikola nice! I always start the game with a cannon rush. Currently stuck in M2 for two years because of my mediocre apm. Considering how much time I spend on the game, I probably need a real StarCraft coach to break my current bottleneck. My two most watched genre of videos on RU-vid are C++ stuff and StarCraft 2 games. Somehow they just feel comforting. I also feel that StarCraft 2 is like C++ and StarCraft 1 is like C programming. In SC 1 everything is so manual.
@TechWithNikola
@TechWithNikola Месяц назад
@@ShaunYChengvery cool. I got stuck with sc2 when I had to keep up with all the build changes between seasons. I haven’t player in 5-6 years. I watch Rust videos lately, but I’ve used C++ the most throughout mu career :-)
@TendresseExige
@TendresseExige 5 месяцев назад
This might be the best content I have found on RU-vid this year. You explained these concepts in ways my teachers couldn’t, and you did it for free too ! You have my respect , and subscription haha !
@TechWithNikola
@TechWithNikola 4 месяца назад
I’m so glad that you like my content. It means a lot to me when people leave comments and subscribe, so thank you.
@adnaneachahbar287
@adnaneachahbar287 4 месяца назад
I had a course back when i was in engineering school, the professor did a horrible job explaining memory and virtual memory, I ended up hating the class and i never really understood how it worked. until this day when I watched your video, you did an excellent job, I wish youtube had something like this before. Fast forward today, I work as a sysadmin/infra engineer and i really didn't have an idea how virtual memory works, again until I watched your video, thank you for the effort you put here, I am sure many will watch it and gain valuable informations.
@TechWithNikola
@TechWithNikola 4 месяца назад
Thank you for the comment. I’m glad you’ve found it useful!
@dusanstojancevic-creativel5309
@dusanstojancevic-creativel5309 11 месяцев назад
Amazing explanation, always wanted to know core knowledge. Thanks, keep up with these videos!
@TechWithNikola
@TechWithNikola 11 месяцев назад
Thank you Dusan. I'm glad you've enjoyed it :)
@marwanradwan7727
@marwanradwan7727 4 месяца назад
I wanna thank the youtube algorithm for recommending this video. This is absolute gem for explaining the Virtual Memory concept.
@TechWithNikola
@TechWithNikola 4 месяца назад
Thank you!
@antwanwimberly1729
@antwanwimberly1729 3 месяца назад
Ahh…the swap file in Linux!!! I used to allocate a portion of my hard drive for swapping!! Wow!!! Such a refresher !!
@HarshYadav-cy4it
@HarshYadav-cy4it 24 дня назад
I'm amazed at how someone can explain things with such clarity, just like you did. You just earned a subscriber. Thank you so much.
@availableusernamesha
@availableusernamesha 3 месяца назад
Good explanation and yes 4kb is the optimal size to move , its similar like why the size of a page node of a BTree in a database is of 1024 because its optimal for I/O. But I also would like to see the explanation of exactly what does MMU do here.
@kristabellesarcon4191
@kristabellesarcon4191 2 месяца назад
I need this resource for my OS assignment about virtual memory this week. So glad I find this video. This helps me understand the concept of virtual memory in 20 mins more than I have ever understand from the 20 chapters we have been task to read for 4 weeks now. LOL. Thank you for this.
@griesjm
@griesjm 22 дня назад
Brilliant videos with great explanations. You’re a natural when it comes to teaching
@OhNoooooooooo
@OhNoooooooooo 11 месяцев назад
Svaka cast burazeru. Ovo sam na faksu radio, ali si dosta bolje objasnio.
@TechWithNikola
@TechWithNikola 11 месяцев назад
Hvala :) Drago mi je sto cujem da je dobro objasnjeno.
@yash-xx2pu
@yash-xx2pu 6 месяцев назад
the graphics really helped me visualize how this works! youre a lifesaver ^^
@TechWithNikola
@TechWithNikola 5 месяцев назад
I'm glad! Graphics are a great tool for explain IMO :-)
@godnyx117
@godnyx117 4 месяца назад
​@@TechWithNikola It's not just your opinion. It's a FACT! Graphics for complicated ideas are a must! And thank you, your video was amazing!
@jamaluddin9158
@jamaluddin9158 11 месяцев назад
Wow! Clear, concise and very neat animations! Subscribing to a channel after a long time!
@TechWithNikola
@TechWithNikola 11 месяцев назад
Thank you for the sub!
@abraham4124
@abraham4124 2 дня назад
I don’t know to laugh, cry or to be mad. I had heard about the book What Makes it Page in this subject written by an unknown software engineer from Italy. Due to one of the cybersecurity researchers’ recommendation, I always wanted to learn this book. So, about more or less 3-4 days ago, I gave it a shot. After a couple of days into it, I can assert that the text could be written more cohesively and simply; however, the journey I started is kind of amazing. The harder it gets, the slower you get reading the text, the more enjoyable it becomes. I’m writing this not to say only that but about a dumb-looking guy who were reading with me. We spent HOURS to learn a chapter and now when I looked at him found out that he didn’t learn a piece of shirt!
@harshilldaggupati
@harshilldaggupati 6 месяцев назад
That's a very good, high quality production with a top notch explanation! Keep making more.
@TechWithNikola
@TechWithNikola 6 месяцев назад
Thanks :)
11 месяцев назад
An excellent, succint and illustrative explanation :)
@TechWithNikola
@TechWithNikola 11 месяцев назад
Thanks a lot Andrej!
@clodomirvianna6350
@clodomirvianna6350 4 месяца назад
Thank you for this amazing video! It's truly refreshing to encounter such well-scripted and nicely illustrated content. It makes really enjoyable trying to learn such complex concepts.
@ashutoshvaidya
@ashutoshvaidya Месяц назад
This is amazing. I am slowly realizing I am a visual learner. It was always hard to grasp content when it just a text. Worth a Sub... :)
@MissPiggyM976
@MissPiggyM976 Месяц назад
Very time I watch it, I learn something new, many thanks!
@bruceinraleigh9999
@bruceinraleigh9999 5 месяцев назад
Finally ... a proper explanation! I say this because countless self-made experts get it wrong. You see, Microsoft seems to have invented the misuse of the term "virtual memory" around the time of Windows 95. They used the term VM to describe what is really demand paging. Microsoft publications at the time did NOT make this mistake. (See Jeff Richter's excellent book describing the internals of Windows NT, published at the time.) But in the settings UI ... I guess "virtual memory" sounded more appealing to Microsoft than "demand paging". So they misused the term ... and misled generations of self-made CS people who subsequently grew up unaware of the misuse. They often claim that VM size can be adjusted. (It cannot be.) They believe that the disk swap/paging space is virtual memory. (It is not.) You see, virtual memory was created as a MAPPING PROCEDURE that solved the long-standing problem of mapping a program binary into the run-time address space of a computer. It was preceded by address space paging (remember the early 80x86 paging registers?). This was present in minicomputers as far back as the late 1960s. Paged memory was, in turn, preceded by run-time relocation ... a tedious run-time editing of a binary to "patch" all of the code addresses and data addresses within a program binary before execution could begin. VM is superior to both of those methods. Meanwhile some systems implemented something called swapping ... a predecessor of demand paging. When swapping, a program's ENTIRE memory consumption is swapped to disk to make way for another program. This mechanism allows the system to get around memory size limitations ... but it performs a lot of disk swapping! Demand paging goes one better by swapping only small blocks of memory. And even better, it loads only portions of a program when needed. No need to load an entire program when most of that program code won't be executed any time soon. It's all quite efficient. Virtual memory is not demand paging, and demand paging is not virtual memory. And you don't have to use VM with demand paging. And you don't have to use demand paging with VM. But the two appeared at a similar time in computing history ... and they work hand in hand to improve performance. So you always see both of them together. This video correctly presents a unified view of demand paged/virtual memory. Nice work!
@TechWithNikola
@TechWithNikola 4 месяца назад
Thanks a lot for taking to time to write such a good comment. I agree, and I’m also very happy to hear that this video met your expectations. Apologies for the late reply.
@lhard123l
@lhard123l 5 месяцев назад
Oh Juniors, 1GB is huuuuge for old-school guys
@godnyx117
@godnyx117 4 месяца назад
I still consider it a lot of memory and I think that modern software (especially closed source and web browsers) are unoptimized garbage!
@danielabildgaard6137
@danielabildgaard6137 4 месяца назад
Wow, I was really surprised! I was just relaxing on RU-vid to fall asleep and came across your video. I thought it might be trash, but it turned out to be very good with excellent detail and explanation. Great job! Best video on youtube so fare 🎉🎉🎉
@RazDorNV
@RazDorNV 3 месяца назад
the second part is a bit more complex but I love the visuals + explanation nonetheless. thanks for the effort put into making this one!
@boatengjeff
@boatengjeff 3 месяца назад
wow!! never felt like a computer science before. learned a lot on this clip. keep them coming
@tatigsarti
@tatigsarti 3 месяца назад
The variety of content provided is much appreciated.
@SahilGupta-qc4jx
@SahilGupta-qc4jx 2 месяца назад
you just earned a subscriber within a few minutes of this video!!
@jameslai322
@jameslai322 4 месяца назад
Excellent description on how cpu/memory/os are working together! Well done!
@RichardCorongiu
@RichardCorongiu 4 месяца назад
Im just sitting here fascinated...and it makes sense.. knowing just the basics... nice work...a dumb thing to say but this is relaxing...straight to the point ..ask a question ...then answer it... terrific
@TechWithNikola
@TechWithNikola 4 месяца назад
Thanks. I’m glad you like this style.
@avivb4598
@avivb4598 4 месяца назад
Thank god I found this gem before my exam!
@carloshenriquedesouzacoelho
@carloshenriquedesouzacoelho 4 месяца назад
From Aritmetic concepts , the virtual memóry obeys bijective function (injective and surjective ) about Domain and Image . It is unbelievable !
@shappp1
@shappp1 3 месяца назад
that music player & video game example is hilarious to think about
@tomhekker
@tomhekker 5 месяцев назад
Thanks! You explained this better than any professor did when I was still in university. Much appreciated, will be sending this video to people who ask me about this 😅
@TechWithNikola
@TechWithNikola 4 месяца назад
Glad to hear that you’ve found it useful, and thank you for sharing the video :-)
@nalanpandi5932
@nalanpandi5932 Месяц назад
Everything was nice thanks for your effort.But in multi paging,the first page table contains 1024 entries which maps to 1024 second page tables ,The address range for 1024 entries is 0x000 to 0x3FF
@amj864
@amj864 11 месяцев назад
This is awesome, made things so clear to me. Thank you.
@TechWithNikola
@TechWithNikola 10 месяцев назад
You're welcome. Glad it helped!
@threshhold8278
@threshhold8278 4 месяца назад
This video is really good, the way that you simplified Virtual Memory is amazing!
@TechWithNikola
@TechWithNikola 4 месяца назад
Glad it was helpful!
@user-yr1uq1qe6y
@user-yr1uq1qe6y 5 месяцев назад
Starting off with the “bad old days” only being 4GB definitely lets me know I’m old! Just like running out of 32bit address space “must” have been back in the 1950s or something 😂
@vishalkarna3763
@vishalkarna3763 4 месяца назад
Wonderful illustration of Virtual Memory. Good Job !
@TechWithNikola
@TechWithNikola 4 месяца назад
Thanks
@impaglg
@impaglg 2 месяца назад
Thank you very much for this video, it was very detailed and very well explained!
@duduwe8071
@duduwe8071 4 месяца назад
Great video ! I am preparing for my master degree and found this gold in RU-vid. I believe I can ace my upcoming OS class. I have liked your video and subscribed to your channel. Thanks a lot for the video. Greatly appreciate it.
@TechWithNikola
@TechWithNikola 4 месяца назад
Thanks a lot for taking the time to comment, as well as like and sub. It means a lot to me. I’m glad that the video was helpful. Good luck with acing your classes!
@Antagon666
@Antagon666 14 дней назад
What about the problems virtual memory creates ? 1) memory non locality (slower bandwidth and sequential reads) 2) higher power draw - used memory is scattered all over the physical space, thus chips cannot be properly turned off when not in use. 3) translation overhead - mainly when entries are not in local translation cache and have to be fetched from main memory
@chopper3lw
@chopper3lw 5 месяцев назад
What an excellent overview. Nice job. It clarified a few things i was unclear about.
@TechWithNikola
@TechWithNikola 5 месяцев назад
Thanks a lot. Glad it clarified things :-)
@krituos
@krituos 3 месяца назад
Amazing video, wish I saw it while still in college 😊
@XueYlva
@XueYlva 3 месяца назад
absolute banger of a tech channel thanks, will watch again -IGN
@godnyx117
@godnyx117 4 месяца назад
I have to words! That video is amazing! You won yourself a new subscriber, my friend! ❤
@TechWithNikola
@TechWithNikola 4 месяца назад
Welcome aboard! I’m glad you’ve liked it, and thank you for taking the time to comment.
@godnyx117
@godnyx117 4 месяца назад
@@TechWithNikola My pleasure! Have a lovely day!
@tahir95soyalcom
@tahir95soyalcom 8 месяцев назад
Thank you for providing such valuable content. The examples you shared have greatly enhanced my understanding of the working principles of virtual memory.
@TechWithNikola
@TechWithNikola 8 месяцев назад
I’m very happy to hear that. Thank you for taking the time to comment.
@obaydasarahneh236
@obaydasarahneh236 4 месяца назад
Can u make a video for registers, What are they used for… in a way that we can understand the assembly language
@tylercoombs1
@tylercoombs1 5 месяцев назад
Dude, you're videos are so helpful, thanks so much!!!
@TechWithNikola
@TechWithNikola 4 месяца назад
Glad you like them! Thanks for taking the time to comment.
@gappujimast
@gappujimast 7 месяцев назад
great video. i didnt get 2^32 adreess for each byte = 2 ^ 30 words
@TechWithNikola
@TechWithNikola 7 месяцев назад
Thanks. I’ll try to elaborate. There are 2^32 addresses. Each address references one byte of memory, which is 4GB in total. Now, a CPU works with so called words. 32-bit CPU works with 4-byte long words. How many 4-byte words are there in 4GB RAM? We can divide 2^32 bytes (4GB) by 4, which gives us 2^30 words. Hopefully this makes more sense. Let me know if it’s still unclear.
@gappujimast
@gappujimast 7 месяцев назад
@@TechWithNikola got it thanks 😊
@farid8902
@farid8902 Месяц назад
Thank you for this videos , it is reali amazing❤
@matepozzo
@matepozzo 8 месяцев назад
clear as water, thanks!
@TechWithNikola
@TechWithNikola 8 месяцев назад
Great to hear that :) Thank you!
@samson10077
@samson10077 4 месяца назад
Thank you for your high quality work. 👏👏👏
@ThePsychoMessiah
@ThePsychoMessiah 4 месяца назад
"Programs used to crash in the 1950s or so"? Calm down, it hasn't been that long since Windows XP would ask you to "send an error report".
@Usopper.D
@Usopper.D 9 месяцев назад
Wooow this video is awesome! Great work on the animations and examples 🤝😎
@TechWithNikola
@TechWithNikola 8 месяцев назад
Thank you so much! I'm glad to hear that you've liked it.
@ryanpatel2001
@ryanpatel2001 Месяц назад
Great video. But I would like an explanation regarding the mapping of the physical translated hex value into binary - the hex to binary conversion doesn’t seem correct, even assuming a left or right 0 padding to fill in the extra 17th and 18th bit. Could you explain this please, thanks
@kamism770
@kamism770 5 месяцев назад
This is a very good, concise and clear explanation, please keep the work's up, I really enjoyed it : ) PS: can you make a video about how compression algorithms work?
@TechWithNikola
@TechWithNikola 5 месяцев назад
Glad to hear that, and you thank you for taking the time to comment. :-) Yeah, some compression algorithms are in my queue, but it will take a while before I get some free time to make them. Stay tuned!
@kamism770
@kamism770 5 месяцев назад
@@TechWithNikola I'll be waiting 4 sure :3
@jamespilcher5287
@jamespilcher5287 4 месяца назад
I've written some 6502 assembler for the BBC Master, where the most complicated it got was having to write to a memory-mapped hardware register to switch banks of RAM so that you can access 128Kb with a 16bit address bus. It's a bit mind-boggling to think about all this indirection that goes on in modern memory systems. All this back and forth would bring 8bit systems to their knees!
@bingtingwu8620
@bingtingwu8620 6 месяцев назад
Very clear! It helps a lot, thank you very much!😀
@TechWithNikola
@TechWithNikola 5 месяцев назад
You’re welcome! :-)
@whtiequillBj
@whtiequillBj 4 месяца назад
@0:54 and before that there were 16 bit CPUs that could only address which was only 64 Kilobytes. In the early days it was more around the problem with memory collisions rather then accessing something that is out of range. In the 1960s you wouldn't find the kind of problem you're talking about because the processing power was too expensive to have that kind of problem. Paper Tape and Punch Cards don't have the same problems with accessing memory out of range.
@ilushamain4740
@ilushamain4740 5 месяцев назад
Your explanations are amazing Thank you, I hope to see more
@TechWithNikola
@TechWithNikola 4 месяца назад
Thank you. Yeah, definitely, I’ll try to find some time to make more videos soon
@huxinzhao3689
@huxinzhao3689 9 месяцев назад
11:38 I’m wondering when you copy the last 12bits to the physical memory, why the number changes from 0110 0111 1000 to 010110011110
@TechWithNikola
@TechWithNikola 9 месяцев назад
Oh that’s a good catch! It’s a bug in the animation. Sorry about that. It should remain unchanged.
@huxinzhao3689
@huxinzhao3689 9 месяцев назад
@@TechWithNikola Thank you very much! Your videos are really helpful!!!
@themodernshoe2466
@themodernshoe2466 3 месяца назад
Thanks, crazy good vid 👏
@iPhoneCyric
@iPhoneCyric 11 месяцев назад
watched the first video in this channel, subbed!
@TechWithNikola
@TechWithNikola 11 месяцев назад
Thank you for the sub. I'm so glad to hear that you've liked it!
@art4eigen93
@art4eigen93 5 месяцев назад
RU-vid suggesting me at 2 am here. thank god it did. I can sleep well now.
@TechWithNikola
@TechWithNikola 4 месяца назад
Glad I could help :-)
@agustin2881
@agustin2881 Месяц назад
great video. is it posible that there is a mistake in 11:39 when the animation copies the offset bits from the virtual adress to the physical adress? they arent the same first 12 bits
@TechWithNikola
@TechWithNikola Месяц назад
Thanks :) Yeah, there is a mistake in the animation. Sorry about that.
@avinashkv2943
@avinashkv2943 29 дней назад
Fantastic content
@ssahillppatell
@ssahillppatell 3 месяца назад
Can't thank enough for this
@RamsesAldama
@RamsesAldama 6 месяцев назад
Great video. So you mention that physical address is the "memory RAM". You also mention the "page tables" are store in the "memory RAM" and how there are difference level of page tables and some can be store in disk. Is virtual memory also store in the "memory RAM"?. I know I have to rewatch this video and keep studying to fully understand and that I have gaps in my knowledge. So in a high level the OS has to do a mapping between virtual memory and page tables. And then between page tables and physical address? Thanks.
@TechWithNikola
@TechWithNikola 5 месяцев назад
Hi, apologies for the late response. So virtual memory on its own doesn’t exist really. It’s just a number, for example from 0 to 2^32-1. As such, it is not stored anywhere. It only becomes interesting when we talk about translating that number to its physical counterpart. This translation is stored in page tables, and page tables are stored in RAM. It you rewatch the video you will see the exact details on how the translation works, but in a nutshell the first part of the address is remapped via page tables, and the last 10 bits are copied (called an offset). The mapping is actually happening in the MMU (memory management unit) which you can think of as a small chip on the CPU. You are right that OS plays an important role, and specifically, OS programs the memory management unit and specifies how to do the mapping. Does that make sense?
@RamsesAldama
@RamsesAldama 5 месяцев назад
Yes, thanks for the reply
@samirneupane7563
@samirneupane7563 7 месяцев назад
Thank a lot.
@TechWithNikola
@TechWithNikola 7 месяцев назад
You’re welcome!
@kanario99
@kanario99 9 месяцев назад
thank you, this video was very clarifying.
@TechWithNikola
@TechWithNikola 9 месяцев назад
You’re welcome. I’m glad to hear that.
@jimmy1681000
@jimmy1681000 4 месяца назад
Wow, good video. Good job and thanks for sharing.
@TechWithNikola
@TechWithNikola 4 месяца назад
Thank you! You’re welcome.
@ahmedghallab5342
@ahmedghallab5342 4 месяца назад
شكرا thanks 👍 it was helpful
@TechWithNikola
@TechWithNikola 4 месяца назад
Glad to hear that!
@Mike-kq5yc
@Mike-kq5yc 3 месяца назад
Actually GiB refers to Gibibyte which is a power of 2. And Gigabyte is a power of 10 :)
@user-mr3mf8lo7y
@user-mr3mf8lo7y 4 месяца назад
Quite good video. Just a minor comment. You use the word 'Security' in sections but I would call it 'Liability'. Thanks,.
@haowang-i2y
@haowang-i2y 8 месяцев назад
how to make this animation?
@TechWithNikola
@TechWithNikola 8 месяцев назад
Hi, which one are you referring to exactly? I have used a combination of powerpoint, keynote, Manim (python library) to make all these animations. Hope that helps!
@naruhitoabiku9451
@naruhitoabiku9451 7 месяцев назад
you are a legend
@TechWithNikola
@TechWithNikola 7 месяцев назад
Thanks :-)
@poiofrito4722
@poiofrito4722 8 месяцев назад
thank you man
@TechWithNikola
@TechWithNikola 8 месяцев назад
You're welcome!
@I2ealTuber
@I2ealTuber 4 месяца назад
Can you next teach us about deditated WAM?
@omegahaxors9-11
@omegahaxors9-11 3 месяца назад
I guess this is the system that downloading ram uses, bc I always wondered how you could get more ram from a website.
@vladimirkuharik34
@vladimirkuharik34 Месяц назад
svaka cast covece zasluzio si SUB :)
@TechWithNikola
@TechWithNikola Месяц назад
Hvala! 😀
@RafaelRodrigues-ug1lt
@RafaelRodrigues-ug1lt 4 месяца назад
Me traga mais sugestões assim de canal algoritmo do RU-vid, very good
@badnaf207
@badnaf207 7 месяцев назад
bro you are amazing, love your energy
@TechWithNikola
@TechWithNikola 7 месяцев назад
Thanks. I appreciate that!
@Yazan_Majdalawi
@Yazan_Majdalawi 8 месяцев назад
Liked, subbed, turned on all notifications.
@TechWithNikola
@TechWithNikola 8 месяцев назад
Thank you! :)
@Serhii_Volchetskyi
@Serhii_Volchetskyi 5 месяцев назад
0:35 As far as I understand, 4Gb of memory means less than 4Gb of RAM. CPU thinks that ROM and south bridge devices are memory as well.
@oglothenerd
@oglothenerd Месяц назад
Isn't a KiB a kibibyte? Not a kilobyte?
@bluebabboon
@bluebabboon 4 месяца назад
Hey man, can you make same video with gpu and cpu? Your explanation is so good
@TechWithNikola
@TechWithNikola 4 месяца назад
Hey, thanks for the suggestion. This is one of the topics in my queue, but since I do this as a hobby I don’t get much free time to work on videos. I will be working on this but cannot promise that it will be soon
@bluebabboon
@bluebabboon 4 месяца назад
@@TechWithNikola Thanks man, you are doing god’s work
@TheAluminus
@TheAluminus 4 месяца назад
10:39 All pages are 4096 long except Pages 2, is that a correct?
@WijthaGayan
@WijthaGayan 2 месяца назад
Thank you
@ismaelgrahms
@ismaelgrahms 5 месяцев назад
Very well explained
@TechWithNikola
@TechWithNikola 5 месяцев назад
Thank you :-)
@vinayak6564
@vinayak6564 Месяц назад
excellent explanation!! one doubt isn't the page table size 16MB as there 2^22 pages and we uses word size for each page. so 4*2^22 16MB?
@vinayak6564
@vinayak6564 Месяц назад
32MB considering map between virtual address and physical address
@prasenjit134
@prasenjit134 2 месяца назад
When you are taking the 12 LSBs ( 0x678), and putting those 12 bits of offset, why are you removing bit 0 and 1?
@WhitEagle7
@WhitEagle7 2 месяца назад
1:15 programs used to crash in 1950s? What programs?
@waynehawkins654
@waynehawkins654 4 месяца назад
This was great. I'm a bit lost (11:09 in) how virtual has 12 to 31 bits left and we somehow fit this in physical address that is 12 to 29. So we are missing 2 bits. What is happening with the last two bits. What did we do with it or are they ignored and we hit a limit of virtual because the size of the physical
@niter43
@niter43 Месяц назад
CPU/MMU doesn't do any kind of math to figure out physical address (so we're not cramming 20 bits in 18 somehow), it just does a look up in /page mapping table/ and gets one of: 1) **completely arbitrary** physical address that's points to start of that page 2) some special result to indicate "sorry, it was swapped to the disk", explained right after at 11:54 3) (?) some special result to indicate that page was never allocated by the program in the first place So there's no reason why physical address couldn't be shorter than virtual. If program uses all addressable virtual memory, then most pages in mapping table would contain 2nd case of "it's on disk" and OS would juggle them around as needed transparently to the program.
@_VishalPrajapati
@_VishalPrajapati 5 месяцев назад
Superb...! Love it..❤
@TechWithNikola
@TechWithNikola 4 месяца назад
Thanks a lot 😊