Optimization
From ArkWiki
[edit] Internet Networking
On Windows, people desiring maximum broadband and LAN speed have been using tools like those at http://www.speedguide.net for a long time. These tools optimize the Windows networking parameters, very simple and rigid numbers, which need to be matched with the networking hardware between the machine and the rest of the world.
Linux is better than that. It does not have rigid numbers; it has a sophisticated autoadaptation algorithm. But it still can benefit from some help, when it is known that a particular machine will be connected with a good broadband connection. Just get to superuser, edit the file
/etc/sysctl.conf
and insert the following lines at the end:
# Tweaks for faster broadband... net.core.rmem_default = 524288 net.core.rmem_max = 524288 net.core.wmem_default = 524288 net.core.wmem_max = 524288 net.ipv4.tcp_wmem = 4096 87380 2072576 net.ipv4.tcp_rmem = 4096 87380 2072576 net.ipv4.tcp_mem = 524288 524288 524288 net.ipv4.tcp_rfc1337 = 1
Most of these statements (anything related to "mem") increase buffer sizes, effectively reducing the amount of memory available for anything else. If your machine is low on memory, you may actually get a negative performance hit. tcp_rfc1337 enables a recent extension to the TCP/IP protocol that is not widely implemented on non-Linux systems. If you run into problems connecting to a non-Linux machine after enabling it, try turning it off again (and please let us know -- if we find rfc1337 support to not break things, it will be on by default in a future version).
Then, if you would like to use these changes without rebooting, run this command:
/sbin/sysctl -p
If you're on a Gigabit Ethernet (and actually using a Gigabit switch - this won't help with a gigabit network card connected to a 100 or 10 MBit/s switch), another thing to try is increasing the size of the interface queue by running
ifconfig eth0 txqueuelen 1000
[edit] MySQL is Not Necessary (2006.1 and earlier only)
Ark 2006.1 comes with mysql installed and running (to be used by Amarok; other than that it isn't needed, and Amarok can use SQLite). Removing it will free up resources. From superuser:
rpm -e mysql
In Ark 2007.1 and newer, mysql is no longer installed by default and Amarok uses SQLite unless told not to, so this is obsolete.
