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 address > 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 legal notice available at: http://www.nanoteq.com/AboutUs/EmailDisclaimer.aspx _______________________________________________ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"