/spdk/lib/util/ |
H A D | bit_array.c | 347 struct spdk_bit_pool *pool = NULL; in spdk_bit_pool_create() local 355 pool = calloc(1, sizeof(*pool)); in spdk_bit_pool_create() 356 if (pool == NULL) { in spdk_bit_pool_create() 361 pool->array = array; in spdk_bit_pool_create() 362 pool->lowest_free_bit = 0; in spdk_bit_pool_create() 363 pool->free_count = num_bits; in spdk_bit_pool_create() 365 return pool; in spdk_bit_pool_create() 371 struct spdk_bit_pool *pool = NULL; in spdk_bit_pool_create_from_array() local 373 pool = calloc(1, sizeof(*pool)); in spdk_bit_pool_create_from_array() 374 if (pool == NULL) { in spdk_bit_pool_create_from_array() [all …]
|
/spdk/include/spdk/ |
H A D | bit_pool.h | 29 uint32_t spdk_bit_pool_capacity(const struct spdk_bit_pool *pool); 64 void spdk_bit_pool_free(struct spdk_bit_pool **pool); 82 int spdk_bit_pool_resize(struct spdk_bit_pool **pool, uint32_t num_bits); 95 bool spdk_bit_pool_is_allocated(const struct spdk_bit_pool *pool, uint32_t bit_index); 104 uint32_t spdk_bit_pool_allocate_bit(struct spdk_bit_pool *pool); 116 void spdk_bit_pool_free_bit(struct spdk_bit_pool *pool, uint32_t bit_index); 125 uint32_t spdk_bit_pool_count_allocated(const struct spdk_bit_pool *pool); 134 uint32_t spdk_bit_pool_count_free(const struct spdk_bit_pool *pool); 142 void spdk_bit_pool_store_mask(const struct spdk_bit_pool *pool, void *mask); 150 void spdk_bit_pool_load_mask(struct spdk_bit_pool *pool, const void *mask); [all …]
|
/spdk/lib/thread/ |
H A D | iobuf.c | 130 SPDK_ERRLOG("Failed to create small iobuf pool\n"); in spdk_iobuf_initialize() 138 SPDK_ERRLOG("Unable to allocate requested small iobuf pool size\n"); in spdk_iobuf_initialize() 146 SPDK_ERRLOG("Failed to create large iobuf pool\n"); in spdk_iobuf_initialize() 154 SPDK_ERRLOG("Unable to allocate requested large iobuf pool size\n"); in spdk_iobuf_initialize() 190 SPDK_ERRLOG("small iobuf pool count is %zu, expected %"PRIu64"\n", in iobuf_unregister_cb() 195 SPDK_ERRLOG("large iobuf pool count is %zu, expected %"PRIu64"\n", in iobuf_unregister_cb() 390 cache->small.pool = node->small_pool; 391 cache->large.pool = node->large_pool; in spdk_iobuf_channel_fini() 522 /* Release cached buffers back to the pool */ in spdk_iobuf_get() 607 iobuf_pool_for_each_entry(struct spdk_iobuf_channel *ch, struct spdk_iobuf_pool_cache *pool, in spdk_iobuf_put() 480 spdk_iobuf_for_each_entry(struct spdk_iobuf_channel * ch,struct spdk_iobuf_pool * pool,spdk_iobuf_for_each_entry_fn cb_fn,void * cb_ctx) spdk_iobuf_for_each_entry() argument 505 struct spdk_iobuf_pool *pool; spdk_iobuf_entry_abort() local 523 struct spdk_iobuf_pool *pool; spdk_iobuf_get() local 576 struct spdk_iobuf_pool *pool; spdk_iobuf_put() local [all...] |
/spdk/test/common/lib/ |
H A D | test_iobuf.c | 75 struct spdk_iobuf_pool_cache *pool; in spdk_iobuf_get() 84 pool = &cache->large; in spdk_iobuf_get() 87 pool = &cache->small; in spdk_iobuf_get() 91 if (pool->cache_count > 0) { in spdk_iobuf_get() 94 pool->cache_count--; in spdk_iobuf_get() 118 struct spdk_iobuf_pool_cache *pool; in spdk_iobuf_put() 124 pool = &cache->large; in spdk_iobuf_put() 127 pool = &cache->small; in spdk_iobuf_put() 138 if (pool->cache_count < pool 70 struct spdk_iobuf_pool *pool; spdk_iobuf_get() local 110 struct spdk_iobuf_pool *pool; spdk_iobuf_put() local [all...] |
/spdk/scripts/ |
H A D | calc-iobuf.py | 129 pool = PoolConfig(small=small * cpucnt, large=large * cpucnt) 130 pool.add(self.get('accel').calc(config, mask)) 131 return pool 157 pool = PoolConfig() 159 return pool 162 pool.add(self.get('bdev').calc(config, mask)) 177 pool.add(PoolConfig(small=buf_cache_size * cpucnt, large=large * cpucnt)) 178 return pool 208 pool = PoolConfig() 210 return pool [all …]
|
H A D | dpdk_mem_info.py | 22 def add_mempool(self, pool): argument 23 self.mempools.append(pool) 39 for pool in self.mempools: 40 size = size + pool.get_memzone_size_sum() 74 for pool in self.mempools: 75 if name == pool.name: 76 pool.print_detailed_stats() 98 for pool in self.mempools: 100 if pool.name in zone.name: 101 pool.add_memzone(zone) [all …]
|
H A D | arm_cross_compile.sh | 141 …wget https://ftp.debian.org/debian/pool/main/liba/libaio/libaio_0.3.112.orig.tar.xz --no-check-cer…
|
/spdk/module/bdev/daos/ |
H A D | bdev_daos_rpc.c | 17 char *pool; member 28 free(r->pool); in free_rpc_construct_daos() 36 {"pool", offsetof(struct rpc_construct_daos, pool), spdk_json_decode_string}, 61 rc = create_bdev_daos(&bdev, req.name, &req.uuid, req.pool, req.cont, req.oclass, in rpc_bdev_daos_create()
|
H A D | bdev_daos.c | 60 daos_handle_t pool; member 605 if ((rc = daos_pool_connect(daos->pool_name, NULL, DAOS_PC_RW, &ch->pool, &pinfo, NULL))) { in bdev_daos_io_channel_setup_daos() 611 if ((rc = daos_cont_open(ch->pool, daos->cont_name, DAOS_COO_RW, &ch->cont, &cinfo, NULL))) { in bdev_daos_io_channel_setup_daos() 618 if ((rc = dfs_mount(ch->pool, ch->cont, O_RDWR, &ch->dfs))) { in bdev_daos_io_channel_setup_daos() 644 daos_pool_disconnect(ch->pool, NULL); in bdev_daos_io_channel_setup_daos() 691 if ((rc = daos_pool_disconnect(ch->pool, NULL))) { in bdev_daos_io_channel_destroy_cb() 703 const char *pool, const char *cont, const char *oclass, in create_bdev_daos() argument 711 SPDK_NOTICELOG("%s: creating bdev_daos disk on '%s:%s'\n", name, pool, cont); in create_bdev_daos() 728 if (!pool) { in create_bdev_daos() 753 len = strlen(pool); in create_bdev_daos() [all …]
|
H A D | bdev_daos.h | 14 const char *pool, const char *cont, const char *oclass,
|
/spdk/test/blobstore/blob_io_wait/ |
H A D | blob_io_wait.sh | 20 $rpc_py iobuf_set_options --small-pool-count 8192 --large-pool-count 1024 21 $rpc_py bdev_set_options --bdev-io-pool-size 128 --bdev-io-cache-size 1
|
/spdk/test/bdev/ |
H A D | blockdev.sh | 54 iobuf_set_options --small-pool-count 10000 --large-pool-count 1100 268 local pool=testpool 272 daos_setup $pool $cont 275 "$rpc_py" bdev_daos_create Daos0 $pool $cont 16 4096
|
/spdk/test/common/ |
H A D | autotest_common.sh | 264 # For testing nvmes which are attached to some sort of a fanout switch in the CI pool 1031 $NS_CMD ceph osd pool create $RBD_POOL $PG_NUM || true 1044 # $1 = pool name 1047 echo "No pool name provided" 1055 dmg pool create --size=10G $1 || true 1060 local pool=${1:-testpool} 1063 daos container destroy -f $pool $cont || true 1064 sudo dmg pool destroy -f $pool || true
|
/spdk/lib/iscsi/ |
H A D | iscsi_subsystem.c | 52 /* create PDU pool */ in iscsi_initialize_pdu_pool() 59 SPDK_ERRLOG("Cannot create PDU pool: already exists\n"); in iscsi_initialize_pdu_pool() 63 SPDK_ERRLOG("create PDU pool failed\n"); in iscsi_initialize_pdu_pool() 74 SPDK_ERRLOG("create PDU immediate data pool failed\n"); in iscsi_initialize_pdu_pool() 84 SPDK_ERRLOG("create PDU data out pool failed\n"); in iscsi_initialize_pdu_pool() 92 iscsi_sess_ctor(struct spdk_mempool *pool, void *arg, void *session_buf, in iscsi_sess_ctor() argument 111 /* create scsi_task pool */ in iscsi_initialize_task_pool() 117 SPDK_ERRLOG("create task pool failed\n"); in iscsi_initialize_task_pool() 136 SPDK_ERRLOG("create session pool failed\n"); in iscsi_initialize_session_pool() 162 iscsi_check_pool(struct spdk_mempool *pool, size_ argument [all...] |
H A D | iscsi.h | 448 iscsi_datapool_get(struct spdk_mempool *pool) in iscsi_datapool_get() 450 return spdk_mempool_get(pool); in iscsi_datapool_get() 447 iscsi_datapool_get(struct spdk_mempool * pool) iscsi_datapool_get() argument
|
/spdk/doc/ |
H A D | distributions.md | 11 CI pool uses different flavors of `Linux` and `FreeBSD` distributions which are
|
H A D | shfmt.md | 23 On the CI pool, the shfmt is run against all the updated .sh files that
|
/spdk/lib/sock/ |
H A D | sock.c | 617 STAILQ_INIT(&group->pool); in spdk_sock_group_get_ctx() 717 STAILQ_INSERT_HEAD(&group->pool, provided, link); in spdk_sock_group_get_buf() 727 provided = STAILQ_FIRST(&group->pool); in sock_group_impl_poll_count() 732 STAILQ_REMOVE_HEAD(&group->pool, link); in sock_group_impl_poll_count()
|
/spdk/test/vhost/perf_bench/ |
H A D | vhost_perf.sh | 90 echo " --iobuf-small-pool-count=INT number of small buffers in the global pool" 91 echo " --iobuf-large-pool-count=INT number of large buffers in the global pool" 206 iobuf-small-pool-count=*) iobuf_small_count="${OPTARG#*=}" ;; 207 iobuf-large-pool-count=*) iobuf_large_count="${OPTARG#*=}" ;;
|
/spdk/test/unit/lib/accel/dpdk_cryptodev.c/ |
H A D | accel_dpdk_cryptodev_ut.c | 38 spdk_mempool_put_bulk((struct spdk_mempool *)m[0]->pool, (void **)m, cnt); in mock_rte_pktmbuf_free_bulk() 46 spdk_mempool_put((struct spdk_mempool *)m->pool, (void *)m); in mock_rte_pktmbuf_free() 55 int mock_rte_pktmbuf_alloc_bulk(struct rte_mempool *pool, struct rte_mbuf **mbufs, 59 mock_rte_pktmbuf_alloc_bulk(struct rte_mempool *pool, struct rte_mbuf **mbufs, in mock_rte_pktmbuf_alloc_bulk() argument 64 rc = spdk_mempool_get_bulk((struct spdk_mempool *)pool, (void **)mbufs, count); in mock_rte_pktmbuf_alloc_bulk() 70 mbufs[i]->pool = pool; in mock_rte_pktmbuf_alloc_bulk() 317 /* Allocate a real mbuf pool so we can test error paths */ in test_setup() 1197 /* Can't create session pool. */ in test_initdrivers() 1207 /* Can't create op pool in test_initdrivers() [all...] |
/spdk/scripts/vagrant/ |
H A D | Vagrantfile | 251 # Copy the tsocks configuration file for use when installing some spdk test pool dependencies 316 # we put nvme_disk inside default pool to eliminate libvirt/SELinux Permissions Problems
|
/spdk/test/vhost/ |
H A D | common.sh | 185 --small-pool-count="$iobuf_small_count" \ 186 --large-pool-count="$iobuf_large_count"
|
/spdk/python/spdk/rpc/ |
H A D | bdev.py | 13 bdev_io_pool_size: number of bdev_io structures in shared buffer pool (optional) 1126 pool_name: Ceph RBD pool name 1703 def bdev_daos_create(client, num_blocks, block_size, pool, cont, name, oclass=None, uuid=None): 1708 pool: UUID of DAOS pool 1719 params['pool'] = pool 1655 bdev_daos_create(client, num_blocks, block_size, pool, cont, name, oclass=None, uuid=None) global() argument
|
/spdk/test/nvme/perf/ |
H A D | run_perf.sh | 167 bdev-io-pool-size=*) BDEV_POOL="${OPTARG#*=}" ;;
|
/spdk/test/unit/lib/accel/dpdk_compressdev.c/ |
H A D | accel_dpdk_compressdev_ut.c | 171 int mock_rte_pktmbuf_alloc_bulk(struct rte_mempool *pool, struct rte_mbuf **mbufs, 175 mock_rte_pktmbuf_alloc_bulk(struct rte_mempool *pool, struct rte_mbuf **mbufs, in mock_rte_pktmbuf_alloc_bulk() argument
|