All of lore.kernel.org
 help / color / mirror / Atom feed
* uprobe overhead when specifying a pid
@ 2024-11-13 23:33 Sebastião Santos Boavida Amaro
  2024-11-14  9:08 ` Jiri Olsa
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastião Santos Boavida Amaro @ 2024-11-13 23:33 UTC (permalink / raw)
  To: bpf

Hi,
I am using:
libbpf-cargo = "0.24.6"
libbpf-rs = "0.24.6"
libbpf-sys = "1.4.3"
On kernel 6.8.0-47-generic.
I contacted the libbpf-rs guys, and they told me this belonged here.
I am attaching 252 uprobes to a system, these symbols are not regularly 
called (90ish times over 9 minutes), however, when I specify a pid the 
throughput drops 3 times from 12k ops/sec to 4k ops/sec. When I do not 
specify a PID, and simply pass -1 the throughput remains the same (as it 
should, since 90 times is not significant to affect overhead I would 
say). It looks as if we are switching from userspace to kernel space 
without triggering the uprobe.
Do not know if this is a known issue, it does not look like an intended 
behavior.

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

end of thread, other threads:[~2024-11-19 13:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-13 23:33 uprobe overhead when specifying a pid Sebastião Santos Boavida Amaro
2024-11-14  9:08 ` Jiri Olsa
2024-11-19 13:30   ` Sebastião Santos Boavida Amaro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.