Windows 8 and Reduced Memory Usage

In a recent blog post, Microsoft describes how it works to reduce memory usage even further in Windows 8, undermining those out-of-date complaints from haters who think Windows is too big for iPad-like tablet devices.

"In building Windows 8 we set out to significantly reduce the overall runtime memory requirements of the core system," Microsoft president Steven Sinofsky notes in the post. "This is always good for everyone and especially in a world where people want to run more and more apps at the same time or run on systems with only 1 or 2GB of memory."

As you may recall, Windows 8 has the same system requirements as its predecessor, Windows 7, but in fact uses even fewer resources on the same hardware, a first for any Windows version. But Windows 8 is also being engineered to run on very low-end SoC ("system on a chip") type designs like those based on ARM, which feature much lower power consumption than typical PCs. So this OS needs to be finely tuned to use very little RAM, leaving even more resources for apps.

"RAM is constantly consuming power," Microsoft group program manager Bill Karagounis explains in the post. "If an OS uses a lot of memory, it can force device manufacturers to include more physical RAM. The more RAM you have on board, the more power it uses, the less battery life you get. Having additional RAM on a tablet device can, in some instances, shave days off the amount of time the tablet can sit on your coffee table looking off but staying fresh and up to date."

With this in mind, Windows 8 is being designed to require just 200 MB of RAM, not counting the display adapter needs. The post describes a few ways in which Microsoft is achieving this goal:

Memory de-duplication. Since many parts of memory contain the same value, Windows 8 frees up duplicates and keeps a single copy. If an application attempts to change the value of one of those locations, Windows will then give it a private copy it can modify. "All of this happens under the covers in the memory manager, with no impact on applications," Karagounis claims. "This approach can liberate 10s to 100s of MBs of memory (depending on how many applications are running concurrently)."

Changes to system services. Microsoft removed 13 startup services in Windows 8, changed others to "manual start," and made others "start on demand," dramatically reducing the startup time and memory usage of Windows 8-based PCs. "Plug and Play, Windows Update, and the user mode driver framework service are all trigger-started in Windows 8, in contrast to Windows 7, where these services were always running," Karagounis writes.

Doing more with less. Shortly after shipping Windows 7, Microsoft began an investigation of how low level OS components--including some dating back to the original 1993-era NT--utilize memory. The result necessitating a "re-architecture of code" to make it more efficient. "By densely consolidating the hot items, we brought down the overall runtime memory cost," Karagounis explains. "We've seen consistent results showing memory usage reduced by tens of MB on an average machine."

A lazier desktop. Since the Windows desktop is no longer the Windows shell, it's not loaded into memory when Windows starts up. This saves about 23 MB of RAM, Microsoft says.

Better memory prioritization. "Windows 8 can make better decisions about what memory to keep around and what memory to remove sooner," Karagounis says. "[It] has a better scheme for the prioritization of memory allocations made by applications and system components."

Karagounis notes that improvements to the Windows 8 application model and process lifecycle make new Windows 8 apps more "memory friendly," but that's a topic for another day. In the meantime, check out this most recent post: It's a great peek at one of the many reasons why Windows 8 is so much more efficient than previous versions and so much more capable of working well on a wider range of hardware.

Discuss this Article 11

davepermen
on Oct 9, 2011
The more and more Infos we get, the more and more this could just run on any wp7 device. Can't wait for the guessed-at unification in the future.
WickedScribbler
on Oct 9, 2011
Don't worry, the Loony Open_Sauce crawd will say that this shows that Windows 8 isn't a good system because it strives to use less memory.
Waethorn
on Oct 9, 2011
@Dave: this is likely why they won't commit to making more Zune hardware - because some enterprising ODM will likely just make a non-phone tablet device with a <5" screen. The Pocket PC is dead. Long live the Pocket PC.
Mustang17
on Oct 10, 2011
Yes Scott, and of course we will get those who say its bloated, which is remarkable in this day of quad cores, terabytes of hard drive space and more memory than miles to the moon and back.
MikeGalos
on Oct 10, 2011
I am frequently amused by people saying "Windows is too bloated to use on things like tablets and phones - those kind of devices need a dedicated consumer OS designed for small devices" while simulateously citing iOS and Android as good examples. Apparently they think a mainframe/terminal OS from the 1970s was designed from the ground up for 2010-era consumer electronics.
WickedScribbler
on Oct 10, 2011
@mustang17 True. As is I have a PC here that came standard with a 1TB HD, and room to add lots more, not to mention 8GB RAM that can be boosted to 16, and a quad-core CPU. Tell me Freetardia, just what is bloat when i can run practically every program on this thing and still have memory left?
luis3007
on Oct 10, 2011
The problem is not memory, but power. Today's batteries can't give more power withouth a heavy increase in size which is a big NO in tablets and even laptops.
Info Dave
on Oct 10, 2011
Why is it that when you cover a sensitive and controversial topic like reduced memory usage in Windows 8, you post it in your blog, where I can make comments. And when you state factual, free of bias facts like Apple's lackluster iPhone 4S launching to mostly negative reviews, you post it where comments cannot be made. RE: Microsoft's Windows Phone Chief Talks Momentum Apple sold a million 4S's the first day of pre-sale. That's momentum
Waethorn
on Oct 10, 2011
Windows requires 1GB of RAM. Despite pundits saying that it's bloated, I haven't seen any mainstream Linux distro that runs properly on less, and OS X has similar requirements.
LemonSaucy
on Oct 11, 2011
Metro is the *modern way* of launching apps. So Microsoft has disabled the Start menu. You used a car anaology about people not fixing their own cars, so I will se a true car story: I note that GM, back in the late fifties (before I was born), introduced the joy-stick power-assisted steering into its vehicles as an experiment (no steering wheel). They thought people would really take to it because it was so jet-set and modern. It was a complete flop. People just were not comfortable steering their cars with a joy-stick. Metro on the desktop feels like that to me. It might be wizz-bang and *modern*, but I am not comfortable with it to the point that I actually do not like it. It might be great on a little hand-held, but it just doesn't fit how I've gotten used to - and enjoy - working with Windows on the desktop.
noel
on Feb 26, 2013

I thought that Windows 8 was supposed to be better with memory than Windows 7. So far, that is not my experience.

When I boot up my brand new laptop (Samsung NP550P5C-S03CA Intel Core i5 3210M 8GB 1TB ) , the Task Manager Performance tab tells me that I have:

8.0 Gb of DDR3 available
of this:

3.7GB is in use, leaving 4.2GB available

3.5/25.9 GB is committed and 1.4GB is cached.

162Mb paged pool, 2.4GB non-paged.

I then go to the Details tab, and I add up the Memory used by all the processes. It comes to about 300Mb. That is 0.3GB. So what is using up the other 3.4GB of memory???

I then load up a bunch of programs that I use concurrently - notably Firefox (with about 30 tabs), Chrome, Thunderbird, Notepad++, Filezilla and my memory consumption goes up to 4.4GB. That seems about right.

I then work on it for a number of days, hibernating in-between, and I start to get notices that I am running low of memory. The performance tab says I am using 90% or more of my memory. The committed has gone up to 31GB. But if I add up the memory usage listed in the Details tab, it comes to only about 1800MB (I notice that Firefox has gone up to about 1300MB)

So, again, where has all my memory gone?

If I then close all the programs, it doesn't help. The details tab shows little running, yet the Performance tab shows I am still out of memory?

What is using up all my memory?

The only thing that clears it, is to do a restart. Which brings us back to the top of the loop, with the same initial question - what is using up over 4GB of my memory?

I never had these problems with windows 7.

As a sidenote, Win 8 also seems to be very unstable. Frequently getting programs not responding and crashing, including Windows Explorer, which seems to have to reload itself frequently.

Oh, and my wifi connection keeps dying and then I have to run the troubleshooter to get it all running again (my wife has that same problem on her brand new Acer).

So, what gives? How do I get my new laptop to work as fast as my 4 year old Sony Vaio with Win 7 and lower specs?

Anyone got any ideas? Or is this normal for Windows 8?

Please or Register to post comments.

IT/Dev Connections

Las Vegas
September 30th - October 4th

Paul ThurottYou'll have the opportunity to experience:
• 120 Technical
Sessions
• Networking with Peers
• Expert Speakers


Come See Paul Thurrott & Mary Jo Foley in Person!

Register Now

Office 365 InfoCenter

Get the latest insight and info from Paul

Read Now!

What I Use