free -b alignment issues

Hadrien Lacour hadrien.lacour at posteo.net
Wed Nov 14 13:44:34 UTC 2018


Hello,

after switching to busybox awk because mawk had a bug, I discovered a bug in
free:

> free -b
              total        used        free      shared  buff/cache   available
Mem:    16812838912  1123995648 13094776832   157700096  2594066432 15411052544
Swap:             0           0           0

> busybox free -b
             total       used       free     shared    buffers     cached
Mem:   16812838912 372266598413090172928  157700096    2211840 2493845504
-/+ buffers/cache: 122660864015586230272
Swap:            0          0          0


As you can see, the 3rd and 4th fields are merge. It looks like the other free
(from the procps package) uses 12 columns instead of 11.


More information about the busybox mailing list