Printed from http://www.electronista.com

New MS paper explains Windows 8 memory management

updated 05:00 am EDT, Wed April 18, 2012

Metro app 'suspension' allows RAM to be reclaimed

A new paper and accompanying video on Microsoft's developer network has laid out the new system of memory management for Metro-style apps on Windows 8 which closely mimics Apple's iOS "app suspension" model, allowing inactive apps to surrender most of their RAM in favor of running apps to avoid "memory pressure." While Windows 8 will attempt to regulate physical memory allocation for all apps, Metro-style apps will use the iOS-like suspension technique to free up RAM.

Once in the suspended state, Metro apps hold on to very little physical RAM -- but can quickly reclaim its working memory once it is reactivated. The Metro-style apps can have their working state written to disk when needed (similar to OS X's writing of RAM states when going to sleep) and use that information to quickly reclaim sufficient RAM when re-activated, meaning the app can return to nearly full speed in just moments.

As explained by Microsoft's Bill Kargounis in a companion video (seen below), the suspension is done automatically when Metro apps are not in the foreground. Only when the system detects "memory pressure" does Windows check Metro apps and write their working state to disk, allowing even that bit of RAM that was being used to preserve the working state to be released. Due to fast I/O in hard drives and SSDs, the delay before a suspended app has reclaimed its working RAM is expected to be about a second.

Not explained is how the system would react to users re-opening Metro apps (which will need their working RAM back) while the system is still experiencing "memory pressure" (insufficient RAM to handle the number of programs opened, or a non-Metro app that is using up most RAM resources). Microsoft is continuing to refine the technique, and Windows 8 is not expected until the fall at the earliest.

Users can test the Metro-style app RAM allocation process for themselves in the latest Windows 8 Consumer Preview.


Metro-style apps with their working RAM use preserved








Metro-style app with working RAM suspended








Metro-style app reclaiming working RAM









By Electronista Staff
Post tools:

TAGS :

toggle

Comments

Login Here

Not a member of the MacNN forums? Register now for free.

toggle

Network Headlines

toggle

Most Popular

Sponsor

Recent Reviews

Kenu Airframe Plus

Simple, stylish and effective, the Kenu Airframe + portable car mount is the latest addition to Kenu's lineup. Released earlier this y ...

Plantronics Rig Surround 7.1 headset

Trying to capture the true soundscape of video games can be a daunting task. Looking to surround-sound home theater options, users hav ...

Adesso Compagno X Bluetooth keyboard

The shift from typing on physical keyboards to digital versions on smartphones and tablets hasn't been an easy for many consumers. Fro ...

Sponsor

toggle

Most Commented

 
toggle

Popular News