|
Can and should you use very large maps with XDP?
Is there anything that can go haywire if an eBPF map gets too big in an XDP program? I am looking into importing a large database of unique IPs (10,000-100,000) into a eBPF hash map in a XDP program
Is there anything that can go haywire if an eBPF map gets too big in an XDP program? I am looking into importing a large database of unique IPs (10,000-100,000) into a eBPF hash map in a XDP program
|
By
liamkelly17@...
·
#1551
·
|
|
I want to messages from iovisor-dev@lists.iovisor.org
I want to messages from iovisor-dev@...
I want to messages from iovisor-dev@...
|
By
李鹏飞
·
#1550
·
|
|
Re: Simple bpf_map reader prog
Can not now to compil my prog, to use bpf_get_mad_fd_by_id for just beggining, because dont know enough how to do it. To compile kern prog a lot of examples, but userspace prog can not find... Can you
Can not now to compil my prog, to use bpf_get_mad_fd_by_id for just beggining, because dont know enough how to do it. To compile kern prog a lot of examples, but userspace prog can not find... Can you
|
By
Иван Иванов
·
#1549
·
|
|
Re: Simple bpf_map reader prog
This is exactly what `bpftool map` is doing. The source code
https://github.com/torvalds/linux/blob/master/tools/bpf/bpftool/map.c
You can find the map you are interested by iterating all the maps in
This is exactly what `bpftool map` is doing. The source code
https://github.com/torvalds/linux/blob/master/tools/bpf/bpftool/map.c
You can find the map you are interested by iterating all the maps in
|
By
Yonghong Song
·
#1548
·
|
|
Simple bpf_map reader prog
Can you give link or some code to understand, how can i get data from maps in c. I saw example, but as i begginer in such programming, i can understand map_fd, obj...etc.
I create xdp prog, inserted
Can you give link or some code to understand, how can i get data from maps in c. I saw example, but as i begginer in such programming, i can understand map_fd, obj...etc.
I create xdp prog, inserted
|
By
Иван Иванов
·
#1547
·
|
|
Re: Xdpoffload list avaliable devices
"Nic Viljoen" <nick.viljoen@...> wrote:
Hint, do remember that you need to download a firmware that support
eBPF from Netronome's homepage. But don't be scared it is painless to
update/use
"Nic Viljoen" <nick.viljoen@...> wrote:
Hint, do remember that you need to download a firmware that support
eBPF from Netronome's homepage. But don't be scared it is painless to
update/use
|
By
Jesper Dangaard Brouer
·
#1546
·
|
|
Re: Xdpoffload list avaliable devices
Yes currently i believe only Netronome NFP based Agilio CX NICs support xdpoffload.
Yes currently i believe only Netronome NFP based Agilio CX NICs support xdpoffload.
|
By
Nic Viljoen
·
#1545
·
|
|
Re: Unexpectedly high latencies are showed by self-written script (bpf_ktime_get_ns issue?)
If start() and stop() execute on two different cpus, their raw time
may be backward
since two different cpus mostly like have slightly different realtime
clock numbers.
Could you this be an issue for
If start() and stop() execute on two different cpus, their raw time
may be backward
since two different cpus mostly like have slightly different realtime
clock numbers.
Could you this be an issue for
|
By
Yonghong Song
·
#1543
·
|
|
Re: Unexpectedly high latencies are showed by self-written script (bpf_ktime_get_ns issue?)
29.11.2018, 07:07, "Y Song" <ys114321@...>:
Thanks for your answer!
I've tried to reproduce this with perf example from issue:
perf record -F 9 --cpu 0 --clockid CLOCK_MONOTONIC -- sleep 1
But
29.11.2018, 07:07, "Y Song" <ys114321@...>:
Thanks for your answer!
I've tried to reproduce this with perf example from issue:
perf record -F 9 --cpu 0 --clockid CLOCK_MONOTONIC -- sleep 1
But
|
By
Aleksei Zakharov
·
#1542
·
|
|
Re: question about per_cpu maps
<palvarez=akamai.com@...> wrote:
Yes. bpf man page severely lags behind the current state. Yes, you can help
make the change. linux-man mailing list is probably proper place to send
<palvarez=akamai.com@...> wrote:
Yes. bpf man page severely lags behind the current state. Yes, you can help
make the change. linux-man mailing list is probably proper place to send
|
By
Yonghong Song
·
#1540
·
|
|
Re: question about per_cpu maps
Good to know, thanks!
There is no mention of the non-preemption in the bpf or tc-bpf man pages
or the bcc tutorials. Is it possible to change that? I would be happy to
add a note about this if
Good to know, thanks!
There is no mention of the non-preemption in the bpf or tc-bpf man pages
or the bcc tutorials. Is it possible to change that? I would be happy to
add a note about this if
|
By
Pablo Alvarez
·
#1539
·
|
|
Re: Unexpectedly high latencies are showed by self-written script (bpf_ktime_get_ns issue?)
Maybe you want to check with bcc issue
https://github.com/iovisor/bcc/issues/728.
Basically there is a kernel bug related to bpf_ktime_get_ns() and it
is fixed in 4.9. Not sure about your kernel
Maybe you want to check with bcc issue
https://github.com/iovisor/bcc/issues/728.
Basically there is a kernel bug related to bpf_ktime_get_ns() and it
is fixed in 4.9. Not sure about your kernel
|
By
Yonghong Song
·
#1538
·
|
|
Re: question about per_cpu maps
eBPF programs are never preempted by the kernel, this allows to keep counters in per_cpu maps without need to use synchronized primitives on them.
This is also guaranteed that there is not preemption
eBPF programs are never preempted by the kernel, this allows to keep counters in per_cpu maps without need to use synchronized primitives on them.
This is also guaranteed that there is not preemption
|
By
Mauricio Vasquez
·
#1537
·
|
|
[PATCHv3 RFC 2/3] tests: add AF_XDP netdev test cases.
The patch adds the test framework for OVS using afxdp.
Most of the test cases are slightly modified from the
existing test cases at system-traffic.at. All the veth
creations, ADD_VETH, are replaced
The patch adds the test framework for OVS using afxdp.
Most of the test cases are slightly modified from the
existing test cases at system-traffic.at. All the veth
creations, ADD_VETH, are replaced
|
By
William Tu
·
#1536
·
|
|
[PATCHv3 RFC 3/3] FIXME: work around the failed cases.
There are still two issues causing some test cases
failed. This patch provides an work-around.
Signed-off-by: William Tu <u9012063@...>
---
lib/dpif-netdev.c | 2 +-
There are still two issues causing some test cases
failed. This patch provides an work-around.
Signed-off-by: William Tu <u9012063@...>
---
lib/dpif-netdev.c | 2 +-
|
By
William Tu
·
#1535
·
|
|
[PATCHv3 RFC 1/3] netdev-afxdp: add new netdev type for AF_XDP
The patch creates a new netdev type called "afxdp" and re-uses some of the
AF_XDP API implementation from xdpsock_user.c at linux sample code.
By default, it binds a device's queue 0 and uses the
The patch creates a new netdev type called "afxdp" and re-uses some of the
AF_XDP API implementation from xdpsock_user.c at linux sample code.
By default, it binds a device's queue 0 and uses the
|
By
William Tu
·
#1534
·
|
|
[PATCHv3 RFC 0/3] AF_XDP netdev support for OVS
The patch series introduces AF_XDP support for OVS netdev.
AF_XDP is a new address family working together with eBPF.
In short, a socket with AF_XDP family can receive and send
packets from an
The patch series introduces AF_XDP support for OVS netdev.
AF_XDP is a new address family working together with eBPF.
In short, a socket with AF_XDP family can receive and send
packets from an
|
By
William Tu
·
#1533
·
|
|
minutes: IO Visor TSC/Dev Meeting
Thanks all for joining in to the call today. As usual, here are my notes.
=== Discussion ===
Jiong:
Continuing work on jmp32
- some work on verifier side
- needs to work on test support - new test
Thanks all for joining in to the call today. As usual, here are my notes.
=== Discussion ===
Jiong:
Continuing work on jmp32
- some work on verifier side
- needs to work on test support - new test
|
By
Brenden Blanco
·
#1532
·
|
|
question about per_cpu maps
Dear eBPF community
If I understand correctly, per_cpu maps are meant to avoid threading
issues, and for example the need to call BPF_XADD to keep counters safe.
There is something I am unclear
Dear eBPF community
If I understand correctly, per_cpu maps are meant to avoid threading
issues, and for example the need to call BPF_XADD to keep counters safe.
There is something I am unclear
|
By
Pablo Alvarez
·
#1531
·
|
|
Re: Recommended LLVM version for bcc 0.7.0
All LLVM versions ( >= 3.7.1) should work for x86, but to use some features
like BPF debug=8 to dump the source embedded byte code, you need
llvm 6.0 or later.
All LLVM versions ( >= 3.7.1) should work for x86, but to use some features
like BPF debug=8 to dump the source embedded byte code, you need
llvm 6.0 or later.
|
By
Yonghong Song
·
#1530
·
|