ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

VMware vFlash Read Cache (VFRC)

By Vladan SEGET | Last Updated: February 5, 2016

Shares

VMware vFlash Read Cache was introduced in vSphere 5.5 and continue to be present in vSphere 6.x. It allows to leverage local SSD in each host as a cache. Note that no extra VIBs need to be installed on ESXi host or no other software. All the necessary modules are built-in the ESXi 5.5 and higher. In this post we will look at How to configure and How to Determine VMware vFlash Read Cache Block Size (VFRC).

But VMware is moving forward with new Framework called VAIO. VMware VAIO stands for “vSphere APIs for IO Filtering”. It’s a new API framework technology present in vSphere 6.0 (6.0 U1 more precisely) allowing vendors to present capabilities for caching and replication to individual VMs. It’s a framework, not feature. VAIO can be used not only caching but also for replication. Check further details in my post about VAIO Framework here.

But let's get back to VFRC which is present, it's bundled in vSphere at no extra costs. Let's explain some further details. Each local SSD configured for vFRC is formatted with special formatting with new filesystem called VFFS (Virtual Flash File System). This VFFS spans the cluster and forms a flash resource which can get consumed by VMs as a read cache.

Advantages of using vFRC is pretty obvious but in short it lowers application latency because the read requests instead of going all the way down to the storage, across all the physical network controllers,  storage network, storage controllers, spinning media… they just go to the vFRC to be acknowledged. It’s possible to use PCIe cards or Solid State drives (SSDs) with SATA, SAS and PCI Express interfaces.

vFRC is compatible with vMotion, HA, DRS…

If a virtual machine crashes, vSphere HA will restart the virtual machine on the same hosts, and cache contents will be rebuilt. vMotion can be used, is compatible with vFRC and the workflow has been modified to include two new migration settings for cache contents:
  1. Always migrate the cache contents
  2. Do not migrate the cache contents

While the activation of the vFRS per host(s) is quite simple, the block size determination isn’t so obvious. And depending of the block size the performance gets better (or not). We will look at both in this post.

You might wonder how to configure a host, or multiple hosts for vFlash Read Cache?

Step 1. First enable the vFlash Read Cache on single host. Select host >Manage Tab > Virtual Flash Read Cache Resource Management > Add capacity

vFlash Read Cache

Then select available SSD , check the box and click OK

vFlash Read Cache

 

After few minutes you’ll see that in the the device backing empty space area your SSD will appear, and you’ll see the capacity informations and the file system used – VFFS.

vFlash Read Cache

You can check the Flash Read cache resource availability through the Summary Tab.

vFlash Read Cache

For multiple hosts you can follow this video from VMware

How to determine the vFRC Block Size?

To actually configure the Block size it’s done on per-VM level (per VMDK actually !!! ) as the workloads runing in each VM are different so the block size is different for each VM as well. You will need a VM with virtual hardware 10 at least (vSphere 5.5).

Quote:

Having the optimal cache block size is critical to overall perform ance of vFRC. Because the metadata structures for vFRC are indexed by cache block size, the metadata footprint size depends on the cache block size. For good performance, vFRC places its metadata in the memory and therefore the cache block size has a direct correlation with memory usage. The higher the cache block size, the lower the amount of metadata is required for indexing those blocks and therefore results in a smaller memory footprint. Consequently, a smaller cache block size consumes a bigger memory footprint.

The best way to choose the best cache block size is to match it according to the I/O size of the workload. VscsiStats may be used to find the I/O size in real time when running the workload.  This utility outputs an IOLength histogram that can be used to find the most dominant I/O size of the workload.  The cache block size of vFRC can be configured to match this value. In general ,
vFRC performs better if the cache block size either matches or is less than the I/O size of workloads. Find out more in the VMware communities message.

Run

/usr/lib/vmware/bin/vscsiStats -l

to get the VMs WorldGroup ID – in our case its 701464

vFlash Read Cache

Then start the vSCSI tool

/usr/lib/vmware/bin/vscsiStats -s -w <world_group_id>

shot:

vFlash Read Cache

After about 30 minutes vscsiStats will stop running… You can start it once again if you need to monitor during longer period…

/usr/lib/vmware/bin/vscsiStats -p <histo_type> [-c]

vFlash Read Cache

Few things to take in mind:

  • It’s only write-through mode (read only) at the v 1.0 of vFRC
  • The minimum supported block size is 1KB and  the maximum supported block size is 1,024KB.
  • The Virtual Flash Read Cache is granularly allocated on a per-VMDK basis.
  • The default Virtual Flash Read Cache configurable maximum size is 200GB, but a 400GB total maximum is supported
  • To use a 400GB cache working set, the host’s advanced settings values require the modification of VFLASH.MaxCacheFileSizeMB to 409600 and VFLASH.MaxDiskFileSizeGB to 16384
  • There is a threshold mechanism that is set to 90 percent of utilization. When the cache fill percentage reaches threshold, the eviction process is triggered

Monitoring via CLI:

esxcli storage vflash cache stats get –m <module> -c <cache file name >
vFlash Read Cache

What If I want to configure the host swap to SSD and use the same SSD drive?

Host will be swapping only if it used all the other memory optimization techniques are used already – Transparent page sharing (TPS), Memory ballooning, Memory compression.  But it can still happens if you heavily overcommit your memory. So you can do both, configure the SSD to partly use the space for vFRC and partly for Host cache. This is useful as you can allocate some small amount of SSD to host caching if you have hosts with RAM heavily overcommitted.

Select host > Manage > Settings > Virtual Flash Host Swap Cache configuration.  I hope that this article was helpful and you have found what you have been looking for.

Shares
5/5 - (4 votes)

| Filed Under: Server Virtualization Tagged With: VMware vFlash Read Cache

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. DEMARQUE says

    February 5, 2016 at 1:24 pm

    Hi, it seems that Enterprise Plus licence is required to enable this feature, I can not test right now, can you confirm ?
    Note: To use vSphere Flash Read Cache, you need Enterprise Plus Licensing
    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2058983

    • Vladan SEGET says

      February 5, 2016 at 1:57 pm

      It’s written in the KB… Yes, Ent. Plus.

  2. Roman says

    May 23, 2016 at 6:35 am

    Hi Vladan,

    Thank you for this post!

    Have you came across this issue with vFRC in vSphere 5.5 / 6.0 – https://kb.vmware.com/kb/2136867 ?

    • Vladan SEGET says

      May 23, 2016 at 4:08 pm

      Not really as the post was written as a lab post only. Not even a POC. Thanks…

  3. gordon says

    August 4, 2016 at 2:55 pm

    Does this work with Horizon View?

  4. Hoang Anh says

    September 13, 2016 at 7:12 pm

    Yes, it work for View 6.2 as our deployment.

  5. Tejas P says

    April 26, 2020 at 1:51 am

    Just a note that VFRC is deprecated in ESXi 7. So far we (Virtunet Systems) are the only host side caching software for ESXi 7.0
    Here is a link on how our VirtuCache software compares with VFRC https://virtunetsystems.com/vmware-vfrc-vflash-read-cache-competitor-virtunet-virtucache/

    Also to answer the previous question, VFRC doesn’t support Linked Clones or Instant Clones and hence it won’t support persistent and non-persistent VDI. The only exception is if you use full clones for VDI

    Disclosure – I am a SE for Virtunet

    • Vladan SEGET says

      April 26, 2020 at 3:01 pm

      Hi, thanks for the comment. Yes, the post is old.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in