[LTP] [PATCH 1/1] ver_linux: Add /proc/meminfo
Petr Vorel
pvorel@suse.cz
Fri Sep 1 14:58:44 CEST 2023
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 <pvorel@suse.cz>
---
ver_linux | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/ver_linux b/ver_linux
index 2df1c7b69..7dd0fe176 100755
--- a/ver_linux
+++ b/ver_linux
@@ -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:'
--
2.40.1
More information about the ltp
mailing list