Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. Build from commit 2e4fcb939e83f8d65b1cc1667f2a195f8cf1131c
  2.  
  3. Verify provider is available:
  4.  
  5. daos_m/install/bin/fi_info | grep psm
  6. (should show some output, if not then rebuild daos_m/_build.external/ofi)
  7.  
  8. need to run client and server on different hosts to be able to reconnect without restarting server (required in daos_test)
  9.  
  10. CONFIG:
  11.  
  12. --- a/utils/config/examples/daos_server_psm2.yml
  13. +++ b/utils/config/examples/daos_server_psm2.yml
  14. @@ -3,7 +3,7 @@
  15. name: daos_server # map to -g daos_server
  16. port: 10001 # mgmt port
  17. provider: ofi+psm2 # map to CRT_PHY_ADDR_STR=ofi+psm2
  18. -socket_dir: /tmp/daos_psm2
  19. +#socket_dir: /tmp/daos_psm2
  20. nr_hugepages: 4096
  21. control_log_mask: DEBUG
  22. control_log_file: /tmp/daos_control.log
  23. @@ -18,7 +18,7 @@ control_log_file: /tmp/daos_control.log
  24. ## Transport Credentials Specifying certificates to secure communications
  25. ##
  26. #transport_config:
  27. -# # Specify to bypass loading certificates and use insecure communications channnels
  28. +# # Specify to bypass loading certificates and use insecure communications channnelsnd 20
  29. # allow_insecure: false
  30. # # Location where daos_server will look for Client certificates
  31. # client_cert_dir: .daos/clients
  32. @@ -32,44 +32,46 @@ control_log_file: /tmp/daos_control.log
  33. # single server instance per config file for now
  34. servers:
  35. -
  36. - targets: 8 # count of storage targets per each server
  37. + targets: 1 # count of storage targets per each server
  38. first_core: 0 # offset of the first core for service xstreams
  39. - nr_xs_helpers: 2 # count of offload/helper xstreams per target
  40. + nr_xs_helpers: 1 # count of offload/helper xstreams per target
  41. fabric_iface: ib0 # map to OFI_INTERFACE=ib0
  42. fabric_iface_port: 31416 # map to OFI_PORT=31416
  43. - log_mask: ERR # map to D_LOG_MASK=ERR
  44. + log_mask: DEBUG # map to D_LOG_MASK=ERR
  45. log_file: /tmp/server.log # map to D_LOG_FILE=/tmp/server.log
  46.  
  47. # Environment variable values should be supplied without encapsulating quotes.
  48. env_vars: # influence DAOS IO Server behaviour by setting env variables
  49. - - DAOS_MD_CAP=1024
  50. - - CRT_CTX_SHARE_ADDR=0
  51. - - CRT_TIMEOUT=30
  52. + - DD_MASK=all
  53. + - CRT_TIMEOUT=3600
  54. - CRT_CREDIT_EP_CTX=0
  55. # uncomment to enable scalable endpoint
  56. - # - PSM2_MULTI_EP=1
  57. - # - CRT_CTX_SHARE_ADDR=1
  58. - # - CRT_CTX_NUM=8
  59. + - PSM2_MULTI_EP=1
  60. + - CRT_CTX_SHARE_ADDR=1
  61. + - CRT_CTX_NUM=8
  62. # nvme options
  63. - # - IO_STAT_PERIOD=10
  64. + #- IO_STAT_PERIOD=20
  65. + - DAOS_IO_MODE=1
  66. + - PMEMOBJ_CONF=prefault.at_open=1;prefault.at_create=1;
  67. + - PMEM_IS_PMEM_FORCE=1
  68.  
  69. # Storage definitions
  70.  
  71. # When scm_class is set to ram, tmpfs will be used to emulate SCM.
  72. # The size of ram is specified by scm_size in GB units.
  73. scm_mount: /mnt/daos # map to -s /mnt/daos
  74. - scm_class: ram
  75. - scm_size: 6
  76. + #scm_class: ram
  77. + #scm_size: 6
  78.  
  79. # When scm_class is set to dcpm, scm_list is the list of device paths for
  80. # AppDirect pmem namespaces (currently only one per server supported).
  81. - # scm_class: dcpm
  82. - # scm_list: [/dev/pmem0]
  83. + scm_class: dcpm
  84. + scm_list: [/dev/pmem1]
  85.  
  86. # If using NVMe SSD (will write /mnt/daos/daos_nvme.conf and start I/O
  87. # service with -n <path>)
  88. bdev_class: nvme
  89. - bdev_list: ["0000:81:00.0"] # generate regular nvme.conf
  90. + bdev_list: ["0000:87:00.0"] # generate regular nvme.conf
  91.  
  92. # If emulating NVMe SSD with malloc devices
  93. # bdev_class: malloc # map to VOS_BDEV_CLASS=MALLOC
  94.  
  95. SERVER:
  96.  
  97. orterun -np 1 -H wolf-71 --allow-run-as-root --report-uri /tmp/urifile daos_server -o /home/tanabarr/projects/daos_m/utils/config/examples/daos_server_psm2.yml -i
  98.  
  99. CLIENT:
  100.  
  101. daos_agent -i &
  102. # test we can create a pool
  103. orterun -np 1 --ompi-server file:/tmp/urifile --allow-run-as-root -x OFI_INTERFACE=ib0 -x CRT_PHY_ADDR_STR=ofi+psm2 dmg create --group=daos_server --size=8G --svcn=1
  104. # run the tests
  105. orterun -np 1 --ompi-server file:/tmp/urifile --allow-run-as-root --mca mtl ^psm2,ofi -x FI_PSM2_DISCONNECT=1 -x OFI_INTERFACE=ib0 -x CRT_PHY_ADDR_STR=ofi+psm2 daos_test -p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement