KCTREETEST(1)
π KCTREETEST π (the manual, but make it make sense)
okay so hi bestie π«Ά this is the manual page for kctreetest, living in section 1 (yes, the command-line section, the one you actually type) of the Kyoto Cabinet docs. it's a whole mood, it's a whole utility, and by the end of this you're gonna understand every single flag. no cap. let's get into it. π
β¨ NAME β¨
kctreetest β the command line interface to test the file tree database.
that's it. that's the name. short, sweet, iconic. π
πΈ DESCRIPTION πΈ
so <hotpink>kctreetest</hotpink> is a utility for facility test and performance test of the file tree database. it's giving "I benchmark things for a living." π§
this command gets used in the following formats. quick vocab check first:
pathβ specifies the path of a database file. that's where your db lives, bestie. πrnumβ specifies the number of iterations. how many times we're doing the thing.
π¦ the formats π¦
order β in-order tests
kctreetest order [-th num] [-rnd] [-set|-get|-getw|-rem|-etc]
[-tran] [-oat|-onl|-onl|-otl|-onr] [-apow num] [-fpow num] [-ts]
[-tl] [-tc] [-bnum num] [-psiz num] [-msiz num] [-dfunit num]
[-pccap num] [-rcd|-rcld|-rcdd] [-lv] path rnum
performs in-order tests. very demure, very mindful, everything in the order it's supposed to be in. β¨
queue β queuing operations
kctreetest queue [-th num] [-it num] [-rnd]
[-oat|-onl|-onl|-otl|-onr] [-apow num] [-fpow num] [-ts] [-tl]
[-tc] [-bnum num] [-psiz num] [-msiz num] [-dfunit num] [-pccap
num] [-rcd|-rcld|-rcdd] [-lv] path rnum
performs queuing operations. line up, babes, we're doing this in order. π
wicked β mixed operations, selected at random
kctreetest wicked [-th num] [-it num] [-oat|-onl|-onl|-otl|-onr]
[-apow num] [-fpow num] [-ts] [-tl] [-tc] [-bnum num] [-psiz num]
[-msiz num] [-dfunit num] [-pccap num] [-rcd|-rcld|-rcdd] [-lv]
path rnum
performs mixed operations selected at random. it's called wicked for a reason π chaos mode, main character energy, anything could happen.
tran β transaction test
kctreetest tran [-th num] [-it num] [-hard]
[-oat|-onl|-onl|-otl|-onr] [-apow num] [-fpow num] [-ts] [-tl]
[-tc] [-bnum num] [-psiz num] [-msiz num] [-dfunit num] [-pccap
num] [-rcd|-rcld|-rcdd] [-lv] path rnum
performs test of transaction. atomicity girlies, rise. π₯
π― the options, in their own words
options feature the following. every single one, we're not skipping anybody:
-th numβ specifies the number of worker threads. more threads = more friends helping out. π«Ά-rndβ performs random test. spin the wheel bestie.-setβ performs setting operation only. just setting. nothing else. focus. π-getβ performs getting operation only. just getting.-getwβ performs getting with a buffer operation only.-remβ performs removing operation only. bye bye data π-etcβ performs miscellaneous operations. the grab bag. the random drawer in the kitchen.-tranβ performs transaction.-oatβ opens the database with the auto transaction option.-oasβ opens the database with the auto synchronization option.-onlβ opens the database with the no locking option.-otlβ opens the database with the try locking option.-onrβ opens the database with the no auto repair option.-apow numβ specifies the power of the alignment of record size.-fpow numβ specifies the power of the capacity of the free block pool.-tsβ tunes the database with the small option.-tlβ tunes the database with the linear option.-tcβ tunes the database with the compression option.-bnum numβ specifies the number of buckets of the hash table. πͺ£-psiz numβ specifies the size of each page.-msiz numβ specifies the size of the memory-mapped region.-dfunit numβ specifies the unit step number of auto defragmentation.-pccap numβ specifies the capacity size of the page cache.-rcdβ use the decimal comparator instead of the lexical one.-rcldβ use the lexical descending comparator instead of the ascending one.-rcddβ use the decimal descending comparator instead of the lexical one.-lvβ reports all errors. loud and proud, we want ALL the tea. π΅-it numβ specifies the number of repetition.-hardβ performs physical synchronization.
heads up bestie: the synopsis lines are copy-pasted exactly as the docs have them, so yes,-onlreally does show up twice in that-oat|-onl|-onl|-otl|-onrcluster. that's not me being clumsy, that's the original. and-oasis in the options list even though it's not in the synopsis. iykyk. π
π¦ exit status
this command returns 0 on success, another on failure. zero = we ate. anything else = we did not. π
π SEE ALSO π
go read that one next, bestie, it's the manager and it's lowkey iconic too.
and that's the whole page!! slay, periodt, no notes π this was the KCTREETEST(1) page, it comes from the Kyoto Cabinet manual, dated 2012-05-24, and it was formatted as a man page. mwah. πβ¨
π¦ where this page comes from
- alpine 3.24: kyotocabinet-doc 1.2.80-r1 Β· GPL-3.0-or-later
- arch rolling: kyotocabinet 1.2.80-2 Β· GPL-3.0-or-later
- debian bookworm: kyotocabinet-utils 1.2.79-2+b1
- debian trixie: kyotocabinet-utils 1.2.80-2+b1
- fedora 43: kyotocabinet 1.2.80-8.fc43 Β· GPL-3.0-only
- fedora 44: kyotocabinet 1.2.80-9.fc44 Β· GPL-3.0-only
- nixos 26.05: kyotocabinet 1.2.80
- nixpkgs unstable: kyotocabinet 1.2.80
- opensuse-leap 16.0: kyotocabinet 1.2.80-160000.2.2 Β· SUSE-GPL-3.0-with-FLOSS-exception
- opensuse-leap 16.0: kyotocabinet 1.2.80-160000.2.2 Β· SUSE-GPL-3.0-with-FLOSS-exception
- opensuse-leap 16.0: kyotocabinet 1.2.80-160000.2.2 Β· SUSE-GPL-3.0-with-FLOSS-exception
- opensuse-leap 16.0: kyotocabinet 1.2.80-160000.2.2 Β· SUSE-GPL-3.0-with-FLOSS-exception
- ubuntu jammy: kyotocabinet-utils 1.2.79-1
- ubuntu noble: kyotocabinet-utils 1.2.80-1build1
- ubuntu questing: kyotocabinet-utils 1.2.80-2
- ubuntu resolute: kyotocabinet-utils 1.2.80-2build1
- ubuntu stonking: kyotocabinet-utils 1.2.80-2build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms