ReadyBoost
{{Short description|Disk caching component of Microsoft Windows}}
{{Infobox software
| name = ReadyBoost
| logo = ReadyBoost Icon Window 8.png
| logo_size = x64px
| screenshot = Microsoft Windows ReadyBoost.png
| screenshot_size = 227px
| caption = ReadyBoost as it appears in Windows 10
| developer = Microsoft
| service_name = ReadyBoost (EMDMgmt)
| operating system = Microsoft Windows
| genre = Disk Cache
}}
ReadyBoost (codenamed EMD{{cite web |url=http://blogs.msdn.com/b/ianm/archive/2006/04/06/569715.aspx |title=SuperFetch, ReadyBoost and ReadyDrive: some new feature names for you |last=Moulster |first=Ian |date=April 6, 2006 |publisher=Microsoft |work=MSDN Blogs |access-date=July 11, 2015}}) is a disk caching software component developed by Microsoft for Windows Vista and included in later versions of Windows. ReadyBoost enables NAND memory mass storage CompactFlash, SD card, and USB flash drive devices to be used as a cache between the hard drive and random access memory in an effort to increase computing performance. ReadyBoost relies on the SuperFetch and also adjusts its cache based on user activity. ReadyDrive for hybrid drives is implemented in a manner similar to ReadyBoost.{{cite web |url=http://download.microsoft.com/download/a/f/d/afdfd50d-6eb9-425e-84e1-b4085a80e34e/SYS-T512_WH07.pptx |title=Windows Vista Kernel Changes |last=Russinovich |first=Mark |author-link=Mark Russinovich |date=2007 |publisher=Microsoft |archive-url=https://web.archive.org/web/20070912235324/http://download.microsoft.com/download/a/f/d/afdfd50d-6eb9-425e-84e1-b4085a80e34e/SYS-T512_WH07.pptx |archive-date=September 12, 2007 |format=PPTX |access-date=July 12, 2015}}
Overview
Using ReadyBoost-capable flash memory (NAND memory devices) for caching allows Windows Vista and later to service random disk reads with better performance than without the cache. This caching applies to all disk content, not just the page file or system DLLs. USB flash devices typically are faster than mechanical hard disks for random access, and slower than mechanical hard disks for sequential access. Gaining the benefit of caching implies that ReadyBoost will access the flash memory for random bits of data. Accordingly, ReadyBoost includes logic that recognizes large, sequential read requests and has the hard disk service these requests instead.{{cite web|archive-url=https://web.archive.org/web/20061225063233/http://blogs.msdn.com/tomarcher/archive/2006/06/02/615199.aspx |archive-date=2006-12-25 |url=http://blogs.msdn.com/tomarcher/archive/2006/06/02/615199.aspx |title=ReadyBoost Q&A |access-date=2023-04-17 |last=Archer |first=Tom |author2=Ayers, Matt |date=2006-06-02 |work=Tom Archer's Blog |publisher=MSDN Blogs }}
When a compatible device is plugged in, the Windows AutoPlay dialog offers an additional option to use the flash drive to speed up the system; an additional ReadyBoost tab is added to the drive's properties dialog where the amount of space to be used can be configured.{{cite web |url=http://blogs.msdn.com/tomarcher/archive/2006/04/14/576548.aspx |title=ReadyBoost - Using Your USB Key to Speed Up Windows Vista |date=April 14, 2006 |access-date=2006-05-21 |author=Tom Archer |work=Tom Archer's Blog |publisher=Microsoft}} The minimum cache size is 250 MB. In Vista or with FAT32 formatting of the drive, the maximum is 4 GB. In Windows 7 or later with NTFS or exFAT formatting, the maximum cache size is 32 GB per device. Windows Vista allows only one device to be used, while Windows 7 allows multiple caches, one per device, up to a total of 256 GB.{{cite web |url=http://news.softpedia.com/news/Windows-7-RTM-ReadyBoost-256-GB-of-Memory-Cache-Support-124081.shtml |title=Windows 7 RTM ReadyBoost 256 GB of Memory Cache Support |date=October 12, 2009 |access-date=2013-01-09 |author=Marius Oiaga |work=SOFTPEDIA |publisher=SoftNews NET SRL}}
ReadyBoost compresses and encrypts all data that is placed on the flash device with AES-128; Microsoft has stated that a 2:1 compression ratio is typical, so a 4 GB cache would usually contain 8 GB of data.{{cite web
|url=https://technet.microsoft.com/en-us/library/2007.03.vistakernel.aspx
|title=Inside the Windows Vista Kernel: Part 2
|date=March 2007
|access-date=2007-03-01
|author=Mark Russinovich
|author-link=Mark Russinovich
|work=TechNet Magazine
|publisher=Microsoft
}}
Requirements
For a device to be compatible and useful, it must conform to these requirements:
- The removable media's capacity must be at least 256 MB (250 MB after formatting, Windows 7 reports in its Event Log a required minimum of 235 MB).
- Windows 7 allows up to eight devices for a maximum of 256 GB of additional memory,{{cite web
|url=http://windows.microsoft.com/en-US/windows7/products/features/readyboost
|title=Windows 7 features - ReadyBoost - Microsoft Windows
|author=Microsoft Windows
|access-date=2009-09-22
}} with up to 32 GB on a single storage device.{{cite web
|url=http://windows.microsoft.com/en-US/windows7/Using-memory-in-your-storage-device-to-speed-up-your-computer
|title=Using memory in your storage device to speed up your computer
|author=Microsoft Windows
|access-date=2012-01-04
}}
- The device must have an access time of 1 ms or less.
- The device must be capable of 2.5 MB/s read speeds for 4 kB random reads spread uniformly across the entire device, and 1.75 MB/s write speeds for 512 kB random writes spread uniformly across the device.{{cite web
|url=https://www.zdnet.com/article/is-your-flash-drive-fast-enough-for-vistas-readyboost/
|title=Is your flash drive fast enough for Vista's ReadyBoost?
|author=Ed Bott, ZDNet
|website=ZDNet
|access-date=2012-01-04
}}
- The Microsoft Windows Client Performance group recommends a flash-memory-to-system-RAM ratio of between 1:1 and 2.5:1.
Other considerations:
- Vista's ReadyBoost supports NTFS, FAT16, and FAT32 from SP1 onwards. Windows 7 also supports the newer exFAT file system. As the ReadyBoost cache is stored as a file, the flash drive must be formatted as FAT32, NTFS, or exFAT in order to have a cache size greater than FAT16's 2 GB filesize limit; if the desired cache size is 4 GB (the FAT32 filesize limit) or larger, the drive must be formatted as NTFS or exFAT. The performance differences between these file systems are negligible with ReadyBoost.
- The initial release of ReadyBoost for Windows Vista supported one device. Windows 7 supports multiple flash drives for ReadyBoost, so performance improvement similar to RAID 0 can be expected.
- The ReadyBoost algorithm was improved in Windows 7, resulting in better performance. One experiment showed reading of flash memory up to 5–10 times faster than Windows Vista due to higher hit rate.{{Citation needed|date=August 2012}}
- Because ReadyBoost stores its cache as a file on the root directory of the drive rather than using the flash memory without a file system, the file system must be mounted. The ReadyBoost cache is created on the root directory of the drive.
- If the system drive (the primary drive, with Windows system files on it) is a solid-state drive (SSD), ReadyBoost is disabled, since reading from that drive would be at least as fast as reading from the ReadyBoost drive.{{cite journal|journal=TechNet Magazine|url=https://technet.microsoft.com/en-us/magazine/ff356869.aspx|title=Understand ReadyBoost and whether it will Speed Up your System|publisher=Microsoft|access-date=2012-12-14}}
- ReadyBoost caches all data as it is being written to the local hard disk: "the Ecache.sys device driver intercepts all reads and writes to local hard disk volumes (C:\, for example), and copies any data being written into the caching file that the service created." SuperFetch pre-populates frequently-read data into ReadyBoost cache, so SuperFetch is necessary for ReadyBoost to perform well.{{cite web|title=ReadyBoost - Robbie's Benchmark|url=http://www.fandecheng.com/archives/397|date=14 April 2012|access-date=17 October 2014}}
- ReadyBoost is not compatible with portable media devices such as mobile phones or cameras, or other devices with emulated storage.
ReadyBoost is not available on Windows Server 2008.{{cite web
|url=https://technet.microsoft.com/en-us/magazine/cc194386.aspx
|title=Inside Windows Server 2008 Kernel Changes
|last=Russinovich
|first=Mark
|author-link=Mark Russinovich
|publisher=Microsoft
|date=March 2008
|access-date=2009-05-10
}} Since version 22H2, Microsoft removed ReadyBoost in Windows 11.{{cite web|url=https://answers.microsoft.com/en-us/windows/forum/all/readyboost-tab-missing-after-22h2-update/a95ff4b0-d585-4ad7-95a4-e0bde5063aca|title=Readyboost tab missing after 22h2 update - Microsoft Community}}
Performance
A system with 512 MB of RAM (the minimum requirement for Windows Vista) can see significant gains from ReadyBoost.{{Cite web|url=https://www.anandtech.com/show/2163|title=Windows Vista Performance Guide|last=Smith|first=Ryan|website=www.anandtech.com|access-date=2019-03-13}}Schmid, Patrick. [http://www.tomshardware.com/reviews/windows-vista-superfetch-and-readyboostanalyzed,1532-6.html "Windows Vista's SuperFetch and ReadyBoost Analyzed:] Conclusion." Toms Hardware. 2007-01-31. In one test case, adding 1 GB of ReadyBoost memory sped up an operation from 11.7 seconds to 2 seconds. However, increasing the physical memory (RAM) from 512 MB to 1 GB (without ReadyBoost) reduced it to 0.8 seconds.[http://www.anandtech.com/systems/showdoc.aspx?i=2917&p=6 AnandTech: Windows Vista Performance Guide] System performance with ReadyBoost can be monitored by Windows Performance Monitor.Schultz, Greg. [http://www.techrepublic.com/blog/window-on-windows/keep-tabs-on-readyboost-with-windows-7s-performance-monitor/2257 "Keep tabs on ReadyBoost with Windows 7's Performance Monitor."] {{Webarchive|url=https://web.archive.org/web/20130926095222/http://www.techrepublic.com/blog/window-on-windows/keep-tabs-on-readyboost-with-windows-7s-performance-monitor/2257 |date=2013-09-26 }} TechRepublic. 2010-03-24. As the price of RAM decreased and more RAM was installed in computers, the mitigations provided by ReadyBoost to systems with insufficient memory decreased.
The core idea of ReadyBoost is that a flash memory (e.g. a USB flash drive or an SSD) has a much faster seek time than a typical magnetic hard disk (less than 1 ms), allowing it to satisfy requests faster than reading files from the hard disk. It also leverages the inherent advantage of two parallel sources from which to read data, whereas Windows 7 enables the use of up to eight flash drives at once, allowing up to nine parallel sources. USB 2.0 flash drives are slower for sequential reads and writes than modern desktop hard drives. Desktop hard drives can sustain anywhere from 2 to 10 times the transfer speed of USB 2.0 flash drives but are equal to or slower than USB 3.0 and Firewire (IEEE 1394) for sequential data. USB 2.0 and faster flash drives have faster random access times: typically around 1 ms, compared to 12 ms for mainstream desktop hard drives.{{cite web | date = June 2010 | url = http://www.wdc.com/en/products/products.aspx?id=140 | title = WD Scorpio Blue Mobile: Drive Specifications | publisher = Western Digital | access-date = 15 January 2011 | url-status = dead | archive-url = https://web.archive.org/web/20110105162632/http://www.wdc.com/en/products/products.aspx?id=140 | archive-date = 5 January 2011 }}
On laptop computers, the performance shifts more in favor of flash memory when laptop memory is more expensive than desktop memory; many laptops also have relatively slow 4200 rpm and 5400 rpm hard drives.
In the original release of Windows Vista, ReadyBoost failed to recognize its cache data upon resume from sleep, and restarted the caching process, making ReadyBoost ineffective on machines undergoing frequent sleep/wake cycles. This problem was fixed with Vista SP1.{{Cite web|url=http://www.istartedsomething.com/20070709/vista-sp1-readyboost-bug/|title=Vista SP1 will fix critical ReadyBoost performance bug|last=Zheng|first=Long|date=2007-07-09|website=istartedsomething|language=en-US|access-date=2019-03-13}}
Limitations
See also
References
{{Reflist|30em}}
External links
- [https://learn.microsoft.com/en-us/previous-versions/technet-magazine/ff356869(v=msdn.10) Understand ReadyBoost and whether it will Speed Up your System]
- [https://patents.google.com/patent/US20060090031 Microsoft's Software Patent on ReadyBoost]
- [https://www.anandtech.com/show/2163/5 AnandTech: Windows Vista Performance Guide - ReadyBoost, ReadyBoost Performance Analysis, and Hard Drive Performance and ReadyBoost]