pmempool-info man page
pmempool-info -- print basic information about Persistent Memory Pool file
$ pmempool info [<options>] <file>
The pmempool invoked with info command analyzes an existing pool created by NVML libraries. The main task of this command is to print all usable information from pool headers and user data in human readable format. It automatically recognizes pool type by parsing and analyzing pool header. The recognition is done by checking the signature in pool header. The main job of info command is to present internal data structures as they are stored in file but not for checking consistency. For this purpose there is the pmempool-check(1) command available.
The pmempool with info command analyzes pool file as long as it is possible regarding correctness of internal meta-data (correct offsets, sizes etc.). If it is not possible to analyze the rest of the file, pmempool exits with error code and prints appropriate error message.
Currently there is lack of interprocess synchronization for pool files, so the info command should be invoked off-line. Using pmempool on pool file which may be modified by another process may lead to unexpected errors in pool file.
pmempool info opens pool file in read-only mode so the file will remain untouched after processing.
The info command may collect and print basic statistics about data usage. The statistics are specific to the type of pool. See Statistics section for details.
Although the pool consistency is not checked by the info command, it prints information about checksum errors and/or offsets errors.
By default the info command of pmempool prints information about the most important internal data structures from pool. The particular set of headers and meta-data depend on pool type. The pool type is recognized automatically and appropriate information is displayed in human-readable format.
To force processing specified file(s) as desired pool type use -f option with appropriate name of pool type. The valid names off pool types are blk, log, obj or btt. This option may be useful when the pool header is corrupted and automatic recognition of pool type fails.
-f, --force blk|log|obj|btt
Force parsing pool as specified pool type.
NOTE: By default only pool headers and internal meta-data are displayed. To display user data use -d option. Using -r option you can specify number of blocks/bytes/data chunks or objects using special text format. See Range section for details. The range refers to block numbers in case of pmem blk pool type, to chunk numbers in case of pmem log pool type and to object numbers in case of pmem obj pool type. See EXAMPLES section for an example of usage of these options.
Dump user data in hexadecimal format. In case of pmem blk pool type data is dumped in blocks. In case of pmem log pool type data is dumped as a whole or in chunks if -w option is used (See Options for Pmemlog section for details).
-r, --range <range>
Range of blocks/data chunks/objects/zone headers/chunk headers/lanes. See Range section for details about range format.
Print sizes in human-readable format with appropriate units (e.g. 4k, 8M, 16G)
Print pool's internal data in mixed format which consists of hexadecimal dump of header's data and parsed format displayed in human-readable format. This allows to see how data is stored in file.
Print pool's statistics. See Statistics section for details.
Display help message and exit.
Options for PMEMLOG
-w, --walk <size>
Use this option to walk through used data with fixed data chunk size. See pmemlog_walk() in libpmemlog(3) for details.
Options for PMEMBLK
By default the info command displays the pmemblk header and BTT (Block Translation Table) Info header in case of pmemblk pool type.
To display BTT Map and/or BTT FLOG (Free List and Log) use -m and -g options respectively or increase verbosity level.
In order to display BTT Info header backup use -B option.
Print BTT Map entries.
Print BTT FLOG entries.
Print BTT Info header backup.
NOTE: By default the info command displays all data blocks when -d options is used. However it is possible to skip blocks marked with zero and/or error flags. It is also possible to skip blocks which are not marked with any flag. Skipping blocks has impact on blocks ranges (e.g. display 10 blocks marked with error flag in the range from 0 to 10000) and statistics.
Skip blocks marked with zero flag.
Skip blocks marked with error flag.
Skip blocks not marked with any flag.
Options for PMEMOBJ
By default the info command displays pool header and pmemobj pool descriptor. In order to print information about other data structures one of the following options may be used.
-l, --lanes [<range>]
Print information about lanes. If range is not specified all lanes are displayed. The range can be specified using -r option right after the -l option. See Range section for details about range format.
Print information about only those lanes which require recovery process. This option requires -l, --lanes option.
-S, --section tx,allocator,list
Print information only about specified sections from lane. The section types may be separated by comma. This option requires -l, --lanes option.
Print information about all allocated objects.
-t, --types <range>
Print information about allocated objects only from specified range of type numbers. If -s, --stats option is specified the objects statistics refer to objects from specified range of type numbers. This option requires -O, --object-store or -s, --stats options. See Range section for details about range format.
Ignore empty lists of objects. This option requires -O, --object-store option.
Print information about a root object.
Print object's allocation header. This option requires -O, --object-store or -l, --lanes or -o, --root options.
Print object's out of band header. This option requires -O, --object-store or -l, --lanes or -o, --root options.
Print information about pmemobj heap. By default only a heap header is displayed.
If the -H, --heap option is used, print information about zones from specified range. If the -O, --object-store option is used, print information about objects only from specified range of zones. This option requires -O, --object-store, -H, --heap or -s, --stats options. The range can be specified using -r option right after the -Z option. See Range section for details about range format.
-C, --chunks [<range>]
If the -H, --heap option is used, print information about chunks from specified range. By default information about chunks of types used , free and run are displayed. If the -O, --object-store option is used, print information about objects from specified range of chunks within a zone. This option requires -O, --object-store, -H, --heap or -s, --stats options. The range can be specified using -r option right after the -C option. See Range section for details about range format.
-T, --chunk-type used,free,run,footer
Print only specified type(s) of chunks. The multiple types may be specified separated by comma. This option requires -H, --heap and -C, --chunks options.
Print bitmap of used blocks in chunks of type run. This option requires -H, --heap and -C, --chunks options.
-p, --replica <num>
Print information from <num> replica. The 0 value means the master pool file.
Using -r, --range option it is possible to dump only a range of user data. This section describes valid format of <range> string.
You can specify multiple ranges separated by commas.
All blocks/bytes/data chunks from <first> to <last> will be dumped.
All blocks/bytes/data chunks up to <last> will be dumped.
All blocks/bytes/data chunks starting from <first> will be dumped.
Only <number> block/byte/data chunk will be dumped.
Below is the description of statistical measures for specific pool types.
Total - Total space in pool.
Available - Size and percentage of available space.
Used - Size and percentage of used space.
Total blocks - Total number of blocks in pool.
Zeroed blocks - Number and percentage of blocks marked with zero flag.
Error blocks - Number and percentage of blocks marked with error flag.
Blocks without any flag - Number and percentage of blocks not marked with any flag.
NOTE: In case of pmemblk, statistics are evaluated for blocks which meet requirements regarding: range of blocks (-r option), skipped types of blocks (-z, -e, -u options).
Number of objects - Total number of objects and number of objects per type number.
Number of bytes - Total number of bytes and number of bytes per type number.
Number of zones - Total number of zones in the pool.
Number of used zones - Number of used zones in the pool.
Zone The zone's statistics are presented for each zone separately and the aggregated results from all zones.
Number of chunks - Total number of chunks in the zone and number of chunks of specified type.
Chunks size - Total size of all chunks in the zone and sum of sizes of chunks of specified type.
Units - Total number of units of specified class.
Used units - Number of used units of specified class.
Bytes - Total number of bytes of specified class.
Used bytes - Number of used bytes of specified class.
Total bytes - Total number of bytes of all classes.
Total used bytes - Total number of used bytes of all classes.
$ pmempool info ./pmemblk
Parse and print information about "pmemblk" pool file.
$ pmempool info -f blk ./pmempool
Force parsing "pmempool" file as pmemblk pool type.
$ pmempool info -d ./pmemlog
Print information and data in hexadecimal dump format for file "pmemlog".
$ pmempool info -d -r10-100 -eu ./pmemblk
Print information from "pmemblk" file. Dump data blocks from 10 to 100, skip blocks marked with error flag and not marked with any flag.
pmempool(1), libpmemlog(3), libpmemblk(3), libpmemobj(3) and <http://pmem.io>