pmempool-info - show information about persistent memory pool
$ pmempool info [<options>] <file>
The pmempool invoked with info command analyzes an existing pool created by PMDK libraries provided by file parameter. The file can be either existing pool file, a part file or a poolset file.
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 the pool type by parsing and analyzing the pool header. The recognition is done by checking the signature in the 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.
A poolset file passed to pmempool info may contain multiple replicas, also remote ones, but pmempool currently does not read any data from remote replicas. It prints only a remote node address and a remote replica descriptor.
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 wholeor 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.
-w, --walk <size>
Use this option to walk through used data with fixed data chunk size. See pmemlog_walk(3) in libpmemlog(7) for details.
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.
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.
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).
Zone The zone’s statistics are presented for each zone separately and the aggregated results from all zones.
$ 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), libpmemblk(7), libpmemlog(7), libpmemobj(7) and http://pmem.io