From owner-freebsd-net@freebsd.org Fri May 14 06:41:45 2021 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 32C7A63ACC9 for ; Fri, 14 May 2021 06:41:45 +0000 (UTC) (envelope-from ftk@nanoteq.com) Received: from mailguard.liquidtelecom.co.za (delivery.mailguard.neotel.co.za [41.168.2.25]) by mx1.freebsd.org (Postfix) with ESMTP id 4FhJpb2YmWz4n6L; Fri, 14 May 2021 06:41:42 +0000 (UTC) (envelope-from ftk@nanoteq.com) Received: from SEC-NGP-AG10 ([192.168.202.40]) by mailguard.liquidtelecom.co.za with Microsoft SMTPSVC(7.5.7601.17514); Fri, 14 May 2021 08:41:09 +0200 Received: from sec-ngp-spt03.e-purifier.com ([192.168.201.1]) by SEC-NGP-AG10.neotel.e-purifier.co.za with Microsoft SMTPSVC(7.5.7601.17514); Fri, 14 May 2021 08:41:08 +0200 Received: from localhost (localhost [127.0.0.1]) by sec-ngp-spt03.e-purifier.com (Postfix) with ESMTP id 50FCF3C0476; Fri, 14 May 2021 08:41:39 +0200 (SAST) X-Virus-Scanned: by SpamTitan at e-purifier.com Received: from sec-ngp-spt03.e-purifier.com (localhost [127.0.0.1]) by sec-ngp-spt03.e-purifier.com (Postfix) with ESMTP id CD1A93C03DE; Fri, 14 May 2021 08:41:33 +0200 (SAST) Received: from NTQ-EXC.nanoteq.co.za (unknown [41.170.5.18]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sec-ngp-spt03.e-purifier.com (Postfix) with ESMTPS id BF0BF3C0428; Fri, 14 May 2021 08:41:33 +0200 (SAST) Received: from NTQ-EXC.nanoteq.co.za ([fe80::a5b3:4700:5af3:78b2]) by NTQ-EXC.nanoteq.co.za ([fe80::a5b3:4700:5af3:78b2%12]) with mapi id 14.03.0513.000; Fri, 14 May 2021 08:41:33 +0200 From: Francois ten Krooden To: Mark Johnston CC: Konstantin Belousov , "freebsd-net@freebsd.org" Subject: RE: Vector Packet Processing (VPP) portability on FreeBSD Thread-Topic: Vector Packet Processing (VPP) portability on FreeBSD Thread-Index: AQHXRaZHkx80/avbnEmSwhKdxlugfareNk8w///pJQCABG1tgA== Date: Fri, 14 May 2021 06:41:32 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US, en-ZA Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 14 May 2021 06:41:08.0848 (UTC) FILETIME=[1F4CFF00:01D7488C] x-archived: yes x-dbused: RGF0YSBTb3VyY2U9MTkyLjE2OC4yMDEuMjc= X-Rspamd-Queue-Id: 4FhJpb2YmWz4n6L X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of ftk@nanoteq.com has no SPF policy when checking 41.168.2.25) smtp.mailfrom=ftk@nanoteq.com X-Spamd-Result: default: False [0.43 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[41.168.2.25:from]; RCVD_IN_DNSWL_LOW(-0.10)[41.168.2.25:from]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[Nanoteq.com]; ARC_NA(0.00)[]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.06)[0.064]; SPAMHAUS_ZRD(0.00)[41.168.2.25:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.47)[0.467]; R_SPF_NA(0.00)[no SPF record]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:36937, ipnet:41.168.0.0/17, country:ZA]; RCVD_COUNT_SEVEN(0.00)[7]; MAILMAN_DEST(0.00)[freebsd-net]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2021 06:41:45 -0000 On Tue, May 11, 2021 at 12:43:10PM +0000, Francois ten Krooden wrote: > > On Tue, May 11, 2021 at 12:43:10PM +0000, Francois ten Krooden wrote: > > On Monday, 10 May 2021 16:10 Konstantin Belousov wrote: > > > > > > > On Mon, May 10, 2021 at 11:08:18AM +0000, Francois ten Krooden > wrote: > > > > 3. What are suitable alternatives for reading information from > > > > procfs and > > > sysfs on FreeBSD? > > > Understand what information is obtained, then what for is it > > > actually used, then match it against equivalent FreeBSD approach, > > > then gather the required information. > > > > Thank you. This was basically what we suspected. > > One of the ones we are unsure about is what the equivalent of > /proc/self/pagemap on Linux would be. > > The one idea we had is using procstat_getvmmap from libprocstat, but > haven't finished investigating yet. > > I believe DPDK's libeal uses /proc/pagemap to look up the physical addres= s > of large page mappings. Assuming you want to do the same thing, there is > the MEM_EXTRACT_PADDR /dev/mem ioctl. It was added specifically for > DPDK. See the mem(4) man page for details on its usage. > Thank you Mark. Will have a look at that. Regards Francois Important Notice: This e-mail and its contents are subject to the Nanoteq (Pty) Ltd e-mail le= gal notice available at: http://www.nanoteq.com/AboutUs/EmailDisclaimer.aspx