On Thu, Feb 20, 2020 at 11:50 PM William Tu <u9012063@xxxxxxxxx> wrote: > > 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? Yes, something seems to be wrong here. Calling poll() should put you in sleep for the timeout period, here 1000 ms. Let me take a look at it. What version of the kernel are you running? /Magnus > Thanks, > William