From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1Emwsv-0000eZ-0Q for garchives@archives.gentoo.org; Thu, 15 Dec 2005 17:27:17 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jBFHNKM2015953; Thu, 15 Dec 2005 17:23:20 GMT Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jBFH5T5j026875 for ; Thu, 15 Dec 2005 17:05:29 GMT Received: (qmail invoked by alias); 15 Dec 2005 17:05:29 -0000 Received: from chello080108115144.1.11.univie.teleweb.at (EHLO sputnik886) [80.108.115.144] by mail.gmx.net (mp039) with SMTP; 15 Dec 2005 18:05:29 +0100 X-Authenticated: #28563408 Subject: Re: [gentoo-user] traffic shaping and p2p From: Matthias Langer To: gentoo-user@lists.gentoo.org In-Reply-To: <43A120E5.1070603@gmail.com> References: <1134586948.9339.22.camel@sputnik886.ruz-net> <43A120E5.1070603@gmail.com> Content-Type: text/plain Date: Thu, 15 Dec 2005 18:05:15 +0100 Message-Id: <1134666315.9856.23.camel@sputnik886.ruz-net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Archives-Salt: 9ee0b9a9-f56d-4fe6-987c-5c7cc9736fee X-Archives-Hash: 8740dc6eb5444eefccac179392d56fe3 On Thu, 2005-12-15 at 09:53 +0200, Matan Peled wrote: > Matthias Langer wrote: > > Now, when i start a p2p app on my workstation the latency of my internet > > connection suffers greatly, allthogh i've > > 384 kbit/s up and 3072 kbit/s down. I know that there are some > > approaches to solve this kind of problem by categorizing packets and > > assign different priorities to them, as explained at > > http://gentoo-wiki.com/HOWTO_Packet_Shaping. However, my knowledge of > > iptables and networking is very limited and i just want a simple and > > clean solution as i don't plan to trick myself by switching my p2p apps > > to non standard ports or manipulating the packet size ... > > I've used that HOWTO (and contributed bits to it), and its great. > > But why can't you just limit your P2P application's upload speed? I mean, the > program should have some controls that let you do that, right? I know every sane > bittorrent app has this. > Well, i use azureus - and of course i know that upload-speed can be limited - which is maybe in fact the best solution to my problem. However, what i have in mind is somehow similar to cpu-resources and process-priority. If i start at process with nice level 15, it will get all available cpu-resources without slowing down the other apps. As far as i understand, this is not the same as limiting the process to, say 80% of cpu power. Now, what i want is the same for p2p apps - give them as much bandwidth they can reasonably get but don't let them slow down firefox, ssh etc. Because i want this setup just for my homenetwork, it would perfectly suffice if packages get their priorities by examining port-numbers. And because i want to at least partially understand what i'm doing i would prefer a simple and clean setup. I know that in principle the neccessairy steps to do what i wannt can be found in the 'Packet Shaping HOWTO'. But i wanted to hear experiences and opinions of others first before starting messing around with my router. By the way, there are many different packet shedulers in the kernel - and the HOWTO only explains the HTP-scheduler. What about the other schedulers - can they be usefull for my purposes too - and if yes, how can they be configured and used ? Matthias -- gentoo-user@gentoo.org mailing list