Skip to content
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

No buffer space available error #3

Open
MrSnuggles opened this issue Oct 25, 2015 · 3 comments
Open

No buffer space available error #3

MrSnuggles opened this issue Oct 25, 2015 · 3 comments

Comments

@MrSnuggles
Copy link

Sorry for bothering you again.
I got an Error when the jail had a bit of traffic.

found a few threads and edited the sysctl config file via ssh.

https://forums.freenas.org/index.php?threads/transmission-error-udp-failed-to-set-receive-buffer-please-help.15203/

I have done the changes on my sysctl in the root directory, but then i couldn't boot anymore.

there is another way but all the things i found where for the old FreeNAS build or plain BSD:

net.inet.tcp.recvbuf_max
net.inet.tcp.sendbuf_max

Do you know how to get rid of it?

Thanks as always for your great work. Maybe i will contribute a few lines of code for stability and the ipfw feature in the next month when there is time.

@verisgit
Copy link

In the freenas control panel under System>Tunables add a new tunable
kern.ipc.maxsockbuf
5242880
type: sysctl

and

net.inet.udp.recvspace
4194304
type: sysctl

save and reboot

@Asday
Copy link

Asday commented Aug 29, 2018

For future googlers, my FreeNAS jails all decided to become completely unreachable to and from the outside world, with no obvious error messages, until I tried to ping the default gateway and got:

PING 192.168.1.1 (192.168.1.1): 56 data bytes
ping: sendto: No buffer space available
ping: sendto: No buffer space available
ping: sendto: No buffer space available

Adding the tunables above and rebooting the host machine was what fixed it.

Not sure what caused the issue, but hey, bigger buffers fixed it, so I'm happy for now.

@Asday
Copy link

Asday commented Aug 31, 2018

Further - kern.ipc.maxsockbuf was being overwritten by autotune, which, according to the god of FreeNAS cyberjock, probably shouldn't be used.

I've disabled autotune (system -> advanced), re-set the tunable to what I wanted it to be, and rebooted. If I don't post again, consider this The Fix:tm:.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants