install page: say when the host has too little swap behind the guest (R-1192 follow-up); restore record log says when a cut restore was put back; unreleased
gates / gates (push) Successful in 1m36s
gates / gates (push) Successful in 1m36s
This commit is contained in:
@@ -720,6 +720,11 @@ func (s *Server) deployPageData(w http.ResponseWriter, r *http.Request, name str
|
||||
memInfo["UsedPercent"] = usedPercent
|
||||
memInfo["Blocked"] = newReqMB > 0 && afterMB > usableMB
|
||||
memInfo["OvercommitWarn"] = newLimitMB > 0 && afterLimitMB > totalMB
|
||||
// R-1192 follow-up: when memory is tight, say so if the HOST has too little swap behind the guest — the
|
||||
// guest swap fix then has nothing to give, and a big upload can freeze the box.
|
||||
if memInfo["OvercommitWarn"] == true {
|
||||
memInfo["SwapShort"] = s.hostSwapShort()
|
||||
}
|
||||
}
|
||||
data["MemoryInfo"] = memInfo
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user