From: William Tu <u9012063@gmail.com>
To: Xdp <xdp-newbies@vger.kernel.org>
Cc: "Karlsson, Magnus" <magnus.karlsson@intel.com>,
"Björn Töpel" <bjorn.topel@intel.com>
Subject: xdpsock poll syscall CPU 100%
Date: Thu, 20 Feb 2020 14:49:17 -0800 [thread overview]
Message-ID: <CALDO+SZmCxtWCeqh93HO6vm1KHh_UGxMby+td2ba_o66ZT+MVQ@mail.gmail.com> (raw)
Hi,
I'm trying to save some CPU cycles when there is no packet arrives.
I enable the poll syscall option of xdpsock, by doing
$ ./xdpsock -r -p -S -i ens16
sock0@ens160:0 rxdrop xdp-skb poll()
pps pkts 1.00
rx 0 0
tx 0 0
Since there is no packet coming, I though by calling poll()
system call, the xdpsock process will be blocked and CPU utilization
should be way under 100%. However, I'm still seeing 100%
CPU utilization. Am I understanding this correctly?
Thanks,
William
next reply other threads:[~2020-02-20 22:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-20 22:49 William Tu [this message]
2020-02-21 8:11 ` xdpsock poll syscall CPU 100% Magnus Karlsson
2020-02-21 8:28 ` Eelco Chaudron
2020-02-21 8:33 ` Magnus Karlsson
2020-02-21 8:40 ` Eelco Chaudron
2020-02-21 8:46 ` Magnus Karlsson
2020-02-21 9:23 ` Eelco Chaudron
2020-02-21 18:40 ` William Tu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALDO+SZmCxtWCeqh93HO6vm1KHh_UGxMby+td2ba_o66ZT+MVQ@mail.gmail.com \
--to=u9012063@gmail.com \
--cc=bjorn.topel@intel.com \
--cc=magnus.karlsson@intel.com \
--cc=xdp-newbies@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).