Content-Type: multipart/mixed; boundary="===============3495232905554902581==" MIME-Version: 1.0 From: dimitra.giantsidi at gmail.com Subject: [SPDK] Re: Rocksdb with SPDK Date: Thu, 01 Oct 2020 21:52:17 +0000 Message-ID: <20201001215217.2619.77030@ml01.vlan13.01.org> In-Reply-To: BYAPR11MB282408E66E3E62D8967C0D14EF300@BYAPR11MB2824.namprd11.prod.outlook.com List-ID: To: spdk@lists.01.org --===============3495232905554902581== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Benjamin, Thank you for your prompt reply! = I got rid of the "Not implemented"-error by working on a more "stable" and = sane compiler/linker environment -- thanks again for your help. However, even with a stable gcc release I am having some important (might t= rivial) questions. = All in all, I want to use the rocksdb logging interface (based on blobfs) f= or a very simple parallel (multithreaded) logging application. In particular, I want to measure the time a thread takes to append and sync= (to the disk) manually some data (for benchmarking purposes). The workflow of my code is simple (I can attach my code if it is required := )): = -- in the main function I am creating a "rocksdb::NewSpdkEnv()" which is gl= obal and thus visible to all application threads. = -- Also the main thread creates a unique-for-each-thread "NewWritableFile(f= name, &file, soptions);" which is of type SpdkWritableFile and forwards the= unique_ptr of it to the thread function. = -- Afterwards each thread will append data on its assigned file and also mi= ght invoke Sync(). = However, even this code works fine when using the kernel driver, it does no= t work with spdk (breaks with a segfault). The trace of the gdb is not real= ly deterministic: = "Thread 4 "spdk_rocksdb" received signal SIGSEGV, Segmentation fault. 0x00000000008c1734 in alloc_fs_request (channel=3Dchannel(a)entry=3D0x30) a= t blobfs.c:264 264 if (channel->sync) { " Any idea of what it might be? Is the logic of my application orthogonal to = the context of the SpdkEnv() for rocksdb? Lastly, does the " __thread struct sync_args g_sync_args;" in "spdk/lib/roc= ksdb/env_spdk.cc"=C2=A0 play any role when spawning new threads? = I feel that my error is related to how spdk channels are configured regardi= ng to the thread_context information. Any help would be highly appreciated :) Thank you again for your time, Dimitra --===============3495232905554902581==--