cad2d1ac92
Move the s390 specific lsmem tool to util-linux. The lsmem tool was originally written in perl and is part of the s390-tools package which can be found here: https://www.ibm.com/developerworks/linux/linux390/s390-tools.html Given that the tool is architecture independent, there is no reason to keep it in an s390 specific repository. It seems to be useful for other architectures as well. This patch converts the tool to C and adds it to util-linux, while the command line options stay compatible. The only exception is the option "-v" which used to be the short form of "--version". That got changed to "-V" so it behaves like most other tools contained within util-linux. The lsmem tool inspect the contents of /sys/devices/system/memory and prints a summary output similar to what lscpu does: RANGE SIZE STATE REMOVABLE BLOCK 0x0000000000000000-0x000000005fffffff 1,5G online yes 0-5 0x0000000060000000-0x000000007fffffff 512M online no 6-7 0x0000000080000000-0x000000013fffffff 3G online yes 8-19 0x0000000140000000-0x000000014fffffff 256M offline - 20 0x0000000150000000-0x000000017fffffff 768M online no 21-23 Memory block size : 256M Total online memory : 5,8G Total offline memory: 256M In order to keep the output small the tool merges subsequent address ranges where the attributes are identical. To avoid merging of line the "-a" option can be used. The lsmem tool also has "--extendend" and "--parsable" option which can be used to customize the output, e.g. limit the output to specified columns. This is quite similar to what the lscpu tool does. This is based on a patch from Clemens von Mann. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> |
||
---|---|---|
Documentation | ||
bash-completion | ||
config | ||
disk-utils | ||
include | ||
lib | ||
libblkid | ||
libfdisk | ||
libmount | ||
libsmartcols | ||
libuuid | ||
login-utils | ||
m4 | ||
misc-utils | ||
po | ||
schedutils | ||
sys-utils | ||
term-utils | ||
tests | ||
text-utils | ||
tools | ||
.editorconfig | ||
.gitignore | ||
.travis-functions.sh | ||
.travis.yml | ||
AUTHORS | ||
COPYING | ||
ChangeLog | ||
Makefile.am | ||
NEWS | ||
README | ||
README.licensing | ||
autogen.sh | ||
configure.ac | ||
util-linux.doap |
README
util-linux util-linux is a random collection of Linux utilities Note that in years 2006-2010 this project used the name "util-linux-ng". MAILING LIST: E-MAIL: util-linux@vger.kernel.org URL: http://vger.kernel.org/vger-lists.html#util-linux DOWNLOAD: ftp://ftp.kernel.org/pub/linux/utils/util-linux/ SOURCE CODE: Web interface: http://git.kernel.org/cgit/utils/util-linux/util-linux.git https://github.com/karelzak/util-linux Checkout: git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git util-linux NLS (PO TRANSLATIONS): PO files are maintained by: http://translationproject.org/domain/util-linux.html VERSION SCHEMA: Standard releases: <major>.<minor>[.<maint>[.<bugfix>]] major = fatal and deep changes minor = typical release with new features maint = maintenance releases; bug fixes only bugfix = unplanned releases for critical/security bugs Development releases: <major>.<minor>-rc<N>