Microsecond-scale Dynamic Validation of Idempotency for GPU Kernels

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Han, Mingcong, Shen, Weihang, Peng, Guanwen, Chen, Rong, Chen, Haibo
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910679016931328
author Han, Mingcong
Shen, Weihang
Peng, Guanwen
Chen, Rong
Chen, Haibo
author_facet Han, Mingcong
Shen, Weihang
Peng, Guanwen
Chen, Rong
Chen, Haibo
contents We discovered that a GPU kernel can have both idempotent and non-idempotent instances depending on the input. These kernels, called conditionally-idempotent, are prevalent in real-world GPU applications (490 out of 547 from six applications). Consequently, prior work that classifies GPU kernels as either idempotent or non-idempotent can severely compromise the correctness or efficiency of idempotence-based systems. This paper presents PICKER, the first system for instance-level idempotency validation. PICKER dynamically validates the idempotency of GPU kernel instances before their execution, by utilizing their launch arguments. Several optimizations are proposed to significantly reduce validation latency to microsecond-scale. Evaluations using representative GPU applications (547 kernels and 18,217 instances in total) show that PICKER can identify idempotent instances with no false positives and a false-negative rate of 18.54%, and can complete the validation within 5 us for all instances. Furthermore, by integrating PICKER, a fault-tolerant system can reduce the checkpoint cost to less than 4% and a scheduling system can reduce the preemption latency by 84.2%.
format Preprint
id arxiv_https___arxiv_org_abs_2410_23661
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Microsecond-scale Dynamic Validation of Idempotency for GPU Kernels
Han, Mingcong
Shen, Weihang
Peng, Guanwen
Chen, Rong
Chen, Haibo
Operating Systems
Distributed, Parallel, and Cluster Computing
D.4.0
We discovered that a GPU kernel can have both idempotent and non-idempotent instances depending on the input. These kernels, called conditionally-idempotent, are prevalent in real-world GPU applications (490 out of 547 from six applications). Consequently, prior work that classifies GPU kernels as either idempotent or non-idempotent can severely compromise the correctness or efficiency of idempotence-based systems. This paper presents PICKER, the first system for instance-level idempotency validation. PICKER dynamically validates the idempotency of GPU kernel instances before their execution, by utilizing their launch arguments. Several optimizations are proposed to significantly reduce validation latency to microsecond-scale. Evaluations using representative GPU applications (547 kernels and 18,217 instances in total) show that PICKER can identify idempotent instances with no false positives and a false-negative rate of 18.54%, and can complete the validation within 5 us for all instances. Furthermore, by integrating PICKER, a fault-tolerant system can reduce the checkpoint cost to less than 4% and a scheduling system can reduce the preemption latency by 84.2%.
title Microsecond-scale Dynamic Validation of Idempotency for GPU Kernels
topic Operating Systems
Distributed, Parallel, and Cluster Computing
D.4.0
url https://arxiv.org/abs/2410.23661