public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* udp.sendmsg
@ 2016-07-10 20:58 webman
  2016-07-11 10:09 ` udp.sendmsg Timo Juhani Lindfors
  2016-07-19 14:41 ` udp.sendmsg Frank Ch. Eigler
  0 siblings, 2 replies; 9+ messages in thread
From: webman @ 2016-07-10 20:58 UTC (permalink / raw)
  To: systemtap

Hi !

Not sure, if this is a developer list or something I can ask
about some unexpected behavior of Systemtap.

I am using Systemtap 2.6/0.159 on debian 8.5 with kernel
3.16.0-4.

My script does not produce any errors, but it definitively
does not catch all packets! The core is just this:

probe udp.sendmsg {
  if ( dport == 53 ) {
    printf ("PID %5d (%s) sent UDP to %15s 53\n", pid(), execname(), daddr)
  }
}

This should provide me with all processes which make DNS calls (per UDP).

This is similar to examples on the examples site. What I see are packets
bei user applications like iceweasel and thought, everything ok. Wrong.
Then I took nslookup and it's call was NOT to see. I fired up a tcpdump for
dst port 53 and this show the nslookup's outgoing call. There is plenty
of memory free (usually about 8 GB) und loadavg is below 0.5
Additionally, outgoing calls from LXC containers are not seen - but they
dont use remote tunneled ports, they use the local bridges. tcpdump
shows these packets too.

It not easy to provide a complete environment, but to note, that there
is additionally to regard:
- a mix of total 10 network interfaces on the box
- 3 x eth'xx (physical) in use
- OpenVswitch, which provides two bridges with ports to a total of that 10.
- the server uses port bonding under control of OpenVswitch

I found something similar in a serverfault.com discussion

(http://serverfault.com/questions/192893/how-i-can-identify-which-process-is
-making-udp-traffic-on-linux )

which is:

# stap -e 'probe netfilter.ip.local_out {
  if (dport == 53) # or parametrize
      printf("%s[%d] %s:%d\n", execname(), pid(), daddr, dport)
}'

Same problem.
Ther are no extra net namespaces in use!
Any hints, thoughts or pointers are welcome.

Best regards,
Manfred



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

end of thread, other threads:[~2016-09-03 14:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-10 20:58 udp.sendmsg webman
2016-07-11 10:09 ` udp.sendmsg Timo Juhani Lindfors
2016-07-19 14:41 ` udp.sendmsg Frank Ch. Eigler
2016-08-19  2:18   ` udp.sendmsg webman
2016-08-19 16:32     ` udp.sendmsg David Smith
2016-08-25 16:19       ` udp.sendmsg webman
2016-08-25 19:52         ` udp.sendmsg David Smith
2016-08-25 19:59           ` udp.sendmsg Frank Ch. Eigler
2016-09-03 14:31           ` udp.sendmsg webman

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 read-only IMAP folder(s) and NNTP newsgroup(s).