From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0077.outbound.protection.outlook.com [104.47.42.77]) by dpdk.org (Postfix) with ESMTP id 505C91B2CB for ; Fri, 17 Nov 2017 02:24:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=multapplied.onmicrosoft.com; s=selector1-multapplied-net; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mq+SLg0s2d59QeqF3wmeGSCnCJQ52hEjn6Bjp1EF89E=; b=aQYzm9KCA7J0R7DbT3QBHO25P1QTdyJnB6ShF/xPUUXcPWEts/872qG4v8TQNGWvPHf8njJS5ntBzpF+/yJK53R7ytkhIDiV2VaDwWveU2lCdFTJE7s1MsYAhDkcEb0qRN8BOx4540YzAXyMna2SsfD+91QTcAhbKPWVaHWk67A= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ian.trick@multapplied.net; Received: from [10.100.0.160] (74.121.35.88) by MWHPR17MB1984.namprd17.prod.outlook.com (10.173.100.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.239.5; Fri, 17 Nov 2017 01:24:08 +0000 From: Ian Trick To: users@dpdk.org Cc: cristian.dumitrescu@intel.com Message-ID: Date: Thu, 16 Nov 2017 17:24:03 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [74.121.35.88] X-ClientProxiedBy: BN6PR11CA0042.namprd11.prod.outlook.com (10.173.25.28) To MWHPR17MB1984.namprd17.prod.outlook.com (10.173.100.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0fae7ccb-7558-44ef-5a7e-08d52d59e6c0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4603075)(4627115)(201702281549075)(2017052603199); SRVR:MWHPR17MB1984; X-Microsoft-Exchange-Diagnostics: 1; MWHPR17MB1984; 3:6DpM9IXputmu1qm2jJBcQSUZKtTuwxUBKtq7VhpY7nwD8GSLafL3dn0S+rvS5g32uVZoBKW7G7AwsWfWiqo0NEp97631DqZZWPVh734IHFwG0eJ8lKFSvQy6hfPufLrhS0IUvWCVUHhR7O0RVYjWbAH+8tsWz9GP+el5o/y0ZWd948cNQQn3X56YxlQ5Pb5idLstmgYgaaxqvIm20G5P/k/reiGaIAUdGB6lhVdBjXUTC2Xj/tkiI3MrbHkr0Zy/; 25:gA7+Z/S8P7UR2SKobEQr9agal4qHLPwwNE7BuKy2kzwXwDwWqoNeZcDXPCk0lrPtkFeligM5d6Z2OvCHrbykYvfpqHIHzjTq15HbiQdT6iw6iStVQtlSm/Q6aPsEtGF34AKM9F7I1IN+6N0nCw9zUCcjxs+mUA1O1X9XcsDKzoXsXpQ7Gxt0MKeAkVbTcL+FR5AXkY47Pny90UHLp4m4k56Q9QXlWN00jjqauL6Npzy9Cpad1Ugj84mqvZoncRb4RoN7GyFFM8Op8AgL7ICnc3RJppgl9H80HEzDyChxwA1NHC1IocLp+Gu9T9kPBlB/392/qK+f1eBc2/sM7KEoRQ==; 31:WFZW47w9PF1DVnL9Biu4pN3DEhyOwhPmoc6eeHds8eaSPIMDSCpupFbxmWtDVHaKzXm+NAFq2skJMQ/DAW722Lq5pYaAPVCjYaNTc/GrCUwpo0R1KPOdF82vowWT3r7MeZZRx41B3AhOdK4rur0Kdkqf/8GZE1WtlbfMf6LXQW8WuB9skI/3zzCHdoH93zuxKB+gzgkoyyTJrkuhpuW6QaiJxNZMv3LQRSRpk0497gs= X-MS-TrafficTypeDiagnostic: MWHPR17MB1984: X-Microsoft-Exchange-Diagnostics: 1; MWHPR17MB1984; 20:iPS6jkLWvVB8nOUCOxIuozdvaoMAXh9r481tub44NeBMyCRm52uMDnmvczBknyGt9uK7/9IYny2L0r8RlllalxAu9tILsEiB0x1K+/XpMt0ciN4aa1hggE8Z5eJ2YAtIXNWahTC6Le1P+Q6Ntz/0dOMZjEQT9kUMXcJPDxE/aI1F5ltdLgxeB8H62a2xNzXT4cxLjrtKzese1Wl36VbPrqF/EqVPnSwdNIZ+bwrVaAg9WgEO4TwB3TLlIpzXhnz8; 4:c2tsHghEKq794zMOrSRLzTkjmYpBri80kULLWHpeDmDCQ24N5KXtH4PjkA7P+e/WcHRIn6CwvbkMBqxIrGLGvhrOl1peW0mq/Aqf6jjvBfFr+mXdeWZ9qvlh52u5L+mBGlJ/sWOUpsYaewRuPDJgqxofknlI7IXG66azl6zUpW8VMJVCadKm2AkeqbtSUteakOECeYBKDPF+8y5g/+zyBzWsuUtG8JLaCdYw3F/cGDTUQQ03G2R/0U6zFs/xblb0Wqry6UtEs+EpZrmEiO6jKQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231022)(100000703101)(100105400095)(10201501046)(6041248)(20161123555025)(20161123560025)(201703131423075)(201703061421075)(20161123558100)(20161123564025)(2016111802025)(20161123562025)(6072148)(6043046)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR17MB1984; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR17MB1984; X-Forefront-PRVS: 049486C505 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(6009001)(346002)(376002)(189002)(199003)(58126008)(68736007)(8936002)(54356999)(53936002)(6116002)(36756003)(4326008)(5660300001)(50986999)(90366009)(23676003)(2351001)(189998001)(31696002)(65806001)(97736004)(86362001)(3846002)(105586002)(16526018)(66066001)(65956001)(77096006)(47776003)(2906002)(83506002)(25786009)(16576012)(6486002)(8676002)(33646002)(508600001)(106356001)(64126003)(7736002)(31686004)(305945005)(6916009)(81156014)(101416001)(2361001)(6666003)(81166006)(50466002)(230700001)(65826007); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR17MB1984; H:[10.100.0.160]; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: multapplied.net does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjE3TUIxOTg0OzIzOlgyTGJneDMwczdFMkJ3eFZkVHRIUGVIbXVK?= =?utf-8?B?Z3p3b1RrajIydmQ0MTkvSzVnUThtRHl4UHllUlpXbnNWdG9KSG9xOFZIZ2RB?= =?utf-8?B?VVZSMjU3SHZGbXhROTVXazJnU1dKSVFsSzNBRWJ2OEhxOWt6ZW5KSStDSGw3?= =?utf-8?B?Yy9mWGFkRXBENEpxRmthbDNrZEdxMmNQOFBobEtQQzY3VmF2OUZ1elg3Um92?= =?utf-8?B?a2JJK2NnSW1kc1pvMXBFMjZjajFLaEthL2RpQmtuTjBybHh4dGI2ODdjd1F4?= =?utf-8?B?L0NHNGtxYXFNRXM4bFRORHQ5bTcxY0xlMkc4MEJ5T1dlTmZGNzRIcGpBaVBv?= =?utf-8?B?U2NHNXNCTGtxbnhuNlhzMFJLTUFZR0hwNXZ4M2U2KzlKYTNSYVVJOXM4R2tN?= =?utf-8?B?U1lqY25vTXdreURpa0dqRDlxeW91dnFRb0tnZS9MUlZocjFEcC9sWTBKUlRu?= =?utf-8?B?NDFyNjRsUXpRZXhCak5yV1NZZmx0OHlUOGh5N3pkUDNDTGU5S2FlU0FWWlMr?= =?utf-8?B?cUZnUnZLY1BhUlpiQkY3ZDlaYXFuZU9aMmpkU3laWTJaNENwYkhucnVGT3Jq?= =?utf-8?B?V2F6VE5VcnB1dFVNZU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rhMiDQCKvx+ciu4rLNrFLfmsibthAk3UjRO9Hk5BPgTj3MyU31hiD5/hcGUD3k7FMlfSVM/VD6/IYCoftIMK1I//tEAzUCiAbmdSQ3W043HFKDoz SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: multapplied.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2017 01:24:08.2310 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0fae7ccb-7558-44ef-5a7e-08d52d59e6c0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 10c26ea1-9e95-414d-91d0-c44adf533c85 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR17MB1984 X-Mailman-Approved-At: Fri, 17 Nov 2017 18:48:21 +0100 Subject: [dpdk-users] qos_sched in DPDK 17.11.0 fails to initialize mbuf pool 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, 17 Nov 2017 01:24:12 -0000 Hi. I'm having an issue starting the qos_sched example program. # ./examples/qos_sched/build/qos_sched --no-huge -l 1,2,3 --vdev net_af_packet0,iface=eth1 -- --pfc "0,0,2,3" --cfg examples/qos_sched/profile_ov.cfg EAL: Detected 16 lcore(s) EAL: Probing VFIO support... EAL: Started without hugepages support, physical addresses not available EAL: PCI device 0000:08:00.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:10d3 net_e1000_em PMD: Initializing pmd_af_packet for net_af_packet0 PMD: net_af_packet0: AF_PACKET MMAP parameters: PMD: net_af_packet0: block size 4096 PMD: net_af_packet0: block count 256 PMD: net_af_packet0: frame size 2048 PMD: net_af_packet0: frame count 512 PMD: net_af_packet0: creating AF_PACKET-backed ethdev on numa socket 0 EAL: Error - exiting with code: 1 Cause: Cannot init mbuf pool for socket 0 This is version 17.11.0 from the repo. My RTE_TARGET is x86_64-native-linuxapp-clang. eth1 is a veth. I've tried running with `-m` and using a low value but the issue still happens. >>From what I can tell, rte_pktmbuf_pool_create() is failing and rte_errno is set to EINVAL. In librte_mempool/rte_mempool.c, the function rte_mempool_populate_virt() is succeeding this test and returning -EINVAL: if (RTE_ALIGN_CEIL(len, pg_sz) != len) return -EINVAL; In that context, len is mz->len, the length of a memzone passed by the caller, rte_mempool_populate_default(). Which got it here: mz = rte_memzone_reserve_aligned(mz_name, size, mp->socket_id, mz_flags, align); /* not enough memory, retry with the biggest zone we have */ if (mz == NULL) mz = rte_memzone_reserve_aligned(mz_name, 0, mp->socket_id, mz_flags, align); This fails the first call, and succeeds the second when it passes 0 as the size. memzone_reserve_aligned_thread_unsafe(), in librte_eal/common/eal_common_memzone.c, gets the length this way: requested_len = find_heap_max_free_elem(&socket_id, align); So the align value is 4096. But the value returned by find_heap_max_free_elem() isn't aligned to that -- I think? Since it fails the check later on. I'm not sure if this is a thing with my environment where I don't have enough memory? (Although I would have expected a different error for that.) Or I don't have the right program arguments? Or one of these functions isn't doing what it's supposed to?