Bump timeout while waiting for sandbox process to stop.

When the sandbox process has a large memory footprint (say >25 GiB), it can
take more than 5 seconds for the sandobx process to dissapear from the
process table after receiving SIGKILL.

This is more applicable for GPU applications which can use very large amounts
of memory.

PiperOrigin-RevId: 617931970
This commit is contained in:
Ayush Ranjan
2024-03-21 12:46:53 -07:00
committed by gVisor bot
parent 094b83e18a
commit ad7931ac45
+1 -1
View File
@@ -1462,7 +1462,7 @@ func (s *Sandbox) waitForStopped() error {
return nil
}
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
defer cancel()
b := backoff.WithContext(backoff.NewConstantBackOff(100*time.Millisecond), ctx)
op := func() error {