What is virtual memory? - Gary explains

Ғылым және технология

Before virtual reality and virtual currency there was virtual memory. Windows has it, iOS has it and so does Android. What is it and how does it work? Read the post: goo.gl/NyzJms
There is a thread over at the Android Authority forums if you want to connect with Gary and chat some more about Virtual Memory: www.androidauthority.com/commu...
Download the AndroidAuthority App: play.google.com/store/apps/de...
Subscribe to our KZread channel: kzread.info_c...
----------------------------------------------------
Stay connected to Android Authority:
- www.androidauthority.com
- google.com/+androidauthority
- / androidauthority
- / androidauth
- / androidauthority
Follow the Team:
Josh Vergara: / jvtechtea
Joe Hindy: / thatjoehindy
Lanh Nguyen: / lanhnguyenfilms
Jayce Broda: / jaycebroda
Gary Sims: / garysims
Kris Carlon: / kriscarlon
Nirave Gondhia: / nirave
John Velasco: / john_c_velasco
Bailey Stein: / baileystein1

Пікірлер: 313

  • @tanishbansal1058
    @tanishbansal10587 жыл бұрын

    when you are taught the same in class but Gary explains better 😀

  • @technobrend0

    @technobrend0

    7 жыл бұрын

    If Gary was my teacher I would have passed a few more classes :/

  • @paulwanjohi1738

    @paulwanjohi1738

    7 жыл бұрын

    tanish bansal true

  • @PaladioBlaze

    @PaladioBlaze

    7 жыл бұрын

    tanish bansal even I understand this and I know nothing about programming and what not.

  • @CarlitoProductions

    @CarlitoProductions

    6 жыл бұрын

    that's why i'm here too lol

  • @dben9986

    @dben9986

    2 жыл бұрын

    I ask B, my lecturer interpret it as A and answers C. In this case, the Internet becomes my friend 😂

  • @trueblue9091
    @trueblue90917 жыл бұрын

    Don't know how much AA pay you, Gary, but you should get a pay rise

  • @pratikrai6407

    @pratikrai6407

    7 жыл бұрын

    Tim Derek Scott and Darcy lacouvee are the owners and co founders of AA

  • @morganmatthias5684

    @morganmatthias5684

    2 жыл бұрын

    You all prolly dont give a damn but does anyone know a trick to get back into an Instagram account? I somehow lost my login password. I love any tips you can offer me

  • @kristophergunnar9551

    @kristophergunnar9551

    2 жыл бұрын

    @Morgan Matthias instablaster :)

  • @morganmatthias5684

    @morganmatthias5684

    2 жыл бұрын

    @Kristopher Gunnar thanks for your reply. I got to the site through google and I'm in the hacking process atm. Looks like it's gonna take quite some time so I will get back to you later with my results.

  • @morganmatthias5684

    @morganmatthias5684

    2 жыл бұрын

    @Kristopher Gunnar It worked and I now got access to my account again. I'm so happy:D Thank you so much, you really help me out :D

  • @unlokia
    @unlokia6 жыл бұрын

    Gary, you are a marvelous teacher. Clear, concise, precise, relaxed, happy... and no irritating "KZread persona". From an engineer, let me tell you this - you *really do* sound like you know your subjects well, so thank you for being you and for articulating so effectively and clearly. You are an asset to the engineering world. God bless you! 😀 Matthew, England.

  • @srakhtar

    @srakhtar

    3 жыл бұрын

    your welcome my man. cheers.

  • @alienwarex51i3

    @alienwarex51i3

    2 жыл бұрын

    @@srakhtar not OP but ok

  • @ajhalomaster

    @ajhalomaster

    11 ай бұрын

    😂😂😂

  • @thomyhr
    @thomyhr7 жыл бұрын

    Knew most of this from the course in Operating Systems in the University, but it is always nice to hear Gary explain stuff. And I got to repeat the things I knew too. Please never stop making these videos, Gary! :D

  • @aRoamingDuck
    @aRoamingDuck7 жыл бұрын

    I never would have thought I would end up going to Android Authority to help study for my OS' exam... As always Gary your videos are probably the best on AA. Keep it up!

  • @AElShahawy
    @AElShahawy7 жыл бұрын

    Playlist of Gary explains, the best ever !

  • @noobaeon
    @noobaeon6 жыл бұрын

    It's always a pleasure listening to your explanations Gary. Keep up the good work :D

  • @RockstarBruski
    @RockstarBruski7 жыл бұрын

    excellent tutorial. I've been working on computers since 1980 and never have heard this explained so clearly as you did in this video. love the charts and diagrams as well as those really help! and the funny kids pics made me laugh. cheers! 😎

  • @plumSlayer

    @plumSlayer

    Жыл бұрын

    wow you actually have seen the evolution of basic computer and microprocessors... wow

  • @rummy692
    @rummy6924 жыл бұрын

    Thanks Gary! This was clear and complete and much more interesting than the same topic coverage in class.

  • @optimisms
    @optimisms2 жыл бұрын

    Thank you so much! I've read this section in my textbook four times now and just couldn't understand it, but this clears things up so well!

  • @jerrymachado1943
    @jerrymachado19434 жыл бұрын

    Hi Gary. I was trained as an EE, but went to the dark side of sales, so I am only dimly aware of all the subjects you discuss. Thanks for the context and thanks for putting the puzzle together for me.

  • @MrMysticphantom
    @MrMysticphantom7 жыл бұрын

    This has been the best of Gary Explains vids Nice job sir .....

  • @--Paws--
    @--Paws--7 жыл бұрын

    In other words the physical representation of memory and virtual memory is equivalent to how inventory is shipped to a warehouse and memory is the amount of space the warehouse can store of that shipment. Virtual memory is a shipment being processed to go either in its storage location or to be used in either to be once again shipped out or for some function in the warehouse/facility.

  • @sshknt5
    @sshknt57 жыл бұрын

    I'm stupid but Gary makes me smart.

  • @Trident_Euclid

    @Trident_Euclid

    7 жыл бұрын

    Suyash Kant You are not stupid if you want to learn.

  • @1MarkKeller

    @1MarkKeller

    7 жыл бұрын

    Say it again Ibraheem!

  • @Cygnus0lor

    @Cygnus0lor

    5 жыл бұрын

    @@Trident_Euclid that's not true

  • @qwedschy8285

    @qwedschy8285

    4 жыл бұрын

    I'm stupid and Gary can't save me

  • @DJKITES007
    @DJKITES0077 жыл бұрын

    Gary, thanks for making a video on this topic. Great Job.

  • @Shivamrouniyaar
    @Shivamrouniyaar2 жыл бұрын

    I got a smile after learning from you in much clear details

  • @LeBeautiful
    @LeBeautiful7 жыл бұрын

    such a good teacher. Thanks Gary!

  • @GeorgeKarayannis
    @GeorgeKarayannis7 жыл бұрын

    Thanks again Gary, for a great video. may the L2 TLB be always in your favour!

  • @saikirankummari631
    @saikirankummari6316 жыл бұрын

    actually searched many vedios for this detailed explanation..thanks gary

  • @NKernytskyy
    @NKernytskyy2 жыл бұрын

    Finally understood what TLB is. Great video! Keep making quality content!

  • @ahmetbozkurt9830
    @ahmetbozkurt98307 жыл бұрын

    After a Gary video, i feel smarter.

  • @clairebear8182
    @clairebear81827 жыл бұрын

    When ever Gary explains, I understand. He is the only way I am going to get through my systems architecture exam, so thanks!!!

  • @saulgoodman9368

    @saulgoodman9368

    7 ай бұрын

    Glazing

  • @andrewrichardson9486
    @andrewrichardson94864 жыл бұрын

    Great. Thank you very much for that. I have found all your Gary Explains videos really good. 👍

  • @rsdwall466
    @rsdwall4662 жыл бұрын

    Oh my god . Mr. Simps thanks a lot for explains this. When you explained this , it seems so simple. Other people make it sound so tough. I wish I had listen to your lectures earlier. So so good. Thanks you very much from a student trying to explore world of computers.

  • @bodeghost
    @bodeghost2 жыл бұрын

    Greetings world! I'm very new to, Gary's channel & all I can say is, I've been asleep at the wheel for far too long. Sir, this channel is marvelous! From the quality video/audio & editing, to your ability to explain things in a manner with which most anyone can comprehend /completely understand the inner-workings of all this technology that changes every 27 seconds, if you will...😉 I love reading this communities feedback & shared knowledge! Love & Light To You All out there in KZread Land and Beyond the world over. Many thanks, Gary for taking what has to be a great amount of time you invest so that, we the viewers, can be educated correctly, efficiently & with absolute ease! 🍀 💜 🎶 👻

  • @topherno
    @topherno4 жыл бұрын

    Concise, clear, informative, and entertaining. Well done!

  • @fezspencer
    @fezspencer7 жыл бұрын

    Who are the butttrolls who dislike excellent productions such as this. Wow.

  • @kun_fu_taco4775

    @kun_fu_taco4775

    3 жыл бұрын

    Virtual A Holes

  • @sivlyte2892

    @sivlyte2892

    3 жыл бұрын

    😂

  • @Mrtechguy
    @Mrtechguy7 жыл бұрын

    Garry sir you are really great. I always sleep in my computer class but i like your realxing voice and amazing explaination video.

  • @axelfzurital
    @axelfzurital7 жыл бұрын

    It wast just the topic for today in OS class, what a coincidence! But, Gary, your explanation was very good, thank you for all this Explaining videos.

  • @SteveTheTechy
    @SteveTheTechy7 жыл бұрын

    Machines have been using virtual memory since the 70's. Gary in his run down of computers did not mention the IBM Mainframes where we had the MVS and VM operating systems which ran very much as Gary explained. There was the additions of the Link Pack Area (or on DOS/VS) machines the SVA (shared Virtual Area) where common routines used by multiple programs would be loaded into memory and shared between all the address spaces, saving real memory. The small operating systems like DOS/VS though only had one address space, so multiple processes would be loaded in to memory in several contiguous regions called partitions. So partition 1 had memory say from 100K to 200K, partition 2 from 200K to 500K, partition 3 500K to600K etc. It was still virtual because address translation between a virtual address and a real address still had to happen. There was not enough memory, so memory was swapped out to disk when it was not required. Often then machines ran with 200K of memory, and ran order processing, payroles, stock processing and even some development all at the same time. This contiguous space for multiple partitions could lead to the two problems which Gary mentioned early on. One program accessing the memory of another, and relative addressing. Each partition was protected from access from another by a protection key. each partition having a different key. A partition when scheduled was allocated the key for its memory. Should it try and access the memory of another partition, then it would fail. The relative addressing was addressed by the loader program .Often a branch address would be loaded form a table to access a routine. If the program was loaded in the partition starting at 200K, or it was loaded in the partition starting at 500K, then this address had to change. That was the job of the loader program, it would correct these addresses as the program was loaded into memory. Yes address spaces as used by MVS and VM were much easier, but they also still had loader programs as you can't predict where routines are loaded into memory in the address space.

  • @lookforaniket
    @lookforaniket7 жыл бұрын

    A gr8 video by Master Gary ! keep em comin 👌

  • @kevinbenavides92
    @kevinbenavides923 жыл бұрын

    Great explanation and visuals. Thank you!

  • @aranzaf.3970
    @aranzaf.39704 жыл бұрын

    This was an amazing explanation, thank you!

  • @rowanmakesfilms
    @rowanmakesfilms7 жыл бұрын

    i LOVE this series, it brings out my inner nerd.

  • @ravivashatkar5585
    @ravivashatkar55854 жыл бұрын

    Great video that brushes all the fundamentals.

  • @venkataravieluri9625
    @venkataravieluri96255 жыл бұрын

    Thanks Gary for such a nice explanation.

  • @ArdaX95
    @ArdaX954 жыл бұрын

    What happens when some programs are using dynamic memory allocation? How does the MMU can determine how much space does a program need in run time to avioid overwriting? Appreciate any help 😀

  • @theodore1801
    @theodore18017 жыл бұрын

    Wow very good explanation, Gary is a veryvery good teacher

  • @fuzz33594
    @fuzz335947 жыл бұрын

    Gary - your ability to explain the complex is unsurpassed.

  • @riteshpatel2999
    @riteshpatel2999 Жыл бұрын

    Excellent explanation and great teacher

  • @thelebbies
    @thelebbies4 жыл бұрын

    Best explanation i have heard on virtual memory

  • @petermainwaringsx
    @petermainwaringsx Жыл бұрын

    I'm six years late to the party, but as always there is still so much to learn. Thank you Gary for sending me back from the future, in your video on the demise of 32 bit mode in June 2023. I'm going to look at the one from 2022 now 🙂

  • @_Agosto_
    @_Agosto_7 жыл бұрын

    Best format of this channel

  • @dsal3389
    @dsal33892 жыл бұрын

    hands down the best tutorial on this topic

  • @mallew32
    @mallew326 жыл бұрын

    OMG THIS WAS FANTASTIC!!! Like I understand, and that's amazing!

  • @jimbononeya8376
    @jimbononeya83767 жыл бұрын

    awesome content Gary!

  • @isilcagirici5969
    @isilcagirici59695 жыл бұрын

    Thank you Gary. It was a great help.

  • @haraldlons
    @haraldlons6 жыл бұрын

    This was so easy to understand. Thanks!

  • @SekharPariga
    @SekharPariga5 жыл бұрын

    Dear Gary, when we have lookup table entities to look into particular Vaddress , why wee need extra MMU translation ? 🤔

  • @compsci91
    @compsci916 жыл бұрын

    Thanks, Gary! Great explanation!

  • @djknight00
    @djknight007 жыл бұрын

    I'm a computer science student and Gary has helped me pass in atleast a couple of subjects.

  • @deepkumar-hk6wl
    @deepkumar-hk6wl5 жыл бұрын

    excellent discription about virtual and phycial memory..........

  • @MrGyges
    @MrGyges7 жыл бұрын

    Thank you, Gary

  • @Jakupdam
    @Jakupdam2 жыл бұрын

    That was a very good overview, thanks! :)

  • @PaladioBlaze
    @PaladioBlaze7 жыл бұрын

    Very interesting and great explanation.

  • @adithyabhat4770
    @adithyabhat47706 жыл бұрын

    He teaches so nice , better than my teachers

  • @VincentUghachukwuV
    @VincentUghachukwuV7 жыл бұрын

    Thank you very much for the video

  • @sahilmalik6245
    @sahilmalik62453 жыл бұрын

    Seriously this cleared all the doubts

  • @EnriqueCondoFolgado
    @EnriqueCondoFolgado7 жыл бұрын

    thanks! professor Gary! nice job!!

  • @AnesuC
    @AnesuC7 жыл бұрын

    Did this at Uni last year, It's a good feeling actually understanding what is going on LOL

  • @abs8090
    @abs80907 жыл бұрын

    GREAT EXPLANATION!!! Thanks a lot

  • @gauravgulati3693
    @gauravgulati36932 жыл бұрын

    Awesome explanation!

  • @HShango
    @HShango7 жыл бұрын

    I've always wondered how my computers handles this on a constant basis

  • @arielfuxman8868
    @arielfuxman88682 жыл бұрын

    Brilliantly explained

  • @giovannidonato-iz8xr
    @giovannidonato-iz8xr13 күн бұрын

    Good morning and congratulations for your precision, unfortunately I didn't understand one thing, but what does offset contain (where on the page we are) can you explain it to me with a more detailed example, thanks in advance

  • @junioli6862
    @junioli68622 жыл бұрын

    You're the man, Gary.

  • @benjmiester
    @benjmiester7 жыл бұрын

    Cool. I remember when some dumb ass was trying to argue with me, saying android didn't have VM. At first he tried to claim he thought I meant VM was video memory, then tried to say it doesn't have virtual memory either when I explained that was what VM meant. Now I have something to link to explain it to them, if it happens again.

  • @udit7057
    @udit70577 жыл бұрын

    Gary I have questions regarding androids battery saving function Well I have noticed that during battery saver is on battery save more than normal , what does the software actually does which it doesn't do in normal mode. As I don't any differents (I get notification, data is on) everything is same {as I heard that it reduces cpu performance, but using my Rn3 I don't feel like the performance is reduced. So what exactly it is?

  • @parthasarathighosh1614
    @parthasarathighosh16147 жыл бұрын

    Awesome job Gary 👍

  • @XxepIcsnIpexX1
    @XxepIcsnIpexX15 жыл бұрын

    Really informative video, thanks a lot! :)

  • @naveenfrancis444
    @naveenfrancis4443 жыл бұрын

    Thanks a lot Gary!

  • @hahavv7058
    @hahavv70583 жыл бұрын

    This is really a great viedo taht answers my doubts!thanks sir~

  • @vasireddyganesh
    @vasireddyganesh2 жыл бұрын

    I think the main use of virtual memory is when there is a need of loading an app that is larger than ur ram then the Virtual Memory concept will be used to load that app by dividing it into some Modules and Only some of the modules of that app will only be loaded into ram.

  • @abdulazeez.98
    @abdulazeez.987 жыл бұрын

    Great video as always ! Please can you explain the effect of screen resolution on performance ? how much does a higher screen resolution effect performance?

  • @yonatannisenboym2548
    @yonatannisenboym25487 ай бұрын

    you're the man! thank you for a great video

  • @suryasikharej5511
    @suryasikharej55112 жыл бұрын

    Can anyone explain me when a process is created the virtual memory of the process is created in the secondary storage or in the ram?

  • @jean-jayvester1358
    @jean-jayvester13582 жыл бұрын

    Excellent explanation!

  • @julianeccleshall8397
    @julianeccleshall83977 жыл бұрын

    under 200 wiew! this is something i know and i work on it everyday, but you still make me learned something new!

  • @z3jlewhhda376
    @z3jlewhhda3762 жыл бұрын

    Is paging necessary for virtual memory OR we can use segmentation for virtual memory?

  • @kkirubanantham
    @kkirubanantham3 жыл бұрын

    Explained beautifully.

  • @andrewryabchenko2407
    @andrewryabchenko24072 жыл бұрын

    Thank you! It is great explanation!

  • @paulozhang1340
    @paulozhang13408 ай бұрын

    When a page is swapped and allocated to another process, how does the MMU know it’s now belongs to process 2 when process 1 tries to access it?

  • @CassioBocchese
    @CassioBocchese2 жыл бұрын

    Thank you Gary!

  • @thejas_uk
    @thejas_uk6 жыл бұрын

    please suggest book to read above stuffs

  • @DinaAshraf143
    @DinaAshraf1433 жыл бұрын

    Great explanation!

  • @prabugirish50
    @prabugirish507 жыл бұрын

    Gary the man !! cheers :)

  • @pseudonym9215
    @pseudonym92155 жыл бұрын

    Are all the addresses for different VM of processes the same( as in pro1 has VM address form 0x0000 to0x FFFF and pro2 has VM address from 0x0000 to 0xFFFF). If they are the same, then how does the OS distinguish between memory access for VM 0xFFEE by pro1 and pro2, and redirect the request to corresponding Phy memory? Hmm ..... this sounds like a question for StackExchange.

  • @abdullahfaizurrahman6486
    @abdullahfaizurrahman64862 жыл бұрын

    Great video. Im confused about one thing, if the lookup table is stored in RAM, then it would take two RAM accesses for a single look up, for a program. However, you said it could be 3. How is this possible.

  • @williamjones6159
    @williamjones61597 жыл бұрын

    man Gary is on a roll to educate the masses lol

  • @gokulnath9473
    @gokulnath94736 жыл бұрын

    awesome video.Thank you very much

  • @lovely31bluprint
    @lovely31bluprint5 жыл бұрын

    How does virtual memory extend the memory available to applications?

  • @groveroq
    @groveroq7 жыл бұрын

    That is awesome Gary :)

  • @chologonzalo999
    @chologonzalo9996 жыл бұрын

    Could someone explain me what is standby memory when I look at the Resource Monitor? It says it's cache memory but I don't get it since in my case it's showing I have 11 GB of cache memory and my processor only has 6 MB of memory.

  • @aliakv1364
    @aliakv13646 жыл бұрын

    Can I know how different processes will be able to share single TLB?

  • @amiga1509
    @amiga15094 жыл бұрын

    Tbh it's much harder than I thought it to be!! And I didn't get a single word 😭

  • @YounesLayachi
    @YounesLayachi7 жыл бұрын

    digging these videos

  • @rohitkijbile
    @rohitkijbile7 жыл бұрын

    sweet .. very useful thanks Garu

  • @gabriel-bl4ckh4wk-6
    @gabriel-bl4ckh4wk-62 жыл бұрын

    I've 16gb ram, i just want to know much virtual ram i should set to have maximum performance. If i turn it off some games crashes, even with a lot of RAM not used.

  • @pomegranate8593
    @pomegranate85933 жыл бұрын

    excellent video!

  • @tmthylthm
    @tmthylthm7 жыл бұрын

    Is that background music from Acoustica Mixcraft? I made a song about 10 years ago with that same background track!

Келесі