1KCHASHTEST(1) Kyoto Cabinet KCHASHTEST(1)
2
3
4
6 kchashtest - command line interface to test the file hash database
7
8
10 The command `kchashtest' is a utility for facility test and performance
11 test of the file hash database. This command is used in the following
12 format. `path' specifies the path of a database file. `rnum' speci‐
13 fies the number of iterations.
14
15 kchashtest order [-th num] [-rnd] [-set|-get|-getw|-rem|-etc]
16 [-tran] [-oat|-onl|-onl|-otl|-onr] [-apow num] [-fpow num] [-ts]
17 [-tl] [-tc] [-bnum num] [-msiz num] [-dfunit num] [-lv] path
18 rnum
19 Performs in-order tests.
20 kchashtest queue [-th num] [-it num] [-rnd]
21 [-oat|-onl|-onl|-otl|-onr] [-apow num] [-fpow num] [-ts] [-tl]
22 [-tc] [-bnum num] [-msiz num] [-dfunit num] [-lv] path rnum
23 Performs queuing operations.
24 kchashtest wicked [-th num] [-it num] [-oat|-onl|-onl|-otl|-onr]
25 [-apow num] [-fpow num] [-ts] [-tl] [-tc] [-bnum num] [-msiz
26 num] [-dfunit num] [-lv] path rnum
27 Performs mixed operations selected at random.
28 kchashtest tran [-th num] [-it num] [-hard]
29 [-oat|-onl|-onl|-otl|-onr] [-apow num] [-fpow num] [-ts] [-tl]
30 [-tc] [-bnum num] [-msiz num] [-dfunit num] [-lv] path rnum
31 Performs test of transaction.
32
33 Options feature the following.
34
35 -th num : specifies the number of worker threads.
36 -rnd : performs random test.
37 -set : performs setting operation only.
38 -get : performs getting operation only.
39 -getw : performs getting with a buffer operation only.
40 -rem : performs removing operation only.
41 -etc : performs miscellaneous operations.
42 -tran : performs transaction.
43 -oat : opens the database with the auto transaction option.
44 -oas : opens the database with the auto synchronization option.
45 -onl : opens the database with the no locking option.
46 -otl : opens the database with the try locking option.
47 -onr : opens the database with the no auto repair option.
48 -apow num : specifies the power of the alignment of record size.
49 -fpow num : specifies the power of the capacity of the free
50 block pool.
51 -ts : tunes the database with the small option.
52 -tl : tunes the database with the linear option.
53 -tc : tunes the database with the compression option.
54 -bnum num : specifies the number of buckets of the hash table.
55 -msiz num : specifies the size of the memory-mapped region.
56 -dfunit num : specifies the unit step number of auto defragmen‐
57 tation.
58 -lv : reports all errors.
59 -it num : specifies the number of repetition.
60 -hard : performs physical synchronization.
61
62 This command returns 0 on success, another on failure.
63
64
66 kchashmgr(1)
67
68
69
70Man Page 2012-05-24 KCHASHTEST(1)