Content-Type: multipart/mixed; boundary="===============4688731587872870491==" MIME-Version: 1.0 From: Harris, James R Subject: [SPDK] Re: spdk_top vs application mystery Date: Mon, 08 Feb 2021 21:04:16 +0000 Message-ID: <1F40D3C7-B3F0-4836-86CE-9334067DCD2B@intel.com> In-Reply-To: 20210208190313.2958.69673@ml01.vlan13.01.org List-ID: To: spdk@lists.01.org --===============4688731587872870491== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, See main() in bdevperf.c. It sets opts.rpc_addr to NULL after the opts str= ucture is initialized. If the user does not specify -r, then this field re= mains NULL when spdk_app_start() is called. That tells the event framework= to disable the JSON-RPC listener. spdk_top will not work in that case sin= ce it requires JSON-RPCs to collect its data. It is a very common use case to use bdevperf in conjunction with an SPDK ta= rget application such as nvmf_tgt or spdk_tgt. The SPDK target application = would typically already be using the default /var/tmp/spdk.sock for its JSO= N-RPC listening socket. This is why we require bdevperf users to specify a = JSON-RPC pathname, since in many cases the default one will already be in u= se. Regards, -Jim =EF=BB=BFOn 2/8/21, 12:04 PM, "nufosmatic(a)nufosmatic.com" wrote: v20.10 I have an application I built derived from "hello_world" for bdev. It'= s been working with spdk_top right along. Very nice. = I modified a copy of bdevperf and spdk_top did nothing with it. I final= ly tried adding the "-r " option that comes out of the framework, and= it magically danced to life! The question is why I don't have to use the "-r " with the modifi= ed "hello_world" for bdev and why I do have to specify "-r " (specifi= cally -r /var/tmp/spdk.sock) for bdevperf. I don't see any differences in t= he spdk application startup. Or a better question is why the RPC server is = inhibited in the one bdevperf case unless and until the option is given to = the application. Can you give me some place to look? I just sent back to "hello_world" for bdev, added a spin-delay before t= he spdk_app_stop(), and it also responded to spdk_top. (Kinda boring output= , but it connected...) No "-r " necessary... Mystery... _______________________________________________ SPDK mailing list -- spdk(a)lists.01.org To unsubscribe send an email to spdk-leave(a)lists.01.org --===============4688731587872870491==--