Wednesday, October 20, 2010

Low transfer speeds on Dockstar, but why?

Low transfer speeds on Dockstar, but why?
Format your Data Partition with XFS

mkfs.xfs /dev/sdX
Add it to /etc/fstab

/dev/sdX /mnt xfs noatime,logbufs=8,allocsize=128m 0 2
Create file /etc/rc.local.durchsatz with this content

blockdev --setra 16384 /dev/sdX
ifconfig eth0 txqueuelen 5000
echo deadline > /sys/block/sdX/queue/scheduler
then do

chmod 700 /etc/rc.local.durchsatz
Edit /etc/sysctl.conf and add the following line to the end of the file

vm.dirty_ratio=8
vm.dirty_background_ratio=5
vm.vfs_cache_pressure=50
vm.swappiness=100
net.core.netdev_max_backlog=5000
net.ipv4.tcp_sack=0
net.ipv4.tcp_timestamps=0
net.ipv4.tcp_fin_timeout=10
net.ipv4.tcp_tw_recycle=1
Reboot your device