PMEMPOOL-DUMP(1)

πŸ“¦
version 1.13.1 Β· 6 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’Ύ pmempool-dump β€” dump user data from persistent memory pool

okay so real talk, this is the page for pmempool-dump, and yes it lives in the PMDK Programmer's Manual, and yes I'm gonna make it make sense for you bestie 🫢

✨ SYNOPSIS ✨

       $ pmempool dump [<options>] <file>

that's it. that's the whole vibe check. πŸ’…

⚠️ NOTE

NOTICE: The libpmemblk and libpmemlog libraries are deprecated since PMDK 1.13.0 release.

so like, they still work, but they're giving "old money, no future" β€” just be aware, no cap. 😭

🌸 DESCRIPTION 🌸

When you invoke pmempool with the dump command, it dumps user data out of the pool file you specified. The output format can be either binary or hexadecimal.

By default the output format is hexadecimal β€” that's the starting point, that's the default, periodt. ✨

By default, data gets dumped to standard output. But you can totally dump data to a different file by specifying the -o option. Heads up though: in that case, data will be appended to that file β€” not overwritten, appended. iykyk, don't get caught lacking. πŸ™ˆ

Using the -r option you can specify the number of blocks/bytes/data chunks using a special text format. Scroll down to the RANGE section for the deets, bestie. πŸ’–


πŸ‘‘ Available options:

  • -b, --binary β€” dump data in binary format. simple as that. πŸ–€
  • -r, --range <range> β€” the range of the pool file to dump. This can be a number of blocks for blk pool type, or either a number of bytes or a number of data chunks for log pool type. 🎯
  • -c, --chunk <size> β€” size of the chunk for log pool type. See pmemlog_walk(3) in libpmemlog(7) for details. 🧚
  • -o, --output <file> β€” name of the output file. (and remember: it appends! πŸ’€)
  • -h, --help β€” display help message and exit. the classic escape hatch. πŸšͺ✨

πŸŽ€ RANGE πŸŽ€

Using the -r, --range option it's possible to dump only a range of user data. This section describes the valid format of the <range> string.

You can specify multiple ranges separated by commas β€” yes, plural, go off. πŸ”₯

  • <first>-<last> β€” all blocks/bytes/data chunks from <first> to <last> will be dumped. inclusive energy. πŸ’–
  • -<last> β€” all blocks/bytes/data chunks up to <last> will be dumped. 🌸
  • <first>-** β€” all blocks/bytes/data chunks starting from <first> will be dumped. 🌈
  • <number> β€” only <number> block/byte/data chunk will be dumped. just the one. main character energy, honestly. πŸ‘‘

🌟 EXAMPLE 🌟

       $ pmempool dump pool.bin

Dump user data from pool.bin file to standard output. iconic, effortless. πŸ’…

       $ pmempool dump -o output.bin -r1,10-100 pool_blk.bin

Dump block number 1 and blocks from 10 to 100 from pool_blk.bin β€” which contains a pmem blk pool β€” into the output.bin file. look at those ranges slaying. πŸ”₯

       $ pmempool dump -r 1K-2K pool.bin

Dump data from 1K to 2K from the pool.bin file. (yes, that's the manpage's own spelling β€” "form" not "from" β€” we're keeping it, we don't fix, we don't touch, periodt 😭🫢)


πŸ¦‹ SEE ALSO πŸ¦‹

go read those if you want the full lore, bestie, iykyk πŸ’œ


okay that's the whole page!! πŸ’– this was brought to you by PMDK, dated 2023-05-31 β€” screenshot it, bookmark it, tell your friends, dump responsibly. mwah. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from