URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
1625 |
jcastillo |
|
2 |
|
|
There are a few network parameters that can be tuned to better match
|
3 |
|
|
the kernel to your system hardware and intended usage. The defaults
|
4 |
|
|
are usually a good choice for 99% of the people 99% of the time, but
|
5 |
|
|
you should be aware they do exist and can be changed.
|
6 |
|
|
|
7 |
|
|
The current list of parameters can be found in the file:
|
8 |
|
|
|
9 |
|
|
./linux/net/TUNABLE
|
10 |
|
|
|
11 |
|
|
Some of these are accessible via the sysctl interface, and many more are
|
12 |
|
|
scheduled to be added in this way. For example, some parameters related
|
13 |
|
|
to Address Resolution Protocol (ARP) are very easily viewed and altered.
|
14 |
|
|
|
15 |
|
|
# cat /proc/sys/net/ipv4/arp_timeout
|
16 |
|
|
6000
|
17 |
|
|
# echo 7000 > /proc/sys/net/ipv4/arp_timeout
|
18 |
|
|
# cat /proc/sys/net/ipv4/arp_timeout
|
19 |
|
|
7000
|
20 |
|
|
|
21 |
|
|
Others are already accessible via the related user space programs.
|
22 |
|
|
For example, MAX_WINDOW has a default of 32k which is a good choice for
|
23 |
|
|
modern hardware, but if you have a slow (8 bit) ethercard and/or a slow
|
24 |
|
|
machine, then this will be far too big for the card to keep up with fast
|
25 |
|
|
Tx'ing machines on the same net, resulting in overruns and receive errors.
|
26 |
|
|
A value of about 4k would be more appropriate, which can be set via:
|
27 |
|
|
|
28 |
|
|
# route add -net 192.168.3.0 window 4096
|
29 |
|
|
|
30 |
|
|
The remainder of these can only be presently changed by altering a #define
|
31 |
|
|
in the related header file. This means an edit and recompile cycle.
|
32 |
|
|
|
33 |
|
|
Paul Gortmaker 06/96
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.