Storage 4 min read

A storage incident without a storage failure

Several workloads saw severe storage latency on an HPE storage array, but nothing failed. A Nearline tier could not destage writes fast enough, the array started to throttle hosts, and monitoring did not see it coming.

I recently looked at an interesting failure pattern on an HPE storage array. Several production workloads saw severe storage latency, but there was no evidence of a node, SAN or physical disk failure.

The sequence was more interesting than the final root cause.

How it started

A workload increased its write rate from about 0.7 GB/s to 1.9 GB/s in roughly five minutes. Remote Copy replication and snapshot processing were running at the same time.

At first, latency stayed low. On this array a host write goes to node cache, is mirrored to the partner node and is acknowledged to the host right away [1]. The disks come later, when the cache destages the data. So the hosts did not feel anything yet.

Then dirty cache started to grow. A few hundred dirty cache memory pages became more than 500,000, and shortly after that more than 1.5 million. A cache memory page on this array is 16 KiB [2], so this is about 8 GB and then about 24 GB of data that was acknowledged to hosts but not yet on disk.

Why the Nearline tier could not keep up

The volumes behind the spike were on a Nearline (NL) tier. That tier was sized for roughly 2,400 backend IOPS. During the incident the physical disks were doing about 5,800 IOPS.

Backend IOPS are not the same as host IOPS. One host write can become several backend IOs: RAID parity, the first write to a block after a snapshot, which copies the old data first, and the reads for replication. NL disks are big and slow, so when they get more than twice their sized load, the service time goes up quickly and the queues on the disks grow.

The backend simply could not destage writes as fast as they were coming in.

How it spread

The array does not let one slow tier take the whole write cache. When the dirty pages for one device type reach their limit, the array starts delayed acknowledgements: it holds the write ack to the host to slow the host down [3]. This protects the cache, but it means the host now waits for the slow disks.

Not every workload that became slow was on the NL tier. The throttled writes stayed longer in the host-port queues on the array and in the queues on the host HBAs. Volumes on other tiers that shared the same host ports and the same hosts waited in the same queues, so their response times went up too.

Aggregate latency went from around 1 to 2 ms, to roughly 33 ms, and in the end to around 146 ms.

By that point the original host write rate had already dropped a lot. Delayed acks slow the hosts down by design, so part of this drop can be the array pushing back. The storage system was still working through the backlog created earlier, so latency stayed high even after the spike was over.

So the causal chain looked like this:

  1. write spike,
  2. Remote Copy and snapshot workload at the same time,
  3. NL backend saturation,
  4. dirty cache growth,
  5. slower destaging and delayed acknowledgements,
  6. host-port and HBA queues,
  7. wider application latency, also on other tiers.

There was no evidence of any other internal array failure.

What stayed open

One question stayed unanswered: what generated the original write spike?

Storage telemetry could tell us where the workload entered the array. VLUN statistics show the host and the volume. They could not tell us which VM, application or process created it. When one datastore holds dozens of VMs, the array sees only one big writer.

And there was another problem. Monitoring did not catch the developing condition before the applications did. That may be the more important lesson.

What I would monitor

If I were designing detection for this failure mode, I would not monitor only array health and static latency thresholds. I would start with four things:

  • dirty cache pages per device type and how fast they grow (statcmp),
  • delayed acknowledgements, because when this counter starts to rise, the array is already throttling hosts (statcmp),
  • disk service time on the slowest tier (statpd),
  • volume latency as the host sees it (statvlun).

The first two warn early, the last two show the impact. Port queues, replication and snapshot activity are useful when you look for the cause, but they do not need their own alerts.

System Reporter keeps the history of these metrics [1], so the same data is there later for trends and alerts.

A healthy array is not always a storage system with enough performance headroom.

Sometimes nothing fails. The system just reaches a point where work arrives faster than it can be completed.

And if your users see that condition before your monitoring does, that is part of the incident too.

Sources

  1. IntelliMagic: HPE 3PAR performance monitoring
  2. HPE Community: 3Par cache utilization, April 2018
  3. HPE Community: What does mean about Delack in 3par performace data?, December 2014