LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   priority for fuppes service (https://www.linuxquestions.org/questions/linux-server-73/priority-for-fuppes-service-678716/)

petersk 10-23-2008 11:29 PM

priority for fuppes service
 
I am running kubuntu with a lot of different services like apache2, fuppes, samba, ssh. I'd like to assign the highest bandwidth priority to fuppes. Fuppes is only going to serve computers on my LAN, and actually only a single computer (my PS3). Does anyone have any suggestions of how I could maximize BW to the PS3 and/or reduce latency?
I see some info on bandwidth shaping possibly using tc, but I know nothing about it.

Kurt

dorian33 10-25-2008 10:59 AM

I think tc is not required.
Typically egress queue is pfifo_fast (check this with 'ip link show' run as root).
So I believe it is enough for you to set the TOS byte to 8 (minimum delay) using iptables.
With pfifo_fast queue it makes the packets to be sent first.

petersk 10-25-2008 01:42 PM

Any suggestions on how I'd do that? Assume that I'm such an IPTABLES noob, that I either use guarddog, suse firewall, or ufw instead at all times.

Also, you should note that I already set up my router to QoS the packets as "High". Additionally, I'm doing all this on a relatively slow (600 MHz PIII) machine, so I wouldn't doubt I need to do some CPU intervention/prioritization.

OK, I found this command online. I'll give it a try and see if it helps any:
iptables -t mangle -A POSTROUTING -p tcp --sport <fuppesport> -j TOS --set-tos 8
If I want it executed every time it reboots, where should I put the command?

Kurt

petersk 10-26-2008 05:01 PM

I tried setting TOS to 8 and that didn't seem to help.
Kurt


All times are GMT -5. The time now is 06:30 PM.