mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-27 11:43:20 +00:00
updateResources: Log result after calculateSandboxMemory
Log result after calculateSandboxMemory in updateResources. Fixes: #2367 Signed-off-by: Hui Zhu <teawater@antfin.com>
This commit is contained in:
@@ -1938,6 +1938,7 @@ func (s *Sandbox) updateResources(ctx context.Context) error {
|
||||
if sandboxneedPodSwap {
|
||||
sandboxSwapByte += hypervisorMemoryByte
|
||||
}
|
||||
s.Logger().WithField("sandboxMemoryByte", sandboxMemoryByte).WithField("sandboxneedPodSwap", sandboxneedPodSwap).WithField("sandboxSwapByte", sandboxSwapByte).Debugf("updateResources: after calculateSandboxMemory")
|
||||
|
||||
// Setup the SWAP in the guest
|
||||
if sandboxSwapByte > 0 {
|
||||
|
Reference in New Issue
Block a user