Skip to content

Commit

Permalink
ver_linux: Add /proc/meminfo
Browse files Browse the repository at this point in the history
We have free, which shows basic memory info.

But printing /proc/meminfo can be useful to get detailed info or
get any info on embedded systems which might not have procps installed.

+ move free output, to have all memory info after CPU info.

Signed-off-by: Petr Vorel <[email protected]>
Reviewed-by: Cyril Hrubis <[email protected]>
  • Loading branch information
pevik authored and metan-ucw committed Sep 4, 2023
1 parent 9066070 commit d7ba08b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ver_linux
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,17 @@ if [ -e /proc/modules ]; then
echo "Modules Loaded "$X
fi

echo
echo 'cpuinfo:'
tst_cmd_run lscpu || cat /proc/cpuinfo

echo
echo 'free reports:'
free

echo
echo 'cpuinfo:'
tst_cmd_run lscpu || cat /proc/cpuinfo
echo 'memory (/proc/meminfo):'
cat /proc/meminfo

echo
echo 'available filesystems:'
Expand Down

0 comments on commit d7ba08b

Please sign in to comment.