how to specify a device for db bench

149 views
Skip to first unread message

Alexandriavq Johnsxw

unread,
Mar 14, 2022, 2:50:42 AM3/14/22
to rocksdb
hi i'm trying to use db bench with my own ssd that is created by linux kernel.
for example, i created a 100GB block device with:
modprobe null_blk  gb=100
then i created a file system for it:
mkfs -t ext3 /dev/nullb0     

then how could i specify it to db_bench ?

thanks !

Yanqin Jin

unread,
Mar 14, 2022, 12:29:34 PM3/14/22
to Alexandriavq Johnsxw, rocksdb
RocksDB does not support raw block device. You need to mount the file system`, and specify the target database directory via db_bench -db=<path/to/your/ext3/subdir/as/db>

From: roc...@googlegroups.com <roc...@googlegroups.com> on behalf of Alexandriavq Johnsxw <gcgenet...@gmail.com>
Sent: Sunday, March 13, 2022 11:50 PM
To: rocksdb <roc...@googlegroups.com>
Subject: how to specify a device for db bench
 
--
You received this message because you are subscribed to the Google Groups "rocksdb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rocksdb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rocksdb/4bfe120d-0c76-4c96-aa56-be35c2d2b77dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages