{"action":"closed","issue":{"url":"https://api.github.com/repos/spdk/spdk/issues/379","repository_url":"https://api.github.com/repos/spdk/spdk","labels_url":"https://api.github.com/repos/spdk/spdk/issues/379/labels{/name}","comments_url":"https://api.github.com/repos/spdk/spdk/issues/379/comments","events_url":"https://api.github.com/repos/spdk/spdk/issues/379/events","html_url":"https://github.com/spdk/spdk/issues/379","id":345701884,"node_id":"MDU6SXNzdWUzNDU3MDE4ODQ=","number":379,"title":"Running bdevperf with SPDK nvmf host library can only Identify the first bdev in the bdev.conf and spdk nvmf target","user":{"login":"xuhuagen","id":33302826,"node_id":"MDQ6VXNlcjMzMzAyODI2","avatar_url":"https://avatars3.githubusercontent.com/u/33302826?v=4","gravatar_id":"","url":"https://api.github.com/users/xuhuagen","html_url":"https://github.com/xuhuagen","followers_url":"https://api.github.com/users/xuhuagen/followers","following_url":"https://api.github.com/users/xuhuagen/following{/other_user}","gists_url":"https://api.github.com/users/xuhuagen/gists{/gist_id}","starred_url":"https://api.github.com/users/xuhuagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuhuagen/subscriptions","organizations_url":"https://api.github.com/users/xuhuagen/orgs","repos_url":"https://api.github.com/users/xuhuagen/repos","events_url":"https://api.github.com/users/xuhuagen/events{/privacy}","received_events_url":"https://api.github.com/users/xuhuagen/received_events","type":"User","site_admin":false},"labels":[{"id":1011848154,"node_id":"MDU6TGFiZWwxMDExODQ4MTU0","url":"https://api.github.com/repos/spdk/spdk/labels/Medium","name":"Medium","color":"7f67ce","default":false},{"id":235898962,"node_id":"MDU6TGFiZWwyMzU4OTg5NjI=","url":"https://api.github.com/repos/spdk/spdk/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-30T10:33:53Z","updated_at":"2018-08-03T01:01:33Z","closed_at":"2018-08-03T01:01:33Z","author_association":"CONTRIBUTOR","body":"In target machine:\r\nI set up 2 subsystems in config file nvmf.conf, as below:\r\n```\r\n[Nvme]\r\n  # NVMe Device Whitelist\r\n  # Users may specify which NVMe devices to claim by their transport id.\r\n  # See spdk_nvme_transport_id_parse() in spdk/nvme.h for the correct format.\r\n  # The second argument is the assigned name, which can be referenced from\r\n  # other sections in the configuration file. For NVMe devices, a namespace\r\n  # is automatically appended to each name in the format <YourName>nY, where\r\n  # Y is the NSID (starts at 1).\r\n  TransportId \"trtype:PCIe traddr:0000:06:00.0\" Nvme0\r\n  TransportId \"trtype:PCIe traddr:0000:07:00.0\" Nvme1\r\n\r\n  # The number of attempts per I/O when an I/O fails. Do not include\r\n  # this key to get the default behavior.\r\n  RetryCount 4\r\n  # Timeout for each command, in seconds. If 0, don't track timeouts.\r\n  Timeout 0\r\n  # Action to take on command time out. Only valid when Timeout is greater\r\n  # than 0. This may be 'Reset' to reset the controller, 'Abort' to abort\r\n  # the command, or 'None' to just print a message but do nothing.\r\n  # Admin command timeouts will always result in a reset.\r\n  ActionOnTimeout None\r\n  # Set how often the admin queue is polled for asynchronous events.\r\n  # Units in microseconds.\r\n  AdminPollRate 100000\r\n\r\n  # Disable handling of hotplug (runtime insert and remove) events,\r\n  # users can set to Yes if want to enable it.\r\n  # Default: No\r\n  HotplugEnable No\r\n[Subsystem1]\r\n  NQN nqn.2016-06.io.spdk:cnode1\r\n  Listen RDMA 192.168.11.11:4420\r\n  AllowAnyHost Yes\r\n  Host nqn.2016-06.io.spdk:init\r\n  SN SPDK00000000000001\r\n  MaxNamespaces 20\r\n  Namespace Nvme0n1\r\n  #Namespace Nvme1n1 2\r\n\r\n# Multiple subsystems are allowed.\r\n# Namespaces backed by non-NVMe devices\r\n[Subsystem2]\r\n  NQN nqn.2016-06.io.spdk:cnode2\r\n  Listen RDMA 192.168.11.11:4420\r\n  AllowAnyHost Yes\r\n  Host nqn.2016-06.io.spdk:init\r\n  SN SPDK00000000000002\r\n  Namespace  Nvme1n1\r\n```\r\n\r\nIn host machine\r\nbdev.conf as below:\r\n```\r\n[Nvme]\r\n        TransportID \"trtype:RDMA adrfam:IPv4 traddr:192.168.11.11 trsvcid:4420 subnqn:nqn.2016-06.io.spdk:cnode1\" Nvme0\r\n        TransportID \"trtype:RDMA adrfam:IPv4 traddr:192.168.11.11 trsvcid:4420 subnqn:nqn.2016-06.io.spdk:cnode2\" Nvme1\r\n```\r\n Run bdevperf  \r\n```\r\n[root@waikikibeach29 spdk]# ./test/bdev/bdevperf/bdevperf -c ../bdev.conf -q 1 -s 4096 -w randwrite -t 11\r\nStarting SPDK v18.07-pre / DPDK 18.02.0 initialization...\r\n[ DPDK EAL parameters: bdevtest -c 0x1 -m 1024 --file-prefix=spdk_pid295553 ]\r\nEAL: Detected 44 lcore(s)\r\nEAL: No free hugepages reported in hugepages-1048576kB\r\nEAL: Multi-process socket /var/run/.spdk_pid295553_unix\r\nEAL: Probing VFIO support...\r\napp.c: 530:spdk_app_start: *NOTICE*: Total cores available: 1\r\nreactor.c: 718:spdk_reactors_init: *NOTICE*: Occupied cpu socket mask is 0x1\r\nreactor.c: 492:_spdk_reactor_run: *NOTICE*: Reactor started on core 0 on socket 0\r\nRunning I/O for 11 seconds...\r\n Logical core: 0\r\n Nvme0n1             :   61256.64 IO/s     239.28 MB/s\r\n =====================================================\r\n Total               :   61256.64 IO/s     239.28 MB/s\r\n\r\n```\r\nIt  only shown the log of  bdev Nvme0 ,and I add a bdev Nvme2 which not exists, as below\r\n```\r\n[Nvme]\r\n        TransportID \"trtype:RDMA adrfam:IPv4 traddr:192.168.11.11 trsvcid:4420 subnqn:nqn.2016-06.io.spdk:cnode1\" Nvme0\r\n        TransportID \"trtype:RDMA adrfam:IPv4 traddr:192.168.11.11 trsvcid:4420 subnqn:nqn.2016-06.io.spdk:cnode2\" Nvme1\r\n        TransportID \"trtype:RDMA adrfam:IPv4 traddr:192.168.11.11 trsvcid:4420 subnqn:nqn.2016-06.io.spdk:cnode3\" Nvme2\r\n```\r\nRun bdevperf again ,we can find that  the log is same as before\r\n\r\n```\r\n[root@waikikibeach29 spdk]# ./test/bdev/bdevperf/bdevperf -c ../bdev.conf -q 1 -s 4096 -w randwrite -t 11\r\nStarting SPDK v18.07-pre / DPDK 18.02.0 initialization...\r\n[ DPDK EAL parameters: bdevtest -c 0x1 -m 1024 --file-prefix=spdk_pid295584 ]\r\nEAL: Detected 44 lcore(s)\r\nEAL: No free hugepages reported in hugepages-1048576kB\r\nEAL: Multi-process socket /var/run/.spdk_pid295584_unix\r\nEAL: Probing VFIO support...\r\napp.c: 530:spdk_app_start: *NOTICE*: Total cores available: 1\r\nreactor.c: 718:spdk_reactors_init: *NOTICE*: Occupied cpu socket mask is 0x1\r\nreactor.c: 492:_spdk_reactor_run: *NOTICE*: Reactor started on core 0 on socket 0\r\nRunning I/O for 11 seconds...\r\n Logical core: 0\r\n Nvme0n1             :   65029.18 IO/s     254.02 MB/s\r\n =====================================================\r\n Total               :   65029.18 IO/s     254.02 MB/s\r\n```\r\n## Expected Behavior\r\nbdevperf should identify all bdevs of bdev.conf\r\n\r\n## Current Behavior\r\nbdevperf can only  identify the first  bdev and ignore other bdevs.\r\nEven if there is a bdev that does not exist, it will be ignored and there will be no error log.\r\n## Possible Solution\r\n\r\n## Steps to Reproduce\r\n1. ./app/nvmf_tgt/nvmf_tgt -c ../config/nvmf.conf\r\n2. ./test/bdev/bdevperf/bdevperf -c bdev.conf -q 1 -s 4096 -w randwrite -t 11\r\n\r\n## Context (Environment including OS version, SPDK version, etc.)\r\nTarget machine and host machine:\r\nOS: Fedora release 27\r\nSPDK version: 9928e9d98a76f62e87551c1e2503eeb370fc04e5\r\n"}}
{"actor":{"display_login":"xuhuagen"}}