1 Gb RAM vs 10Gb application

hey!
RAM as a active memory that store the data temporary before it's putted in permanent memory like HDD,FDD etc. how comes 1GB RAM store the file(folder) with 10GB? Example I can play 10GB video file with my pc,??

Replies

  • Anoop Kumar
    Anoop Kumar
    RAM only load data which is operational (Being processed) at that time including buffer of some future data and old data if space available.
    Like you are playing a video of 10GB with bit rate say 15Mbps. so idealy RAM should store only 15MB to which is being shown at monitor while fetching, but if space is there then it just buffer future data also.
  • Abhishek Rawal
    Abhishek Rawal
    Memory is sub-divided in two parts : 1) RAM 2) Virtual Memory.
    RAM is the IC module, every motherboard has it's limit of RAM memory that can be extended.
    Virtual memory, can be extended by using storage devices like HDD, SSD,etc.

    Now, when any program is initiated, the required data is transferred to RAM from Virtual memory & when it is no longer needed then data is sent back to Virtual memory from RAM. This is called "Swapping"

    Now consider your example, You have 1 GB RAM & the data you're accessing from HDD,SSD (virtual memory) is of 10 GB video file. Assume that video is full HD with 29.97 fps & consider that one frame is of 100 kb. Therefore, every second 29.97 x 100 kb = 2997 kb of data is consumed.

    So, every second using swapping technology, 2997 kb of data is fetched from Virtual memory to RAM, & next second other 2997 kb is fetched & at the same time 2997 kb data which was fetched in first second is sent back to Virtual memory.
    This process continues until entire video file is viewed.

    Note that : When you access a file, not entire file is fetched by the RAM. Only necessary file is fetched & when it is no longer in use, it is sent back to Virtual memory.

    Another small example, I have 512 MB RAM & I am accessing a game of size 700 MB. When I am playing game in a certain mission, only small part of game files is in use & not all. While I am moving on to other mission, other part of game file is used & not all. So, if game size is 700 MB, then also my PC with 512 MB RAM can run it.

    This is only & only due to feature called "Swapping".

You are reading an archived discussion.

Related Posts

Not all of us have iPhones, but that does not seem to deter iPhone users to insert their favorite emojis in the texts they post on the internet. So times...
You may be Google fan, but this round of 'speed' definitely goes to Microsoft's Bing. Bing's engineering team has rolled out a new feature - called 'Bing Page Zero' that...
Flipkart's fans note - you no longer have to use the crappy mobile website presented as an app. The much awaited native Flipkart Android app comes after 1.5 years of...
HTC One Mini, the Taiwanese smartphone manufacturer's flagship phone, is going in to follow the trend of the recently launched the 24-carat gold version of the HTC One. Yep, the...
In the times, where the wearable computing gadgets are being discussed and debated all over the tech town, a surgeon from Chennai, India has become the first person in the...