Help.... fat fingered tunable

Status
Not open for further replies.

pitt1717

Explorer
Joined
Jan 13, 2013
Messages
66
so I was trying to play with Tunables to get better upload speeds to the box. now I can't log in. I reboot the box and it gets to the menu but ssh or gui doesn't respond. basically getting a buffer error. old docs showed how to get into a loader screen, but do not see it on 11.1..... anyone know how I can delete the tunable or prevent it from loading? I do have console access
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
basically getting a buffer error.
With this limited information, we basically can't help.

Ok that's not entirely true. I only say that to illustrate how important details are. If you knew the tunables you were working with we could provide the defaults and you could set them manually unless it a loader.conf. I don't know how that's handled in FreeNAS. At any rate, you can modify the loader option at boot time from grub but I'm no expert with that.
 

pitt1717

Explorer
Joined
Jan 13, 2013
Messages
66
so its a Sysctl, specifically net.inet.tcp.recvspace. I went in using Sysctl net.inet.tcp.recvspace=131072. I rebooted but the old setting came back. is there a way to make Sysctl reread the settings while the server is up
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
Sysctl net.inet.tcp.recvspace=131072 should be all you need. Don't reboot, it will reload the setting from sysctl.conf and or the FreeNAS config database.
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
For reference here are my defaults:
Code:
root@Pico:~ # sysctl net.inet.tcp
net.inet.tcp.rfc1323: 1
net.inet.tcp.mssdflt: 536
net.inet.tcp.keepidle: 7200000
net.inet.tcp.keepintvl: 75000
net.inet.tcp.sendspace: 32768
net.inet.tcp.recvspace: 65536
net.inet.tcp.keepinit: 75000
net.inet.tcp.delacktime: 100
net.inet.tcp.v6mssdflt: 1220
net.inet.tcp.nolocaltimewait: 0
net.inet.tcp.maxtcptw: 27767
net.inet.tcp.per_cpu_timers: 0
net.inet.tcp.v6pmtud_blackhole_mss: 1220
net.inet.tcp.pmtud_blackhole_mss: 1200
net.inet.tcp.pmtud_blackhole_failed: 0
net.inet.tcp.pmtud_blackhole_activated_min_mss: 0
net.inet.tcp.pmtud_blackhole_activated: 0
net.inet.tcp.pmtud_blackhole_detection: 0
net.inet.tcp.rexmit_drop_options: 0
net.inet.tcp.keepcnt: 8
net.inet.tcp.finwait2_timeout: 60000
net.inet.tcp.fast_finwait2_recycle: 0
net.inet.tcp.always_keepalive: 1
net.inet.tcp.rexmit_slop: 200
net.inet.tcp.rexmit_min: 30
net.inet.tcp.msl: 30000
net.inet.tcp.persmax: 60000
net.inet.tcp.persmin: 5000
net.inet.tcp.syncache.rst_on_sock_fail: 1
net.inet.tcp.syncache.rexmtlimit: 3
net.inet.tcp.syncache.hashsize: 512
net.inet.tcp.syncache.count: 0
net.inet.tcp.syncache.cachelimit: 15364
net.inet.tcp.syncache.bucketlimit: 30
net.inet.tcp.syncookies_only: 0
net.inet.tcp.syncookies: 1
net.inet.tcp.functions_available:
Stack						   D PCB count
default						 * 95

net.inet.tcp.functions_default: default
net.inet.tcp.soreceive_stream: 0
net.inet.tcp.isn_reseed_interval: 0
net.inet.tcp.icmp_may_rst: 1
net.inet.tcp.pcbcount: 40
net.inet.tcp.do_tcpdrain: 1
net.inet.tcp.tcbhashsize: 524288
net.inet.tcp.log_debug: 0
net.inet.tcp.minmss: 216
net.inet.tcp.sack.globalholes: 0
net.inet.tcp.sack.globalmaxholes: 65536
net.inet.tcp.sack.maxholes: 128
net.inet.tcp.sack.enable: 1
net.inet.tcp.reass.maxqueuelen: 100
net.inet.tcp.reass.cursegments: 0
net.inet.tcp.reass.maxsegments: 191500
net.inet.tcp.sendbuf_max: 2097152
net.inet.tcp.sendbuf_inc: 8192
net.inet.tcp.sendbuf_auto: 1
net.inet.tcp.tso: 1
net.inet.tcp.path_mtu_discovery: 1
net.inet.tcp.lro.entries: 8
net.inet.tcp.recvbuf_max: 2097152
net.inet.tcp.recvbuf_inc: 16384
net.inet.tcp.recvbuf_auto: 1
net.inet.tcp.insecure_rst: 0
net.inet.tcp.insecure_syn: 0
net.inet.tcp.ecn.maxretries: 1
net.inet.tcp.ecn.enable: 2
net.inet.tcp.abc_l_var: 2
net.inet.tcp.rfc3465: 1
net.inet.tcp.initcwnd_segments: 10
net.inet.tcp.rfc3390: 1
net.inet.tcp.rfc3042: 1
net.inet.tcp.rfc6675_pipe: 0
net.inet.tcp.drop_synfin: 0
net.inet.tcp.delayed_ack: 1
net.inet.tcp.blackhole: 0
net.inet.tcp.log_in_vain: 0
net.inet.tcp.hostcache.purgenow: 0
net.inet.tcp.hostcache.purge: 0
net.inet.tcp.hostcache.prune: 300
net.inet.tcp.hostcache.expire: 3600
net.inet.tcp.hostcache.count: 2
net.inet.tcp.hostcache.bucketlimit: 30
net.inet.tcp.hostcache.hashsize: 512
net.inet.tcp.hostcache.cachelimit: 15360
net.inet.tcp.hostcache.enable: 1
net.inet.tcp.cc.available: newreno
net.inet.tcp.cc.algorithm: newreno
root@Pico:~ #

 

pitt1717

Explorer
Joined
Jan 13, 2013
Messages
66
yeah I did that and even tried Sysctl restart under rc.d but no luck.... there's got to be something im missing
 

pitt1717

Explorer
Joined
Jan 13, 2013
Messages
66
rolled back to u4 and it let me in. deleted all Tunables and shut off autotune. rebooted into u5 and its broke. I guess boot u4 and see what happens.
on a side note removing all the Tunables increased my upload through put. if I can the system back up and stable ill try my tcp tuning again..


thanks again for stepping in
 

pitt1717

Explorer
Joined
Jan 13, 2013
Messages
66
ok so now rebooted and getting a buffer space issue in samba. but I made no changes there. I went to look for the config /usr/local/etc but no smb config files there except smb.gdb and smbldap. wtf tonight
 
Status
Not open for further replies.
Top