|
soul^keeper |
 |
Administrateur 
Connecté
Niveau : 5 N° de Membre :
1
Ancienneté : 100%
Participation : 19%
Inscription: 22 Feb 2002
Localisation: La Défense
Age: 48
Messages: 16623
Sujets Lancés : 2412
|
[LINUX] Trickle : un bandwidth shaper (à la NetLimiter) pour linux
trickle : a portable lightweight userspace bandwidth shaper
Citation: In short
trickle is a portable lightweight userspace bandwidth shaper. It can run in collaborative mode (together with trickled) or in stand alone mode.
trickle works by taking advantage of the unix loader preloading. Essentially it provides, to the application, a new version of the functionality that is required to send and receive data through sockets. It then limits traffic based on delaying the sending and receiving of data over a socket. trickle runs entirely in userspace and does not require root privileges.
trickle is developed on OpenBSD/i386 and is tested on
OpenBSD/SPARC/SPARC64/MacPPC, Sun Solaris/SPARC/SPARC64, NetBSD/Alpha, FreeBSD/i386 and Linux/i386.
trickle is licensed under a BSD license.
|
Bon vous me direz, y'a la QoS pour faire ça (qdisc, tc...).... directement intégré au noyau Linux et diablement efficace (je l'utilise depuis quelque temps, j'en parlerai sûrement un de ces 4...)
Mais je suis tombé sur cet utilitaire simplissime de par son fonctionnement et sa confituration pour réaliser sous linux des limitation de bande passante (upstream/downstream) pour un process donné...
code: EXAMPLES
trickle -u 10 -d 20 ncftp
Launch ncftp(1) limiting its upload capacity to 10 KB/s, and download capacity at 20 KB/s.
les résultats en image:
<img src="http://monkey.org/~marius/trickle/smoothing.png">
LIEN VERS LE SITE OFFICIEL:
http://monkey.org/~marius/pages/?page=trickle
Lien direct vers la dernière version (1.06) :
http://monkey.org/~marius/trickle/trickle-1.06.tar.gz
Note: je ne l'ai pas essayé personnellement (je préfère la méthode de la QoS, bien que beaucoup plus complexe), mais j'imagine que ça pourra(i)t en intéresser certains...
Signaler ce message à un modérateur | IP: Logguée Temps en ligne : 92 Jours, 20 Heures, 8 Minutes, 25 Secondes en ligne
|