Re: VM tuning for Linux routers

Bernd Eckenfels (ecki@lina.inka.de)
Sat, 17 Nov 2001 17:42:45 +0100


In article <20011117134127.A8041@se1.cogenit.fr> you wrote:
>> I have a dual Athlon w/ 512M RAM and three NICs (one gigabit
>> 3c985B running 802.1Q with 5 VLANs, two on-board 100Mbit 3c982). This box
>> has almost nothing other to do apart from routing and packet filtering.
>> Is there anything I can do to tell the VM system to use as much memory
>> for network packets as possible?

> In a sysctl fashion ? No.

You can increase the reserved free memory (not sure where to do this in
2.4.x). This is important, cause network memory requests are usually within
interrupt handlers and therefore no paging can occur. You can play a bit
with the memory settings in net/*_mem. Most important you can configure the
kernel for large window sizes and advanced routing.

> However you can increase the length of the Rx/Tx rings on the 100Mb/s side
> and tune the pci latency timers (depends on the hardware fifo size).

Increasing rx/rx rings is not a particular good idea cause it slows down
TCPs adaption to network congestion and router overload.

Greetings
Bernd
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/