Погуглил, заметил что проблема не новая, но дополнительные улучшения в этом направлении толку не дали:
Код: Выделить всё
/etc/sysctl.conf
net.ip.ifq.maxlen=512
net.inet.tcp.recvspace=262144
net.inet.tcp.sendspace=262144
net.inet.udp.recvspace=262144
net.inet.udp.sendspace=262144
kern.maxfiles=8192
kern.maxclusters=8192
Код: Выделить всё
/etc/login.conf
:openfiles-cur=8192:\
OpenBSD squid 4.7 GENERIC#558 i386
# squid -v
Squid Cache: Version 2.7.STABLE7
configure options: '--datadir=/usr/local/share/squid' '--enable-auth=basic digest' '--enable-arp-acl' '--enable-basic-auth-helpers=NCSA YP' '--enable-digest-auth-helpers=password' '--enable-delay-pools' '--enable-external-acl-helpers=ip_user unix_group' '--enable-forw-via-db' '--enable-negotiate-auth-helpers=squid_kerb_auth' '--enable-pf-transparent' '--enable-removal-policies=lru heap' '--enable-ssl' '--enable-storeio=aufs ufs diskd null' '--with-pthreads' '--localstatedir=/var/squid' '--enable-follow-x-forwarded-for' '--enable-snmp' '--prefix=/usr/local' '--sysconfdir=/etc' '--mandir=/usr/local/man' '--infodir=/usr/local/info' 'CC=cc' 'CFLAGS=-O2 -pipe'
Прокси в браузере прописан явно, pf не трогал нигде.
На прямую в интернет задержек нет никаких.