mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +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:
parent
b94252a5fa
commit
767a41ce56
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user