Nvram Operation - IBM N Series Hardware Manual

System storage
Hide thumbs Also See for N Series:
Table of Contents

Advertisement

acknowledgement from the storage system that a write has been completed. To reply to a
write request, a storage system without any NVRAM must run these steps:
a. Update its in-memory data structures
b. Allocate disk space for new data
c. Wait for all modified data to reach disk
A storage system with an NVRAM write cache runs the same steps, but copies modified
data into NVRAM instead of waiting for disk writes. Data ONTAP can reply to a write
request much more quickly because it need update only its in-memory data structures and
log the request. It does not have to allocate disk space for new data or copy modified data
and metadata to NVRAM.
Optimizes disk writes. Journaling all write data immediately and acknowledging the client
or host not only improve response times, but also gives Data ONTAP more time to
schedule and optimize disk writes. Storage systems that cache writes in the disk driver
layer must accelerate processing in all the intervening layers to provide a quick response
to host or client. This requirement gives them less time to optimize.
For more information about how Data ONTAP benefits from NVRAM, see the following
document:
http://www.redbooks.ibm.com/abstracts/redp4086.html?Open

11.4.2 NVRAM operation

No matter how large a write cache is or how it is used, eventually data must be written to disk.
Data ONTAP divides its NVRAM into two separate buffers. When one buffer is full, that
triggers disk write activity to flush all the cached writes to disk and create a consistency point.
Meanwhile, the second buffer continues to collect incoming writes until it is full, and then the
process reverts to the first buffer. This approach to caching writes in combination with WAFL
is closely integrated with N series RAID 4 and RAID-DP. It allows the N series to schedule
writes such that disk write performance is optimized for the underlying RAID array. The
combination of N series NVRAM and WAFL in effect turns a set of random writes into
sequential writes.
The controller contains a special chunk of RAM called NVRAM. It is nonvolatile because it
has a battery. Therefore, if a sudden disaster that interrupts the power supply strikes the
system, the data stored in NVRAM is not lost.
After data gets to an N series storage system, it is treated in the same way whether it came
through a SAN or NAS connection. As I/O requests come into the system, they first go to
RAM. The RAM on an N series system is used as in any other system: It is where Data
ONTAP does active processing. As the write requests come in, the operating system also
logs them in to NVRAM.
NVRAM is logically divided into two halves so that as one half is emptying out, the incoming
requests fill up the other half. As soon as WAFL fills up one half of NVRAM, WAFL forces a
consistency point, or CP, to happen. It then writes the contents of that half of NVRAM to the
storage media. A fully loaded system does back-to-back CPs, so it is filling and refilling both
halves of the NVRAM.
Upon receipt from the host, WAFL logs writes in NVRAM and immediately sends an ACK
(acknowledgment) back to the host. At that point from the host's perspective, the data has
been written to storage. But in fact, the data might be temporarily held in NVRAM. The goal of
WAFL is to write data in full stripes across the storage media. To write the data, it holds write
requests in NVRAM while it chooses the best location for the data. It then does RAID
152
IBM System Storage N series Hardware Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents