ci: use "top -w" for untruncated wide output

Without the `-w` argument, the output of `top` gets truncated, and the
commandline of the processes is not comlete. It would be useful to eb
able to tell which command uses 100% CPU in an output like:

  17377 root      20   0  110.8m   8.2m   0.0   0.1   0:00.89 S  `- containerd+
  17414 167       20   0 1036.7m  59.6m   0.0   0.4   0:03.47 S      `- ceph-o+
  40875 root      20   0  283.9m  30.4m 100.0   0.2   0:00.23 R      `- ceph

Updates: #1969
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2021-05-11 17:40:14 +02:00 committed by mergify[bot]
parent e599e95f25
commit bae519db07

View File

@ -30,7 +30,7 @@ log minikube status
log minikube logs log minikube logs
# get the status of processes in the VM # get the status of processes in the VM
log minikube_ssh top -b -c -n1 log minikube_ssh top -b -c -n1 -w
# get the logs from the VM # get the logs from the VM
log minikube_ssh journalctl --boot log minikube_ssh journalctl --boot