DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] How to get "--base-virtaddr" when using DPDK
@ 2017-06-15 18:00 Junguk Cho
  2017-06-16  8:54 ` Bruce Richardson
  0 siblings, 1 reply; 2+ messages in thread
From: Junguk Cho @ 2017-06-15 18:00 UTC (permalink / raw)
  To: users, dev

Hi,

I have the same situation which is explained here (
https://github.com/collectd/collectd/issues/2284).

So, I would like to try "--base-virtaddr" option.
I tried to use "struct rte_memseg *m = rte_eal_get_physmem_layout()" option
based on (http://dpdk.org/doc/api/structrte__memseg.html).
However, it always  returns different number.

How do I get virtual address value to use it as an input of "base-viraddr"?

Thanks,
Junguk

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] How to get "--base-virtaddr" when using DPDK
  2017-06-15 18:00 [dpdk-dev] How to get "--base-virtaddr" when using DPDK Junguk Cho
@ 2017-06-16  8:54 ` Bruce Richardson
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Richardson @ 2017-06-16  8:54 UTC (permalink / raw)
  To: Junguk Cho; +Cc: users, dev

On Thu, Jun 15, 2017 at 12:00:16PM -0600, Junguk Cho wrote:
> Hi,
> 
> I have the same situation which is explained here (
> https://github.com/collectd/collectd/issues/2284).
> 
> So, I would like to try "--base-virtaddr" option.
> I tried to use "struct rte_memseg *m = rte_eal_get_physmem_layout()" option
> based on (http://dpdk.org/doc/api/structrte__memseg.html).
> However, it always  returns different number.
> 
> How do I get virtual address value to use it as an input of "base-viraddr"?
> 
Hi,

there is no one way to get a virtual address to pass in here - if you
are aware of some suitable values just pass them directly. What I have
done in the past in a multi-process system, is to run the primary
normaly, and then when running the failing secondary turn up the log
level so I can see the mapped addresses before it fails. Then I record
the starting address that the secondary uses, and re-run the primary
passing that in as the base-virtaddr hint.

Regards,
/Bruce

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-16  8:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-15 18:00 [dpdk-dev] How to get "--base-virtaddr" when using DPDK Junguk Cho
2017-06-16  8:54 ` Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).