View previous topic :: View next topic |
Author |
Message |
koma Advocate
Joined: 06 Jun 2003 Posts: 2702 Location: Italy
|
Posted: Thu Apr 07, 2005 5:54 am Post subject: [HOWTO] DSL tuning (testato per fastweb) |
|
|
PreHowTo (only Comand for now)
Questo micro howto per ora serve solo a darvi le dritte per aumentare la banda della vostra DSL Fastweb non pretende di spiegarvi cosa fanno questo settaggi dato che sto imparando ora a cosa servono grazie a Comio.
Per ora mi limito a passarveli:
Quindi editiamo /etc/sysctl.conf e aggiungiamo al fondo del file:
Code: |
net.core.rmem_max=131072
net.core.rmem_default=131072
net.core.wmem_default=131072
net.core.wmem_max=131072
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_ecn = 0
|
Dopodichè per applicare le modifiche diamo un bel
La mia banda è passata da un picco massimo di 410kB/s a 624kB/s
Spero vi piaccia
Cambiati i valori da 262144 a 131072 in quanto prima erano TROPPO instabili _________________ http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Last edited by koma on Thu Apr 07, 2005 9:18 pm; edited 6 times in total |
|
Back to top |
|
|
comio Advocate
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Thu Apr 07, 2005 5:58 am Post subject: |
|
|
c'è un post di pochi giorni fa in cui davo qualche link. In realtà basta settare le variabili in /proc/sys/net/... per allargare la finestra di ricezione tcp ed usare lo standard rfc1323 (se non erro) per il settaggio di un fattore di scala delle finestre.
ciao _________________ RTFM!!!!
e
http://www.comio.it
|
|
Back to top |
|
|
comio Advocate
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
|
Back to top |
|
|
koma Advocate
Joined: 06 Jun 2003 Posts: 2702 Location: Italy
|
Posted: Thu Apr 07, 2005 6:02 am Post subject: |
|
|
potresti essere un po' + preciso la cosa mi tange
Magari un piccolo howto sai aiuteresti un buon amule-ista _________________ http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD |
|
Back to top |
|
|
comio Advocate
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Thu Apr 07, 2005 7:38 am Post subject: |
|
|
koma wrote: | potresti essere un po' + preciso la cosa mi tange
Magari un piccolo howto sai aiuteresti un buon amule-ista |
guarda il link del post precedente... ci sono molti articoli al riguardo...
ciao _________________ RTFM!!!!
e
http://www.comio.it
|
|
Back to top |
|
|
btbbass Apprentice
Joined: 15 Feb 2005 Posts: 287 Location: Asti o Torino
|
Posted: Thu Apr 07, 2005 7:46 am Post subject: Re: [PROG CONF] DRTCP Aumento velocità |
|
|
koma wrote: |
Fatto ciò clickate su SAVE, poi su EXIT e riavviate il computer.[/code]Scarico con una DSL 4mb a 1,5mb effettivi, cosa che mi sembra assurda dato il bit di parità dvre andare a 412kb sec eppure scairco a 1,5 mb per secondo e anche
http://www.mclink.it/azienda/meter.htm me lo da per buono e mentre prima uppavo a 40 kb sec ora uppo a 80 kb sec -.- any idea?
|
Ma, a me nn sembra tanto assurdo: se hai una adsl a 4 Mb, è giusto che tu vada a 1,5 Mb /s , che è meno della metà della tua velocità massima!Sarebbe strano che tu andassi a 1,5 MB /s, che sarebbe 3 volte tanto la velocità max! Attento, che il sito che hai postato (piuttosto affidabile per altro) riporta la velocità in Kbit /s, non in KByte /s e per questo ti dà 1,5 Kb... _________________ Chi dice che è impossibile non interrompa chi lo sta facendo
-Proverbio Cinese -
___________________________________ |
|
Back to top |
|
|
Scorpionibm Tux's lil' helper
Joined: 20 Oct 2004 Posts: 88 Location: Napoli
|
Posted: Thu Apr 07, 2005 7:53 am Post subject: |
|
|
Koma potresti essere un po più preciso...
Io ho una Adsl 6mega di fastweb...
Ho settato i parametri del prog x una ADSL 4mega e il risultato del test MC-link è
Download kbps 4672
Upload kbps 445
Dove hai preso i parametri di configurazione???
Ma non riesco a scaricare a + di 500kbs (per me è questo winzozz del c****o io da Gentoo scarico a 750kbs)
che ne dite???
Grazie |
|
Back to top |
|
|
comio Advocate
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Thu Apr 07, 2005 8:39 am Post subject: |
|
|
sempre dall'how to che ho postato in precedenza nell'altro topic (DSL-HOWTO):
Quote: |
5.1.1. TCP Receive Window
For many of us, a default Linux installation is going to give something close to optimum performance. Windows 9x users often get a big boost by increasing their TCP Receive Window (RWIN). But this is because it is too small to start with. This is just not the case with Linux where the default value is 32KB.
The exception here is if you have to routinely deal with a high latency connection. For instance, if your provider has a satellite uplink that is consistently adding unusual latency (250ms or greater?). Then a larger TCP Window will likely help. For more on TCP Receive Window and related issues, look at http://www.psc.edu/networking/perf_tune.html.
The Receive Window is a buffer that helps control the flow of data. If set too low, it can be a bottleneck and restrict throughput. The optimum value for this depends completely on your bandwidth and latency. Latency being what you would find as average roundtrip time (RTT) based on your typical destinations and conditions. This can be determined with ping. For example, the Linux default of 32KB is acceptable up to speeds of 2 Mbps and a typical latency of 125ms or so, or 1.0 Mbps and latency of 250ms. Setting this value too high can also adversely effect throughput, so don't over do it.
An example courtesy of Juha Saarinen of New Zealand:
The commonly used formula for working out the the tcp buffer is the "bandwidth delay product" one:
Buffer size = Bandwidth (bits/s) * RTT (seconds)
In my case, I have roughly 8Mbps downstream, but the ATM network can only support ~3.5Mbps sustained. I'm far away from the rest of the world, so to squeeze in a sufficient amount of 1,500 byte packets, with average RTTs of 250ms, I should probably have a buffer of (3,500,000/*.25 = 106KB. (I've got 128KB at the moment, which works fine.)
The Receive Window can be dynamically set in the /proc filesystem. This requires entering a value that is twice the desired buffer size:
#echo 262144 > /proc/sys/net/core/rmem_default
#echo 262144 > /proc/sys/net/core/rmem_max
The above example actually sets the value to 128K. The Send Window can also be set, but is not as likely to be a limiting factor on DSL connections as the Receive Window:
#echo 262144 > /proc/sys/net/core/wmem_default
#echo 262144 > /proc/sys/net/core/wmem_max
These values can also be set using the sysctl command. See the man page.
Other suggested kernel options for those who want to squeeze every last bit out of that copper (selected entries only):
# sysctl -a
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_ecn = 0
A brief description of these, and other, options may be found in /usr/src/linux/Documentation/networking/ip-sysctl.txt, in the kernel source directory.
|
ciao _________________ RTFM!!!!
e
http://www.comio.it
|
|
Back to top |
|
|
JacoMozzi l33t
Joined: 12 May 2003 Posts: 645 Location: Giubiasco world(EU(CH(TI)))
|
Posted: Thu Apr 07, 2005 10:15 am Post subject: |
|
|
Uhmmm mi sa che é meglio usare la notazione ufficale (b = bit, B = byte) sennò qui ci s'incasina ed il post diventa un indovinello
Ciao
Jaco |
|
Back to top |
|
|
unz l33t
Joined: 28 Jul 2004 Posts: 819 Location: Roma, Italia
|
Posted: Thu Apr 07, 2005 10:57 am Post subject: |
|
|
koma fai chiarezza sui dati come ha giustamente scritto JacoMozzi.
1.5MB è impossibile ... la fibra va a 1MB, se parli di bit allora vai ad ~1/3 della tua velocità massima _________________ Ma che c'hai là? Sulla spalla!!!! http://lascimmia.it/ |
|
Back to top |
|
|
koma Advocate
Joined: 06 Jun 2003 Posts: 2702 Location: Italy
|
|
Back to top |
|
|
koma Advocate
Joined: 06 Jun 2003 Posts: 2702 Location: Italy
|
Posted: Thu Apr 07, 2005 6:54 pm Post subject: |
|
|
Sposto qui il primo post per fare spazio al micro HowTo
Ragazzi mi è capitato tra le mani un programma chiamato drTCP
http://www.dslreports.com/drtcp
E settandolo come dice questa guida con fastweb: Code: |
Top receive Window:
[ADSL 1,28] = 32120
[ADSL 2,0] = 64240
[ADSL 4,0] = 128480
[FIBRA a(2)] = 256960
[FIBRA b(3)] = 513920
Window scaling: YES
Time Stamping : NO
Selective Acks : YES
Path MTU Discovery :YES
Black Hole detection.: NO
Max duplicate Acks : 1
TTL : 128
Dial Up (RAS) MTU: vuota
Nella casella sotto Adapter settings selezionate la vostra scheda di rete, mentre nella casella a fianco mettete Max MTU : 1500
Fatto ciò clickate su SAVE, poi su EXIT e riavviate il computer. | Scarico con una DSL 4mb a 1,5mb effettivi, cosa che mi sembra assurda dato il bit di parità dvre andare a 412kb sec eppure scairco a 1,5 mb per secondo e anche
http://www.mclink.it/azienda/meter.htm me lo da per buono e mentre prima uppavo a 40 kb sec ora uppo a 80 kb sec -.- any idea?
Ah dmenticavo tutto ciò è OT fino a un certo punto dico io, se è veramente reale questa cosa cosa mi impedisce di farlo anche su unix? e per inteso unix intendo gentoo, dove setto gli stessi parametri? Questo per far capire che era un semplice raffronto non un OT
Velocità more more more and more _________________ http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD |
|
Back to top |
|
|
comio Advocate
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Thu Apr 07, 2005 7:16 pm Post subject: Re: [SYSCTL conf] Push Up Your DSL |
|
|
Code: | echo 262144 > /proc/sys/net/core/rmem_default
echo 262144 > /proc/sys/net/core/rmem_max
echo 262144 > /proc/sys/net/core/wmem_default
echo 262144 > /proc/sys/net/core/wmem_max
|
Solo una cosa. Piuttosto che fare queste istruzioni, possiamo fare tutt tramite sysctl.conf levando /proc/sys/ e cambiando i "/" in "."... quindi:
Code: |
echo 262144 > /proc/sys/net/core/rmem_default
|
diventa
Code: |
net.core.rmem_default=262144
|
aggiungo: "miiiiii che dolore!"
ciao _________________ RTFM!!!!
e
http://www.comio.it
|
|
Back to top |
|
|
koma Advocate
Joined: 06 Jun 2003 Posts: 2702 Location: Italy
|
|
Back to top |
|
|
CarloJekko Veteran
Joined: 31 Mar 2005 Posts: 1315 Location: Baia Domizia :-)
|
Posted: Fri Apr 08, 2005 11:01 am Post subject: |
|
|
Ma come si setta per una DSL 6Mb/sec? Ho provato a mettere quella della 4 ma non scarica + di 350 Kb/sec ... senza almeno a 625 mi và _________________ C. |
|
Back to top |
|
|
comio Advocate
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Fri Apr 08, 2005 11:20 am Post subject: |
|
|
CarloJekko wrote: | Ma come si setta per una DSL 6Mb/sec? Ho provato a mettere quella della 4 ma non scarica + di 350 Kb/sec ... senza almeno a 625 mi và |
prova ad aumentare il valore delle finestre di ricezione (rmem)
Code: |
net.core.rmem_max=131072
net.core.rmem_default=131072
|
disclaimer:
Sottolineo che questi parametri normalmente non stravolgono le prestazioni e molti sono già messi by default sugli ultimi sistemi (tipo il sack od il windows scaling...).
Poi meglio farsi una stampa di quello che si ha (sysctl -a) e vedere cosa c'è da modificare, facendo modifiche ad un parametro alla volta.
Una volta che si trova una conf ideale (si chiama tuning non per altro...), si mette tutto in /etc/sysctl.conf
ok?
ciao _________________ RTFM!!!!
e
http://www.comio.it
|
|
Back to top |
|
|
CarloJekko Veteran
Joined: 31 Mar 2005 Posts: 1315 Location: Baia Domizia :-)
|
Posted: Fri Apr 08, 2005 1:38 pm Post subject: |
|
|
Koma ti funziona ache su gentoo alla velocità di 1.5 Mbyte/sec... se si come hai settato sysctl.conf?
Con il tuning a me và al massimo a 666 Kbyte/sec (il numero della bestia ke brutto!!! )
Teoricamente potrebbe andare a 750... togliendoci 50 - 60 perchè il doppino è quello che è cmwq mancano 40 - 50 Kbyte... potrebbe essere solo un problema di linea e non di buffering (di settaggi?) _________________ C. |
|
Back to top |
|
|
koma Advocate
Joined: 06 Jun 2003 Posts: 2702 Location: Italy
|
Posted: Fri Apr 08, 2005 1:52 pm Post subject: |
|
|
Io nel topic parlavo di un test fatto con mclink ora se leggi nel primo topic ho messo le mie statistiche _________________ http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD |
|
Back to top |
|
|
|