{"id":3860,"date":"2012-03-26T14:33:26","date_gmt":"2012-03-26T13:33:26","guid":{"rendered":"http:\/\/vmdamentals.com\/?p=3860"},"modified":"2012-03-28T11:03:27","modified_gmt":"2012-03-28T10:03:27","slug":"backwards-vdi-math-putting-numbers-to-the-1000-user-ra","status":"publish","type":"post","link":"https:\/\/www.vmdamentals.com\/?p=3860","title":{"rendered":"Backwards VDI math: Putting numbers to the 1000 user RA"},"content":{"rendered":"<blockquote><p>EMC and VMware have published a joined Reference Architecture where an EMC VNX5300 using a minimum configuration of disks squeezes out the required IOPS for a thousand VDI users. That is awesome stuff, but how to go about using and remodeling this RA for your own needs? In this blog post I&#8217;ll try to put some numbers to it, both validating and enabling you to resize for your needs.<\/p><\/blockquote>\n<p><BR><br \/>\n<strong>A very cool use case: VMware View and 1000 vDesktops running off an EMC VNX5300<\/strong><\/p>\n<p>This is a very VERY cool one. You can find the Reference Architecture<!--more--> and Proven Solutions Guide through the following links. As EMC and VMware joined hands putting this out, the Reference Architecture is available from both EMC and VMware:<\/p>\n<p><a href=\"http:\/\/www.emc.com\/collateral\/software\/technical-documentation\/h8305-infra-view5.0-vsphere5.0-ra.pdf\" title=\"EMC Infrastructure for VMware View 5.0 Reference Architecture\" target=\"_blank\">EMC infrastructure for VMware View 5.0 Reference Architecture (EMC)<\/a><br \/>\n<a href=\"http:\/\/www.emc.com\/collateral\/hardware\/technical-documentation\/h8306-infra-view5.0-vsphere5.0-psg.pdf\" title=\"EMC Infrastructure for VMware View 5.0 Proven Solutions Guide\" target=\"_blank\">EMC infrastructure for VMware View 5.0 Proven Solutions Guide (EMC)<\/a><br \/>\n<a href=\"http:\/\/www.vmware.com\/files\/pdf\/view\/EMC-Infrastructure-for-VMware-View.pdf\" title=\"EMC Infrastructure for VMware View 5.0 Reference Architecture (VMware)\" target=\"_blank\">EMC infrastructure for VMware View 5.0 Reference Architecture (VMware)<\/a><\/p>\n<p>I&#8217;ll just drop all of coolness on you right away: In this RA, EMC runs 1000 View desktops (consuming 9.8 IOPS each) on 15x 15K SAS drives with only TWO 100GB EFDs configured as FAST-cache in front of them.<br \/>\n<BR><br \/>\n<strong><center><font size=\"3\">Yes, that is <font color=\"FireBrick\"><strong>ONE THOUSAND<\/strong><\/font> vDesktops<BR>out of 15 spinning disks and two small EFDs!<\/font><\/center><\/strong><br \/>\n<BR><br \/>\nThis was sized on 15K SAS drives. Looking closer, you could even get away with the same config running from 15x <strong>10K<\/strong> SAS drives with two EFDs in front as the spinning disks were doing only 40 IOPS a piece. Awesome stuff!<br \/>\n<BR><br \/>\n<strong>Doing some nasty calcs<\/strong><\/p>\n<p>So how is it possible to run a workload like that from such a small number of disks? I&#8217;ll just throw in some math. Not an exact science here anymore, so I will be rounding off numbers to make it easier to grab the idea.<\/p>\n<p>This calculation is going to be backwards from what most people are used to. I will not convert to backend IOPS straight away, because IOPS will be coming form different sources with different RAID overheads. It is a new way of playing with numbers around IOPS, in this case tuned to a VDI environment.<\/p>\n<p>I am sorry, there is no clean or easy way to do this&#8230; It is numbers numbers and more numbers. Hopefully I won&#8217;t bore you to death \ud83d\ude42<\/p>\n<p>I will emphasize the partial results in <font color=\"FireBrick\"><strong>RED(ish)<\/strong><\/font> in order to at least keep some kind of logical progression through the story.<br \/>\n<BR><br \/>\n<strong>Calculating VDI with FAST-cache part 1: Performance<\/strong><\/p>\n<p>As the desktops were light users, I assume each linked clone will have around 0,1GB of &#8220;HOT&#8221; data. This means that <font color=\"FireBrick\"><strong>0,1GB of its total footprint (both from replica and linked clone) will be involved with around 95% of its related IOPS<\/strong><\/font>. This is exactly where FAST-cache draws its power from in the VDI use case.<\/p>\n<p>So the total footprint carrying hot data will be 0.1GB * 1000 = 100GB. This hot data will partly be delivered directly from DRAM cache, the rest should be delivered from FAST-cache. The used array (VNX5300) has 2*8GB of cache. As we focus on writes (and writes need to be mirrored in cache), I&#8217;ll assume 10GB as total cache size here given the 20\/80 read\/write ratio. <\/p>\n<p>So the DRAM cache will absorb (10\/100) = 10% of the hottest of the hottest IOPS. The key here is in the &#8220;hottest of hottest&#8221;: this is not a linear thing, and the DRAM will be delivering relatively more than 10% of the IOPS (as this data is &#8220;hotter&#8221; than the average hot data). I am guesstimating we can just about quadruple this number (!!), so we&#8217;ll estimate that <font color=\"FireBrick\"><strong>40% of the hot IOPS should be coming from DRAM cache.<\/strong><\/font><\/p>\n<p>Knowing this, we can start building out numbers into the IOPS realm. The desktops deliver 1000* 9.8 = 9800 IOPS in total. We aim for 95% to be delivered from any of the caching tiers, so that makes 9800*0.95 = 9300 IOPS. If 40% gets delivered from DRAM cache, the remaining 60% should be delivered <font color=\"FireBrick\"><strong>from FAST-cache: 9300*0.60 = 5600 frontend IOPS.<\/strong><\/font><\/p>\n<p>As FAST-cache runs in RAID10, we need to accomodate a write penalty of two for the WOPS going to FAST-cache. As 80% were writes, we get:<\/p>\n<p>5600 * 0.8 * 2 = 9000 WOPS<br \/>\n5600 * 0.2 = 1100 ROPS<\/p>\n<p>In total, <font color=\"FireBrick\"><strong>the FAST-cache SSDs need to deliver 9000+1100 = 10.000 backend IOPS.<\/strong><\/font> <\/p>\n<p>The remaining 5% of the IOPS, which is 9800*0.05 = 490 frontend IOPS need to be delivered by the SAS drives. At 80% writes and a write penalty of 4 (for RAID5) that is:<\/p>\n<p>490 * 0.8 * 4 = 1600 WOPS<br \/>\n490 * 0.2 = 100 ROPS<\/p>\n<p>So <font color=\"FireBrick\"><strong>the SAS drives need to deliver 1700 backend IOPS<\/strong><\/font>. With a drive delivering 170 IOPS a piece (15K drives), you need 10x 15K SAS drives to accommodate for the IOPS.<br \/>\n<BR><br \/>\n<strong>Calculating VDI with FAST-cache part 2: Capacity<\/strong><\/p>\n<p>Required capacity for the environment as a whole is another ballgame. Here we need to look at capacity consumed by replicas, linked clones, swap files etc. I will use the same &#8220;loose math&#8221; here and do some wild (yet realistic) assumptions:<\/p>\n<ul>\n<li>For 1000 desktops we need at least two replicas, which I assume to be 20GB a piece totals to 40GB;<\/li>\n<li>For 1000 desktops we need linked clones which grows to 2GB a piece totals to 2000GB;<\/li>\n<li>For 1000 desktops we need vSphere level swap files of 2GB a piece which totals to 2000GB;<\/li>\n<li>For 1000 desktops we need config and logging files of 250MB a piece which totals to 250GB;<\/li>\n<\/ul>\n<p>In total <font color=\"FireBrick\"><strong>we will be needing around 40+2000+2000+250 = 4,3TB of storage capacity<\/strong><\/font>. As both DRAM cache and FAST-cache is CACHE, they do not participate in the capacity calculations.<\/p>\n<p>To obtain 4TB of storage, we could use either 300GB SAS drives or 600GB SAS drives. When we use RAID5 (4+1) sets, we need this number of drives to satisfy the capacity:<\/p>\n<p>Net capacity per 300GB drive in RAID5 (4+1): (4\/5)*280GB = 220GB.<br \/>\nNet capacity per 600GB drive in RAID5 (4+1): (4\/5)*560GB = 450GB.<\/p>\n<p>In groups of 5 drives, we could get to 4,3TB like this:<\/p>\n<p>220GB*20 = 4,4TB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;450GB*10 = 4,5TB.<\/p>\n<p>So capacity-wise we could get away with 10x 600GB drives.<br \/>\n<BR><br \/>\n<strong>Calculating VDI with FAST-cache part 3: Finale<\/strong><\/p>\n<p>In the end, if we combine the performance and the capacity calculations and really push things we need at least these drives for the solution:<\/p>\n<p><center><strong>2x 100GB EFD drives (in FAST-cache; delivering 5000 IOPS a piece);<br \/>\n10x 15K 600GB SAS drives (delivering 4,5TB of total capacity and 170 IOPS a piece);<\/strong><\/center><\/p>\n<p>So when we really would be pushing things, we might get away with 2x 100GB EFD and 10x 15K SAS 600GB. In the reference architecture there are actually 2x 100GB EFD drives, and 15x 15K 600GB SAS drives to deliver the VDI workload. So the math was not all that much off: The EFD calculations appear to be spot on, but the 15 SAS drives were actually doing only 40 IOPS a piece in the RA. I need to look into that \ud83d\ude42<\/p>\n<p>In real life scenarios, I&#8217;d be tempted to stick to the 15x 15K drives, but grow to 4x FAST-cache drives of 100GB each. This is mainly because the 5000 IOPS are pushing it for sustained performance on the EFDs, and the tested workload was a synthetic one, and real life workloads tend to use a larger footprint for hot IOPS. Naturally, as your workload will vary, you will need to adjust these numbers and rerun the theory.<\/p>\n<p>I want to end this blog post by a very important statement:<\/p>\n<p><center><strong><font color=\"FireBrick\">Theoretical sizing will give you a good starting point, but never an exact sizing. &#8220;You mileage may vary&#8221; is a very true statement here!<\/font><\/strong><\/center><\/p>\n","protected":false},"excerpt":{"rendered":"<p>EMC and VMware have published a joined Reference Architecture where an EMC VNX5300 using a minimum configuration of disks squeezes out the required IOPS for a thousand VDI users. That is awesome stuff, but how to go about using and remodeling this RA for your own needs? In this blog post I&#8217;ll try to put [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77,4,5],"tags":[434,390,392,126,441,442,440,425,72,439,438,73,435,432,433,70,437,436,74],"class_list":["post-3860","post","type-post","status-publish","format-standard","hentry","category-storage","category-vdi-and-vmware-view","category-vmware","tag-backwards-math","tag-cache","tag-cache-is-king","tag-emc","tag-emc-fast","tag-emc-fast-cache","tag-fast","tag-fast-cache","tag-iops","tag-proven-solution-guide","tag-proven-solutions-guide","tag-rops","tag-vdesktops","tag-view-reference-architecture","tag-view-sizing","tag-vmware-view","tag-vnx-5300","tag-vnx5300","tag-wops"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts\/3860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3860"}],"version-history":[{"count":70,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts\/3860\/revisions"}],"predecessor-version":[{"id":3968,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts\/3860\/revisions\/3968"}],"wp:attachment":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}