From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f52.google.com (mail-vk0-f52.google.com [209.85.213.52]) by dpdk.org (Postfix) with ESMTP id 3BF2A5F1F for ; Fri, 8 Jun 2018 18:05:48 +0200 (CEST) Received: by mail-vk0-f52.google.com with SMTP id s187-v6so8545444vke.9 for ; Fri, 08 Jun 2018 09:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=APVlu3lqkbZqVybUY29UN8D6ZCvxRwRx0V2Z0FpPwrs=; b=Auqyzf+E9Tnhgr0n81fpmL3AVkIe0Pe4TNAUdQFGbrJYu1IdASOz70dQ9nTfzLL0rI HscUMYdhTmhHBur8AdKqoL+lLVCN7qoElDFQDcaYgB5DOUxFvgHRvQJtssRwKQr8WMFZ DX7lURiKaE8YgBGvN7DNo/nIk0BNhuuUEud0Fd3Fa4MruKNZihOlmZnQ/BObNMU19blN XkweHDSkd7xRBXRwd/quxJVf3fWl+/nkFsf+fWvmNDBdql0l8yz4M4r8Sx/S9DAc8No/ rLYuOvBBfUNuLuWe2erLKg1IEO0bcJAfuYwabPytHFjQZTT+S4DeOe8KALnNqk1sX7I0 DkAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=APVlu3lqkbZqVybUY29UN8D6ZCvxRwRx0V2Z0FpPwrs=; b=ixNcX4F4QXa8q84PbGQlzmjfkgwJlPI1vbwIgVrmO0Hmp0vlnFPTPf4MCVnlZeu1fL CwSlmsAikZevmiuPYjyHIEHnaZH6ekiJt+zwJ3qruqZSC6lLKKfdcN4PrIF7PIZobcYp +WaJK5hy1jzP27iPb7HZngC0K9HAtTpkpP6Pyl9UYHlltwVUjHJekHvVgI736RvMC77Q ky+NltrgjWUpfbcLeiLTRdTcFZ7TIPJ5xuJcBFyyV+wIbqD8FFSD4pK+c9dpTv1g+0cy MLZYMD5rbdrA+//KrLGvChG5mwm4ExfLByTzd75aUH7ESfGFZ71HCUx4Zv0Ne/TX3FoP G0nA== X-Gm-Message-State: APt69E0Sdmab/Z21JGMKj6CFwYF96ZWiEZdyPCpV0a5CJTeYsGidTbiM A+fdOTLEREJPJo1wSsP1SKbPtPbJ2FoVDq5idC0= X-Google-Smtp-Source: ADUXVKIOPEGE/JJs8xUi8scwvZIzwljEvxQ52a+fm7tAKMQfehNluZfnNTS6zUSqfUGD+w2XndFIIxXMm3PGNkpfiTo= X-Received: by 2002:a1f:3df:: with SMTP id f92-v6mr4285058vki.98.1528473946604; Fri, 08 Jun 2018 09:05:46 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:1d42:0:0:0:0:0 with HTTP; Fri, 8 Jun 2018 09:05:46 -0700 (PDT) In-Reply-To: References: From: Monika Mails Date: Fri, 8 Jun 2018 09:05:46 -0700 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Fwd: rte_mempool_create( ) fails at rte_mempool_set_ops_byname () for name ring_mp_mc X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2018 16:05:48 -0000 Hi All, I further checked the return error number from rte_mempool_create( ) it is returning value 2 which means I guess "Missing rte_config" Error types *Enumerator: * *RTE_MIN_ERRNO* Start numbering above std errno vals *E_RTE_SECONDARY* Operation not allowed in secondary processes *E_RTE_NO_CONFIG* Missing rte_config *RTE_MAX_ERRNO* Max RTE error number Can someone please tell me how to fix this error? Regards, Monika On Wed, Jun 6, 2018 at 2:50 PM, Monika Mails wrote: > Hi All, > > I am running DPDK version 18.05 > > While running the binaries I see DPDK is failing in initialization, I > checked after putting some logs and found that it is failing at > API *rte_mempool_set_ops_byname* () when it tries to read and compare > rte_mempool_ops_table, highlighted below. > > > /* sets mempool ops previously registered by rte_mempool_register_ops. */ > int > rte_mempool_set_ops_byname(struct rte_mempool *mp, const char *name, > void *pool_config) > { > struct rte_mempool_ops *ops = NULL; > unsigned i; > /* too late, the mempool is already populated. > */rte_mempool_ops_table > if (mp->flags & MEMPOOL_F_POOL_CREATED) > return -EEXIST; > > > > > > > > * for (i = 0; i < rte_mempool_ops_table.num_ops; i++) > { if (!strcmp(name, > rte_mempool_ops_table.ops[i].name)) { ops = > &rte_mempool_ops_table.ops[i]; break; > } }* > > if (ops == NULL) > return -EINVAL; > mp->ops_index = i; > mp->pool_config = pool_config; > return 0; > } > > Can someone from Dev team please explain what is wrong here , why > *rte_mempool_ops_table* is not initialized before using it. > > Here are the logs for DPDK run :- > > 1528317826.271857934 CoordinatorMain.cc:96 in main NOTICE[1]: Command > line: /home/homa/platformlab/RAMCloud/obj.05302018_dpdk/coordinator -C > basic+udp:host=10.10.10.14,port=12246 -l NOTICE --logFile > logs/20180606154345/coordinator.homa4.log --dpdkPort 0 --configDir config > 1528317826.271878426 CoordinatorMain.cc:97 in main NOTICE[1]: Coordinator > process id: 4426 > 1528317826.271935304 DpdkDriver.cc:146 in DpdkDriver NOTICE[1]: Using DPDK > version DPDK 18.05.0 > 1528317826.274933336 FileLogger.cc:100 in write NOTICE[1]: DPDK: EAL: > Detected 32 lcore(s) > 1528317826.274950808 FileLogger.cc:100 in write NOTICE[1]: DPDK: EAL: > Detected 4 NUMA nodes > 1528317826.275127489 FileLogger.cc:100 in write NOTICE[1]: DPDK: EAL: > Multi-process socket /var/run/dpdk/homa4/mp_socket > 1528317826.276794732 FileLogger.cc:100 in write NOTICE[1]: DPDK: EAL: > Probing VFIO support... > 1528317826.276839798 FileLogger.cc:100 in write NOTICE[1]: DPDK: EAL: VFIO > support initialized > 1528317826.630989301 CoordinatorMain.cc:153 in main ERROR[1]: Fatal error > in coordinator at ???: RAMCloud::DriverException: Failed to allocate memory > for packet buffers: No such file or directory, thrown at DpdkDriver at > src/DpdkDriver.cc:172 > > Regards, > Monika > >