PMEMPOOL-CREATE(1)
PMEMPOOL-CREATE(1) π β¨
hiii bestie π«Ά welcome to the PMDK Programmerβs Manual β todayβs main character is pmempool-create, the command that creates a persistent memory pool. itβs giving filesystem magic, no cap. letβs get into it π
π NAME π
pmempool-create - create a persistent memory pool
β¨ SYNOPSIS β¨
$ pmempool create [<options>] [<type>] [<bsize>] <file>
π¨ NOTE π¨
NOTICE: Thelibpmemblkandlibpmemloglibraries are deprecated since PMDK 1.13.0 release.
this is important, bestie β theyβre deprecated, okay? noted and underlined. π
π DESCRIPTION π
When you invoke pmempool with the create command, it creates a pool file of the specified type. Depending on the pool type, you can provide more properties of the pool. lowkey customizable, highkey iconic.
Valid pool types are: blk, log and obj which stands for pmemblk, pmemlog and pmemobj pools respectively. By default the pool file is created with minimum allowed size for specified pool type. The minimum sizes for blk, log and obj pool types are PMEMBLK_MIN_POOL, PMEMLOG_MIN_POOL and PMEMOBJ_MIN_POOL respectively. See libpmemblk(7), libpmemlog(7) and libpmemobj(7) for details. π
For pmemblk pool type block size <bsize> is a required argument. not optional, bestie β required required.
In order to set custom size of pool use -s option, or use -M option to create a pool of maximum available size on underlying file system. π¦
The size argument may be passed in format that permits only the uppercase character for byte - B as specified in IEC 80000-13, IEEE 1541 and the Metric Interchange Format. Standards accept SI units with obligatory B - kB, MB, GB, ... which means multiplier by 1000 and IEC units with optional βiBβ - KiB, MiB, GiB, ..., K, M, G, ... - which means multiplier by 1024. numbers said slay, units said periodt.
β¨ Available options: β¨
-s,--size <size>β Size of pool file.-M,--max-sizeβ Set size of pool to available space of underlying file system.-m,--mode <octal>β Set permissions to<octal>(the default is0664) when creating the files. If the file already exist the permissions are not changed.-i,--inherit <file>β Create a new pool of the same size and other properties as<file>.-b,--clear-bad-blocksβ Clear bad blocks in existing files.-f,--forceβ Remove the pool before creating.-v,--verboseβ Increase verbosity level.-h,--helpβ Display help message and exit.
π¦ Options for PMEMBLK π¦
By default when creating a pmem blk pool, the BTT layout is not written until the first write operation of block entry is performed. Using -w option you can force writing the BTT layout by writing zero data to specified block number. By default the write operation is performed to block number 0. Please refer to libpmemblk(7) for details. BTT layout said βnot yet,β and -w said βbestie, weβre writing.β
-w,--write-layoutβ Force writing the BTT layout by performing write operation to block number zero.
πΈ Options for PMEMOBJ πΈ
By default when creating a pmem obj pool, the layout name provided to the libpmemobj library is an empty string. Please refer to libpmemobj(7) for details. empty string era, but you can name it if you want.
-l,--layout <layout>β Layout name of the pmemobj pool.
π EXAMPLE π
$ pmempool create blk 512 pool.blk
Create a blk pool file of minimum allowed size and block size 512 bytes π
$ pmempool create log -M pool.log
Create a log pool file of maximum allowed size β¨
$ pmempool create blk --size=4G --write-layout 1K pool.blk
Create a blk pool file of size 4G, block size 1K and write the BTT layout π
$ pmempool create --layout my_layout obj pool.obj
Create an obj pool file of minimum allowed size and layout βmy_layoutβ π¦
$ pmempool create --inherit=pool.log new_pool.log
Create a pool file based on pool.log file π
π SEE ALSO π
pmempool(1), libpmemblk(7), libpmemlog(7), libpmemobj(7) and <https://pmem.io> β go read the lore, bestie, itβs all connected. π
π cute sign-off: this iconic little manual page comes from PMDK, dated 2023-05-31, and itβs giving official-manual-but-make-it-group-chat. mwah πβ¨
π¦ where this page comes from
- debian trixie: pmdk-tools 1.13.1-1.1+b1 Β· BSD-3-Clause
- ubuntu noble: pmdk-tools 1.13.1-1.1ubuntu2 Β· BSD-3-Clause
- ubuntu questing: pmdk-tools 1.13.1-1.1ubuntu3
- ubuntu resolute: pmdk-tools 1.13.1-1.1ubuntu4 Β· BSD-3-Clause
- ubuntu stonking: pmdk-tools 1.13.1-1.1ubuntu5 Β· BSD-3-Clause
- π the page's license: BSD-3-Clause
- Copyright 2016-2023, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms