Hadn't seen this hmmm...ReadyBoost
posted on
Jun 18, 2011 06:13PM
ReadyBoost is a disk cache component of Microsoft Windows, first introduced with Microsoft's Windows Vista in 2006 and bundled with Windows 7 in 2009. It works by using flash memory, a USB flash drive, SD card, CompactFlash or any kind of portable flash mass storage system as a cache.
Contents[hide] |
Using ReadyBoost-capable flash memory (NAND memory devices) for caching allows Windows 7 and Vista to service random disk reads with performance that is typically 80-100 times faster than random reads from traditional hard drives[citation needed]. This caching applies to all disk content, not just the page file or system DLLs. Flash devices typically are slower than a hard disk for sequential I/O so, to maximize performance, ReadyBoost includes logic that recognizes large, sequential read requests and has the hard disk service these requests.[1]
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.[2] 250 MB to 256 GB of flash memory can be assigned (4 GB in the x86 versions of Vista). ReadyBoost compresses and encrypts, with AES-128, all data that are placed on the flash device; Microsoft has stated that a 2:1 compression ratio is typical, so that a 4 GB cache could contain upwards of 8 GB of data.[3]
According to Jim Allchin, for future releases of Windows, ReadyBoost will be able to use spare RAM on other networked Windows PCs.[4]
For a device to be compatible and useful it must conform to these requirements:
Windows Vista and Windows 7 include a command-line utility called "winsat" to test the performance of random read and write speeds. The Command Prompt must be run with administrative privileges, otherwise test results will not be visible after testing.
To test random reads (4096 for 4 KB):
winsat disk -read -ran -ransize 4096 -drive driveletter
For random writes (524288 for 512 KB):
winsat disk -write -ran -ransize 524288 -drive driveletter
Other considerations:
Depending on the brand, wear and tear from read-write cycles, and size of the flash memory, the ability to format as NTFS may not be available. Enabling write caching on the flash drive by selecting Optimize for performance in Device Manager allows formatting as NTFS.[6]
ReadyBoost is not available on Windows Server 2008.[7]
A system with 512 MB of RAM (the bare minimum for Windows Vista) can see significant gains from ReadyBoost.[8] In one test case, ReadyBoost speeds up an operation from 11.7 seconds to 2 seconds (increasing physical memory from 512 MB to 1 GB without ReadyBoost reduced it to 0.8 seconds, though).[9]
The core idea of ReadyBoost is that a flash drive has a much faster seek time (less than 1 ms), allowing it to satisfy requests faster than reading files from a 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 8 flash drives at once, allowing up to 9 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 8 ms and upwards for desktop hard drives. USB 3.0 and Firewire may also hold a slight advantage on sequential data.
On laptop computers the performance shifts more in favor of flash memory because laptop memory is more expensive than desktop memory and many laptops have relatively slow 4200 RPM and 5400 RPM hard drives.
In versions of Vista prior to SP1, 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 in Vista SP1.[10]
Since flash drives wear out after a finite (though very large) number of writes, ReadyBoost could eventually wear out the drive it uses—though this may take a long time, depending on various factors. According to Microsoft, the drive should be able to operate for at least ten years.[1] As capacities rise and cost per megabyte drops, USB drives are increasingly suitable for ReadyBoost.
As pointed out in Mark Russinovich's Inside the Windows Vista Kernel: Part 2,[3] ReadyBoost caches all writes 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". Experiments show that ReadyBoost may not cache reads when Superfetch is turned off. Since random read is slow for hard disks, performance boosts can be realized when ReadyBoost has expected data from which to read. Thus, with Superfetch turned on, pre-populating data into ReadyBoost cache, the performance boost can be much higher than when Superfetch is turned off.[citation needed]