From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CCDBBA0352; Mon, 4 Nov 2019 13:59:48 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0A61837A2; Mon, 4 Nov 2019 13:59:48 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 2C78D378E for ; Mon, 4 Nov 2019 13:59:46 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xA4CtUsC021167; Mon, 4 Nov 2019 04:59:44 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=D5irXMzPlk74Et9qZb4hn1P5lgk/r3O/0RfvNDoAHp4=; b=ae48JSuaed98b2zUqeFUvYPzO31iHcTMWpfzX3sBeqLuFifyZF180luQzBfapkxzyD7Y MCSaZ0EjRwGK/XOl9GTnbmEXVuEzS5H4ptIbL3osFhL4UBOWKt+M0ZLywCXLNEoNvtle R4XUzPlIG1N3bVAM2bGe3dfvyyFtgClpumQjzda4Z4Hud+joldYz2CnI7Qe90IMK4cvT YAcHnKjQcZ/DBonBfj1txT3AaOrfBMzQLKTJtUri7HAsbvzNRjxjVdlSXsZzjJnYxGzA kWLTKHQXXyRp6T/E4NwNNNXiDWxqh6dpnLchoTHaCUfKPSA5T5hB/4IiwLyKFDgE5kZs sQ== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2w19amna7g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 04 Nov 2019 04:59:44 -0800 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 4 Nov 2019 04:59:43 -0800 Received: from NAM01-BN3-obe.outbound.protection.outlook.com (104.47.33.55) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 4 Nov 2019 04:59:42 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PG71t/L49BhtUsl1lUNErLvCtxpT53zDKDFi657rcZApulExQ+6FmsrXYHwCtvxGhIAki8wdIWHkJLulpPngX/g1ELOCzDLSPcbIbXWc0fJ5ivU96jie/OJNmHtM18F6QmTvQgXuopVmdiqc9yRGqEJXs4Lx8cvrNM9F7TTUpIeeedycjUVu/A5pViLiH6ZBeJymD6C5ul3Mkgfxb9mVhoQ/dAhRax6gXKo68FQ0N1mB/ljCn01fGQSxSTrq8DY1tUBKiVUnspJudq9WcrTYLAYzRyoxl4cbJt692HHRAJdgzLEv6ECOohmyixoANXc4cvm2xvGki77MEMqohJeFuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D5irXMzPlk74Et9qZb4hn1P5lgk/r3O/0RfvNDoAHp4=; b=Vnv3Etxnh73KczrPMKJCLWatbt3a8VqjHfp2W+PX/S8Oy+jOQ/QeG9tnQ9HtqAXLoVXNV/Iq0wq1LXch4bX/KvuE+sbi26EnFJin4OKtViH8FdFljzGu5DllI4p11i/LwFw+hP5ivZJA+w0Fvaiom1nZ02PqF7Yy+IBVQFv5h2hnWKxXraBelEGcPhb8vzB4eTz0dRyPanBqd3si2HFyo+R4rQzpuiid8SAnNxo9aKvxOk1rbZxl/AK2VoKitWpQJOwi9XPgTkfMznKc7P3T2rgvKZae30pHNE64uJKXIiUpRdG00D1IK4rLJpcq1+q5iyvEmtXKM0Lwo4B7C/y5nQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D5irXMzPlk74Et9qZb4hn1P5lgk/r3O/0RfvNDoAHp4=; b=by5iDcsM8+6SMO93+JnFHgrZAxISNN7BicxPMO09+j7XB6EW1ykSe9AsIvKyn1v4btwxIuExokFdqTZjgbgSih3q66Opv+/rct+8dGKz2c7D5bPKaHfEEaH3ZEfVFJP7D6fIPiNQ48Nl/eKVzGD927Z29CgVZVMz0QTI/nx1/Gs= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2534.namprd18.prod.outlook.com (20.179.91.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2408.24; Mon, 4 Nov 2019 12:59:41 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::f5f7:1c5e:a7b:f719]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::f5f7:1c5e:a7b:f719%3]) with mapi id 15.20.2408.024; Mon, 4 Nov 2019 12:59:40 +0000 From: Jerin Jacob Kollanukkaran To: "dev@dpdk.org" , "anatoly.burakov@intel.com" , "bruce.richardson@intel.com" , Olivier Matz Thread-Topic: Limiting packet buffers under 4GB Thread-Index: AdWTD37qZe84JeS0Sz6birNs2IUhfQ== Date: Mon, 4 Nov 2019 12:59:40 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [171.76.82.7] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5730b353-9f13-4b96-d306-08d76126db1b x-ms-traffictypediagnostic: BYAPR18MB2534: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 0211965D06 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(396003)(39850400004)(346002)(136003)(366004)(189003)(199004)(4744005)(2201001)(66066001)(86362001)(55016002)(9686003)(8936002)(2501003)(81166006)(14454004)(2906002)(52536014)(81156014)(66946007)(14444005)(256004)(33656002)(3846002)(6116002)(25786009)(71190400001)(7736002)(478600001)(99286004)(316002)(8676002)(110136005)(71200400001)(5660300002)(26005)(76116006)(66446008)(6506007)(66476007)(66556008)(64756008)(186003)(102836004)(74316002)(7696005)(476003)(6436002)(486006)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2534; H:BYAPR18MB2424.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FSiJXkcKrVvtgx5Z9BkuUmzOqDcn/liRoJYFdCBJ6l89jCG7kBS+uKD2oZPE/nLnG80Nsa8Ds8a1T4ucLRy9XeiC3uYMZPmZKAP2coLhntBfvPj+l0iAEYBx/bjIKwWI0xsA9r415ZEnq2tvIgnevMBOKBxeJv1968V/Sn+be+N8evtHcP5ldu244oQOLJ3docbqJ44J46yLbb8UeeCbpQBUPztrdaU0XOD/hmcEmVoWaFmIz5XwnbXtMmkSMDyYIiZ/w0GLYwdwPTuJ7NsnXzU9YhgR571MliD+NgFcC7hYtp+89vNHYcC/Ix0KkkUyZXqnDfauRLgnMPxiczL2EOnNw81g4him1sjIRRFHDS6VAv7cd6fS4pZ4wVSHH/VA8HplFx2eimt6Quyk8px5+Y1V/V+5D51DWVMQKpurm+W85Fh/yIvR9+l6uM5KKKV+ x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 5730b353-9f13-4b96-d306-08d76126db1b X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Nov 2019 12:59:40.6641 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: UrB9x8D0oz091CL4b7Yrv4BmJMhv66OVCUOqvI86XT3AjIAA+SIkKsbvjVwCstodISFbR8zfNmr6Pv0s0LCRmA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2534 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-11-04_08:2019-11-04,2019-11-04 signatures=0 Subject: [dpdk-dev] Limiting packet buffers under 4GB 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Anatoly and All, Just wondering what would the side effect of lowering a _bit_ of static ui= nt64_t baseaddr =3D 0x100000000 in=20 lib/librte_eal/common/eal_common_memory.c for 64bit systems. Use case: If we _reserve_ VA address which less than 2^32 ONLY for packet buffers(mbu= f), The use cases like Pipeline, where need to transfer packets from one core to another cores can= use ring element size of 4B(32bit) which will reduce the a lot of read and write to enable = better performance. i.e Since upper 32bits will be zero, it is matter of typecasting of item to= read and write from/to ring. Essentially memcpy overhead for moving pointers over the ring will be half. Is baseaddr set to 2^32 to make sure that secondary process will have more = _chance_ of getting the baseaddr in order for DPDK to work? Thoughts on above? On general to reduce the mbuf pointer storage requiremen= t for ring? =20