The Memory Issue

Memory has long been an issue for Chromebooks, but I didn’t understand why until recently. The incredibly high pixel count certainly wasn’t going to help things. To find out how they might cope with this issue, we caught up with Caesar Sengupta, Product Manager at Google for Chrome OS. I've never understood why Chromebooks always come with modest memory on-board. It isn’t a cost issue, certainly; memory is cheap. It's soldered on, and comes in denser packages so it’s not likely a space issue. Google's making a conscious choice to go small with memory. So, how do you cope 4 million pixels and just 4GB RAM? In this case, the first step is to render all pages at 1280 x 800, unless HiDPI assets are available. The final product is upscaled to the full 2560 x 1600, but the memory doesn’t take nearly the punishing you might expect; unless, of course, every site you visit has HiDPI assets.
 

 
Then there’s a user behavior problem that has long plagued Chrome OS. Tabs linger and multiply. An untidy user could tax the memory assets of any system with tab after tab of unread longreads and cat GIFs. With memory taxed, the OS will begin shuffling under used bits of data into a swap file on local storage, effectively an extension of system memory stored on your hard drive. Even the fastest SSDs are several orders of magnitude slower than RAM, so switching to a tab whose contents had been pushed to the swap file would briefly yield a blank screen as the content is brought back to system memory. The developers of Chrome OS had a mission: an operating system that lives and breathes entirely within system memory. That means, no swap file. And that means an often frustrating user experience. 
 
That same untidy user could bring a Chromebook to its knees with open tabs, and with no swap file, pages purged from memory are simply refreshed when focus is restored. Not that big of a deal, right? Say those tabs are actually your site’s content management system and dozens of tabs of research. Further, that you’ve just spent an hour putting together a great post, and tabbed away just long enough to verify a bit of research. Switch back to your CMS, the page refreshes, and your great post disappears into the ether. Surely, there's a better alternative. Please?
 


The Chrome OS BSOD (plus touch indicators)

 
Android enthusiasts will be familiar with compcache, a method of creating a compressed page file on system memory that can help alleviate memory shortages. Now called zram, this technique fits perfectly within Chrome's philosophy of speed over all other factors. Local storage options vary too much in speed for their speed targets with Chrome, so operating even the page file within memory is a logical step. In practice, zram is better, not great. When a page is purged completely, you get the Chrome BSOD equivalent and an option to reload. This alleviates system slow downs that arose from automatically refreshing each page as you tabbed through them. I haven't noticed any particular slow down that might indicate that a given page's data was being recalled from zram, which could be a good sign. But there's no changing the fact that slicing a piece away from that 4GB for use as a page file isn't nearly as effective as adding another 4GB. 
 
Why Not Android? Display
Comments Locked

74 Comments

View All Comments

  • Bobs_Your_Uncle - Monday, June 3, 2013 - link

    A good review. Also, I thoroughly enjoyed reading various drafts of various segments in the "Why Not Android" segment!
  • seapeople - Monday, June 3, 2013 - link

    Certainly this is a review, that, upon revealing itself to me on my computer, it exerts a judgement of thought immediately as it just sits there. Beyond reproach due to a quirky optimism and ostensibly modulated restraint, I find it best to reflect upon this review only as an afterthought, being intertwined betwixt moments of time, as though one instantaneous occurrence is immediately transcended by the jolt of the next occurrence, and occurring not simultaneously, but nearly so as to appear so. Therefore, I follow this review with one of my own, a review of the review, that being so similar in style, serves through ironic prose to indicate the true nature of that which we have been so wonderfully graced with via the AnandTech homepage.
  • wffurr - Wednesday, June 5, 2013 - link

    For web development, just hit ctrl-alt-t and then ssh into your server and edit there with vim. Problem solved. Chromebooks are perfect for LAMP/Java/Node/etc. web development. Not so much with the .NET web stack. If my work had an OpenVPN or IPSec endpoint instead of Juniper SSL VPN, I would use one instead of a Macbook.
  • rabbit212 - Thursday, August 1, 2013 - link

    I purchased a chromebook pixel and it's touchscreen didn't work. The customer service was horrible. I was told that I needed to wait a week for a replacement chromebook pixel LTE. I was forced to wait 48 hours for an RMA due to the Nexus 7 launch. I will never purchase another Google Play device. Apple is more responsive and get's the concept of customer satisfaction.

Log in

Don't have an account? Sign up now