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