mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user