{"id":19705,"date":"2019-11-21T18:01:16","date_gmt":"2019-11-22T02:01:16","guid":{"rendered":"https:\/\/www.podfeet.com\/blog\/?p=19705"},"modified":"2019-11-22T07:10:41","modified_gmt":"2019-11-22T15:10:41","slug":"dumb-question-corner-why-do-we-need-insane-amounts-of-ram","status":"publish","type":"post","link":"https:\/\/www.podfeet.com\/blog\/2019\/11\/dumb-question-corner-why-do-we-need-insane-amounts-of-ram\/","title":{"rendered":"Dumb Question Corner &#8211; Why Do We Need Insane Amounts of RAM?"},"content":{"rendered":"<p>Chelsea Cook wrote:<\/p>\n<blockquote><p>\n  Hi Allison, I hope you don\u2019t mind this dumb question coming in written form. I want to know: What do people do with these crazy high amounts of RAM? Yes, that includes you with your shiny new MacBook Pro.<\/p>\n<p>  I remember when I was a kid and still using Windows, when my parent&#8217;s computer had only 512 MB of RAM, trying to run JAWS (a popular Windows screen reader and a notorious RAM hog, even to this day) with anything more than a Word document or Internet browser was almost impossible.<\/p>\n<p>  Then I had to petition the school to get me a laptop with 2 GB, then I got my MacBook Air with 4, and now my brand new shiny Mac mini with 16. It seems that as technology advances, we need more and more RAM, but something as high as 128 GB in an iMac Pro, or 1.5 GB in the new Mac Pro\u2026 what is up with that??<\/p>\n<p>  I should also note that I am a VoiceOver user, so the requirements and intricacies of photo and video editing are kind of unknown to me, even if I future-proof my own RAM needs because VO is always running. But 1.5 TB, really??<br \/>\n  <!--more--><br \/>\n  This is a great question, Chelsea!\n<\/p><\/blockquote>\n<p>The basic thing to remember is that access to RAM is fast, while disk access is slow.  Modern SSDs have replaced spinning drives, which has significantly narrowed the gap in speed, but even an SSD is still slower than RAM.  One reason for that is that the RAM chips in your computer have a faster data path directly to the CPU (aka processor).   In contrast to your disk, RAM is directly connected to the CPU on a wide and fast bus. Now, why does that matter?<\/p>\n<p>If you can do as much as possible in RAM, you\u2019ll go faster than if you have to swap out to disk for a given operation.  As RAM prices have come down, applications have been built that demand even more RAM.  Our operating systems have gotten bigger too, which will take advantage of more RAM.<\/p>\n<p>In addition to our operating systems and applications, the files we manipulate with our computers have dramatically larger over time.  For example, back when your parent\u2019s PC had 512MB of RAM, digital photos were wee tiny. I just pulled up some of my earliest digital photos from 2003 and they\u2019re under 100KB.  Today\u2019s iPhone photos are 2MB.  RAW photos from my big-girl camera are 15MB. That&#8217;s 150X as big!<\/p>\n<p>When we process RAW photos from a grown-up camera, or even our iPhone photos, if we had to swap to disk we&#8217;d really hate using our computers, so we need more RAM.  Now take it up a notch and think about editing video. We used to shoot 640&#215;480 video but now 4K is common on a mobile phone.  That&#8217;s nearly a 30X increase in data. You could edit 4K video on an 8GB RAM system but you\u2019d be really unhappy because you\u2019d be swapping to disk like crazy.<\/p>\n<p>When you add a transition between scenes in a video, or maybe blend multi-track video together and have music tracks, you\u2019d be sitting twiddling your thumbs every time you made even the smallest cut as it rendered the data.<\/p>\n<p>You specifically explained that you&#8217;re a VoiceOver user so editing photos and videos has no meaning to you.  And I gave you photo and video examples. So let&#8217;s bring it into your world. I wrote to blind audio engineer Slau, who owns his own recording studio and asked him about his work.  My exact question was, &#8220;Do your giant multi-track audio thingys go way more faster when you have gobs of RAM?&#8221;  Sorry to get so technical!<\/p>\n<p>He answered:<\/p>\n<blockquote><p>\n  Oh, yes, absolutely. While there are outboard hardware units that provide digital signal processing, most people are using their computer&#8217;s CPU for DSP (which would have been unthinkable a few decades ago). These days, virtual instruments (sample-based instruments with vast libraries of audio files) use a tremendous amount of DSP power and, the more RAM you have, the faster these instruments load and perform.\n<\/p><\/blockquote>\n<p>Now you asked about insane amounts of RAM so we need to take it up a notch.<\/p>\n<p>There&#8217;s 3D modeling, analysis of large data sets like weather or telemetry data and machine learning.  What about making a full-length feature film? That\u2019s when you start needing the kinds of insane amounts of RAM you mentioned. Alex Lindsay of the Pixel Corps talks about virtual reality models he\u2019s making that take more than a day to render, so 1.5TB of RAM probably doesn&#8217;t sound insane to him at all.<\/p>\n<p>You mentioned that I bought a 16&#8243; MacBook Pro with 64GB of RAM, which I thought was insane when I bought it.  But you know how no matter how big of a closet you get, you figure out a way to fill it, and no matter how big your disk is you find a way to fill that?  Turns out that the macOS (and I&#8217;m sure other OSes) will take advantage of however much RAM you have available.<\/p>\n<p>My 2016 MacBook Pro had 16GB of RAM, which was the max possible at the time. Before I got the 16&#8243; MacBook Pro, I would have told you that I was <em>never<\/em> limited by that RAM.  But today in studying up to answer you, I discovered something fascinating.<\/p>\n<figure style=\"float: right; margin: 10px\"><img decoding=\"async\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2019\/11\/memory-usage-28-apps-64GB-RAM.png\" alt=\"Memory usage 28 apps 64GB RAM\" title=\"#title#\" width=\"378 \" height=\"86\"><figcaption style=\"text-align:center\">28 Apps, 64GB of RAM<\/figcaption><\/figure>\n<figure style=\"float: right; margin: 10px\"><img decoding=\"async\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2019\/11\/memory-usage-28-apps-16GB-RAM.png\" alt=\"Memory usage 28 apps 16GB RAM\" title=\"#title#\" width=\"378 \" height=\"\"><figcaption style=\"text-align:center\">28 Apps, 16GB of RAM<\/figcaption><\/figure>\n<p>I noticed that I had 28 applications open at once.  I opened up Activity Monitor and selected the Memory tab.  Down at the bottom you can see a little chart that describes how much total memory is being used in a couple of ways.  I decided to open the same 28 applications on my 2016 MacBook Pro with 16GB and compare the memory usage of the two computers.<\/p>\n<p>The 16GB Mac showed memory used of 13.77GB, cached files of 2GB and swap used of 2.81GB.  Yes, it was already swapping to disk, even though the normal memory usage was only 13.77GB of the 16 available.  But here&#8217;s where it gets interesting. You might expect the machine with 64GB to also be using around 14GB.  But it wasn&#8217;t.  It was using 41GB of memory!  It was able to put 13.66GB of cached files into memory as well.  That left right around 9GB free, so it didn&#8217;t swap to disk at all.<\/p>\n<p>The bottom line is that no matter how much RAM we put into computers, our applications, operating systems, and imaginations will find a way to use all of it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Chelsea Cook wrote: Hi Allison, I hope you don\u2019t mind this dumb question coming in written form. I want to know: What do people do with these crazy high amounts of RAM? Yes, that includes you with your shiny new MacBook Pro. I remember when I was a kid and still using Windows, when my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":19704,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[147],"tags":[1981,3645,450],"class_list":["post-19705","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog-posts","tag-memory","tag-ram","tag-ssd"],"jetpack_featured_media_url":"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2019\/11\/OWC-128GB-RAM.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/19705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/comments?post=19705"}],"version-history":[{"count":3,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/19705\/revisions"}],"predecessor-version":[{"id":19709,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/19705\/revisions\/19709"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media\/19704"}],"wp:attachment":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media?parent=19705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/categories?post=19705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/tags?post=19705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}