-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debian 12.5 dhcpcd 9.4.1 - non zero Recv-Q on raw sockets #306
Comments
in privsep dhcpcd uses the raw sockets for sending from an address without having to bind to it. We could drain it, but that would just cycle more CPU. |
Thank you for the explanation! |
On Mon, Mar 11, 2024 at 03:16:31AM -0700, Roy Marples wrote:
in privsep dhcpcd uses the raw sockets for sending from an address
without having to bind to it. It doesn't actually read from the raw
socket itself.
We could drain it, but that would just cycle more CPU.
Do you think this would be a better behavior?
Sounds to me like as-is it's consuming memory instead. Not sure that's
better :)
Would it not be possible to install a BPF filter that just rejects all
incoming packets on that socket if we're never going to read them?
…--Daniel
|
Isn't a BPF socket a separate entity? I did experiment with setting a small buffer size on the socket, but that didn't seem to have any effect so I left it as is. With dhcpcd-11 and #271 we might not need raw sockets at all so this might just go away. |
Have a machine running Debian 12.5, installed dhcpcd version 9.4.1 with
apt install dhcpcd
.Have not modified the default
/etc/dhcpcd.conf
file. Using my home network with IPv4 and IPv6 from Google wifi.Everything works as far as I can see. But noticing with
netstat -anp
that 2Recv-Q
entries fordhcpcd
always seems to stay > 0 and with below 2 values (2560 and 2304). This happens even aftersystemctl restart dhcpcd
or reboot.Non-empty
Recv-Q
seems like there is some pending data in the raw sockets that dhcpcd is not reading? This seems not ideal but have not found any problems caused by this.I can debug or provide more info as needed, just curious if this is expected or some way to avoid this. Thanks!
More info for PID 466 in this example:
Version info:
The text was updated successfully, but these errors were encountered: