From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout3.w1.samsung.com (mailout3.w1.samsung.com [210.118.77.13]) by dpdk.org (Postfix) with ESMTP id B891D2BB9 for ; Wed, 7 Jun 2017 16:36:46 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OR600L1ZLX8HQ10@mailout3.w1.samsung.com> for dev@dpdk.org; Wed, 07 Jun 2017 15:36:44 +0100 (BST) Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170607143644eucas1p20afa566613484dedda3699bca05b2472~F3bEvV38s0758807588eucas1p2v; Wed, 7 Jun 2017 14:36:44 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2.samsung.com (EUCPMTA) with SMTP id F3.F8.04459.B7F08395; Wed, 7 Jun 2017 15:36:43 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170607143643eucas1p10bce80dca22034efc6402d5944a6a0ed~F3bD-9PDp1362513625eucas1p1e; Wed, 7 Jun 2017 14:36:43 +0000 (GMT) X-AuditID: cbfec7f1-f796e6d00000116b-3a-59380f7b9dcc Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 9A.47.17452.B7F08395; Wed, 7 Jun 2017 15:36:43 +0100 (BST) Received: from [106.109.129.180] by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OR600I4SLX6UUA0@eusync3.samsung.com>; Wed, 07 Jun 2017 15:36:43 +0100 (BST) To: Bruce Richardson , dev@dpdk.org From: Ilya Maximets Message-id: Date: Wed, 07 Jun 2017 17:36:41 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-version: 1.0 In-reply-to: <20170607104743.275149-2-bruce.richardson@intel.com> Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKIsWRmVeSWpSXmKPExsWy7djPc7rV/BaRBqdu2ljcWGVv8e7TdiaL K+0/2R2YPX4tWMrqsXjPSyaPvi2rGAOYo7hsUlJzMstSi/TtErgynhz5wFZwhKvi5wevBsYP HF2MnBwSAiYSyzuOMkHYYhIX7q1n62Lk4hASWMoosfPTVBYI5zOjxIpzexm7GDnAOv63C0PE lzFKvJv+CarjBaPEsv1fwUYJC9hLzDi/gBHEFgGyr+8+xg5iswnoSJxafQQszitgJ9F4fSVY PYuAqsSHhRvA4qICERLX52yBqhGU+DH5HguIzSngKDHjxGGwOcwCmhIvvkxigbDlJTavecsM 8cJrNomHH5MgDpWV2HQAKuwi0XBiC9SXwhKvjm9hh7BlJDo7DjKB3C8h0Mwo0bDqEiOEM4FR 4kvzcqgOe4lTN68yQSzjk5i0bTozxAJeiY42IYgSD4nOH1OZIMKOEi2TuSBhMoVRYv35fqYJ jHKzkLwzC8kLs5C8sICReRWjSGppcW56arGRXnFibnFpXrpecn7uJkZg5J/+d/zjDsb3J6wO MQpwMCrx8ArsMosUYk0sK67MPcQowcGsJMLrx2cRKcSbklhZlVqUH19UmpNafIhRmoNFSZyX 69S1CCGB9MSS1OzU1ILUIpgsEwenVANj2dpz4rOmre6Y/zR0trqzjLCpBusRr4MzWk3mcwh/ ZjjQk69bp83N8NGCmyWh5If/biVWSfby4vV9P15lHGOZkjKbNdMxs1X+sJPiDj0rZ8n5AfXq F5idTgRFnOZtmGNQk/xwuaOlecHFzx3xDvEKyl0i3pu2R7VU/MvLeX9y1X4d6bKOrUosxRmJ hlrMRcWJAJmpTlL4AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpikeLIzCtJLcpLzFFi42I5/e/4Vd1qfotIg9dLpSxurLK3ePdpO5PF lfaf7A7MHr8WLGX1WLznJZNH35ZVjAHMUW42GamJKalFCql5yfkpmXnptkqhIW66FkoKeYm5 qbZKEbq+IUFKCmWJOaVAnpEBGnBwDnAPVtK3S3DLeHLkA1vBEa6Knx+8Ghg/cHQxcnBICJhI /G8X7mLkBDLFJC7cW8/WxcjFISSwhFHizPaFrCAJIYEXjBJ/9uuB2MIC9hIzzi9gBLFFgOzr u4+xQ9Q4SPw5/hosziagI3Fq9REwm1fATqLx+komEJtFQFXiw8INYHFRgQiJh5272CFqBCV+ TL7HAmJzCjhKzDhxmB3kNmYBdYkpU3JBwswC8hKb17xlnsDIPwtJxyyEqllIqhYwMq9iFEkt Lc5Nzy021CtOzC0uzUvXS87P3cQIDP9tx35u3sF4aWPwIUYBDkYlHl6BXWaRQqyJZcWVuYcY JTiYlUR4/fgsIoV4UxIrq1KL8uOLSnNSiw8xmgK9MJFZSjQ5HxibeSXxhiaG5paGRsYWFuZG RkrivCUfroQLCaQnlqRmp6YWpBbB9DFxcEo1MIo7pgpnuq/fs8zAuqtL7ob/4+MtCupHE3K9 3DUcefh9zuy7oqN5h2vRLf6+VYobpbfvftMp8UptPnvBoSbZDdtcSvfmr0izu/b/eV/g7Iht VTFcMVK10wuP3S41mfjIzWpq8WVjlu+LOKWdZvQmrlylb8+s9KLt1V3Wpcxzf1bMZc8U2iaj pcRSnJFoqMVcVJwIABDUuLWVAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170607143643eucas1p10bce80dca22034efc6402d5944a6a0ed X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?SWx5YSBNYXhpbWV0cxtTUlItVmlydHVhbGl6YXRpb24gTGFi?= =?UTF-8?B?G+yCvOyEseyghOyekBtMZWFkaW5nIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?SWx5YSBNYXhpbWV0cxtTUlItVmlydHVhbGl6YXRpb24gTGFi?= =?UTF-8?B?G1NhbXN1bmcgRWxlY3Ryb25pY3MbTGVhZGluZyBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0NJU0hRG0MxMEdEMDFHRDAxMDE1NA==?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170607143643eucas1p10bce80dca22034efc6402d5944a6a0ed X-RootMTR: 20170607143643eucas1p10bce80dca22034efc6402d5944a6a0ed References: <20170607104743.275149-2-bruce.richardson@intel.com> Subject: Re: [dpdk-dev] [dpdk-dev,RFC] build for DPDK with meson and ninja X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2017 14:36:46 -0000 Hi, Bruce. That's interesting approach. I tried this on my system and it works. I also tried to do some modifications to add conditional support for libnuma in rte_eal to build with my patches applied. It looks promising. That is what I've got: ------------------------------------------------------------------------- --- a/lib/librte_eal/linuxapp/eal/meson.build +++ b/lib/librte_eal/linuxapp/eal/meson.build @@ -46,8 +46,12 @@ if dpdk_conf.has('LIB_LIBRTE_EAL_XEN_DOM') sources += ['eal_xen_memory.c'] endif +cc = meson.get_compiler('c') +libnuma = cc.find_library('numa', required: false) +dpdk_conf.set10('RTE_LIBRTE_EAL_NUMA_AWARE_HUGEPAGES', libnuma.found()) + eal_lib = library('rte_eal', sources, - dependencies: dependency('threads'), + dependencies: [dependency('threads'), libnuma], include_directories : [global_inc, eal_inc, local_inc], c_args: '-D_GNU_SOURCE', link_args: '-ldl', ------------------------------------------------------------------------- Result: Library numa found: YES and #define RTE_LIBRTE_EAL_NUMA_AWARE_HUGEPAGES 1 (NO and 0 respectively with wrong library) Build works. I didn't try to install the binaries. One found issue is that where is no 'meson' package in RHEL 7. I checked build using meson from git. Best regards, Ilya Maximets.