Welcome to janforman.com you can find here infos about downtime of my servers and other stuff.

Wifi Realtek RTL8168 Tuning

Realtek RTL8186 Datasheet v0.95

// eth0 – interface connected directly to 5-port switch
// eth1 – interface WAN
// wlan0 – wifi minipci directly connected to IC
// maximum transmit thru NAT-router 18Mbit/s
// maximum transmit thru wireless device 23Mbit/s WIFI (54g)
// maximum transmit thru bridge 52Mbit/s (WAN-LAN)
// measured latency thru linux router 1ms
// RTL8305SC Switch
// — maximum throughput in switch 91Mbit/s (halfduplex port-port)
// — maximum throughput in switch 160Mbit-s (fullduplex port-port)
// CPU – MIPS R3000 clone 180Mhz
// better to use AES WPA2 than any other because of HW acceleration

TUNING PARAMETERS IN BASH —

iwpriv wlan0 set_mib disable_olbc=1
iwpriv wlan0 set_mib ack_timeout=22
ifconfig eth0 txqueuelen 32
ifconfig eth1 txqueuelen 32
ifconfig br0 txqueuelen 32
ifconfig wlan0 txqueuelen 32
echo "0 0">/proc/sys/vm/pagetable_cache
echo "0" >/proc/sys/vm/max-readahead
echo "0" >/proc/sys/vm/min-readahead
echo "200">/proc/sys/net/core/netdev_max_backlog
echo "50" >/proc/sys/net/core/mod_cong
echo "30" >/proc/sys/net/core/lo_cong
echo "10" >/proc/sys/net/core/no_cong
echo "131072" >/proc/sys/net/core/wmem_max
echo "131072" >/proc/sys/net/core/rmem_max
echo "0" >/proc/sys/net/ipv4/tcp_retrans_collapse
echo "0" >/proc/sys/net/ipv4/tcp_timestamps
echo "0" >/proc/sys/net/ipv4/tcp_window_scaling
echo "0" >/proc/sys/net/ipv4/tcp_sack
echo "1" >/proc/sys/net/ipv4/ip_no_pmtu_disc
echo "30" >/proc/sys/net/ipv4/tcp_keepalive_time
echo "2" >/proc/sys/net/ipv4/tcp_keepalive_probes
echo "10" >/proc/sys/net/ipv4/tcp_keepalive_intvl
echo "15" >/proc/sys/net/ipv4/tcp_fin_timeout
echo "1" >/proc/sys/net/ipv4/tcp_tw_recycle
echo "0" >/proc/sys/net/ipv4/tcp_rfc1337
echo "1024 4096" >/proc/sys/net/ipv4/ip_local_port_range
echo "1" >/proc/sys/net/ipv4/icmp_echo_ignore_all
echo "1" >/proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
echo "1" >/proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
echo "4096 65536 131072" >/proc/sys/net/ipv4/tcp_wmem
echo "4096 87378 131072" >/proc/sys/net/ipv4/tcp_rmem
echo "0" >/proc/sys/net/ipv4/conf/all/accept_source_route
echo "0" >/proc/sys/net/ipv4/conf/all/accept_redirects
echo "1" >/proc/sys/net/ipv4/conf/all/rp_filter
echo "0" >/proc/sys/net/ipv4/conf/default/accept_source_route
echo "0" >/proc/sys/net/ipv4/conf/default/accept_redirects
echo "1" >/proc/sys/net/ipv4/conf/default/rp_filter
echo "1800">/proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_established
echo "300">/proc/sys/net/ipv4/netfilter/ip_conntrack_generic_timeout
echo "60" >/proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_close_wait
echo "30" >/proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_syn_recv
echo "60" >/proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_syn_sent
echo "30" >/proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_time_wait
echo "60" >/proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_fin_wait
echo "5" >/proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_close
echo "4096">/proc/sys/net/ipv4/route/max_size
echo "2048">/proc/sys/net/ipv4/route/gc_thresh

TUNING PARAMETERS IN BASH —

// Select “G Mode only” in configuration
// Beacon Interval 800ms
// ACK Timeout 22μsec (up to 300 meters) or 91μsec (long distance)
// Short Preamble
// 802.11g Protection – Disabled

VPS /w OpenVZ || Fastest .config 2.6.18

You can download my minimal superfast configuration for 2.6.18 OpenVZ Kernel.
Download TAR GZIP: .config
* no modules
* Athlon XP
* VIA PATA / SATA
* without quota support
* only important things
* IPv6 support
Switch-on/off anything you need by yourself ;-)

“OpenVZ is an Operating System-level server virtualization solution, built on Linux. OpenVZ creates isolated, secure virtual environments — VEs (otherwise known as virtual private servers, or VPSs) on a single physical server enabling better server utilization and ensuring that applications do not conflict.”

ASPSeek || 1.2.15 RPM Binaries RedHat 5

It can index a few million URLs and search for words and phrases, use wildcards, and do a Boolean search. Search results can be limited to time period given, site or Web space (set of sites) and sorted by relevance (Page rank is used) or date.

ASPseek is optimized for multiple sites (threaded index, async DNS lookups, grouping results by site, Web spaces). ASPseek can work with multiple languages/encodings at once and keep it compact due to UTF8 storage mode.

ASPseek is written in C++ using the STL library, and uses mix of SQL database and binary files for storage. [ASPSeek Manual]

This is pretty stable version tested on our website.
Download (CentOS5 / RedHat EL5 X86 RPMS):
aspseek-1.2.15-1.i386.rpm
aspseek-cgi-1.2.15-1.i386.rpm
aspseek-client-1.2.15-1.i386.rpm
aspseek-mysql-lib-1.2.15-1.i386.rpm

ASPSeek RPM Guide
————————————————————-
aspseek-1.2.15.tar.gz (sources)

ASPSeek – fulltext search engine, can handle 10.000.000 documents with response <1s
2 Servers with dual CPU/4GB RAM are recommended,
but you can index small number of pages up to 1.000.000 on one old P3/1GB RAM.