Re: {Spam?} Re: [LARTC] HTB speed

2004-03-15 Thread Maria Joana Urbano
Hi Jeroen, Thanx for your fast answer. to use the TSC, the processor has to have a tsc, you can see that in /proc/cpuinfo, for as far as I know, every P4 has it (but I'm not sure), it's in the "flags" of cpuinfo: On my P4-1800: flags : fpu vme de pse tsc msr pae mce cx8 apic sep

Re: {Spam?} Re: [LARTC] HTB speed

2004-03-15 Thread Maria Joana Urbano
Indeed, changing the timer to 1000Hz is possible, it turned out that I have a machine here running with a 1000Hz timer ticker. (I've installed a "realtime" kernel on it for audio recording). About your previous question, I've noticed that the system with 1000Hz ticker (which has been running f

Re: [LARTC] HTB speed

2004-03-15 Thread Maria Joana Urbano
in pkt_sched.h: #define PSCHED_CLOCK_SOURCE PSCHED_CPU that's all, I wonder why it's not default to do this, or maybe it's an idea to make the packet scheduler detect the presence of tsc when the module is loaded. Hi, I think not all processors accept this #define PSCHED_CLOCK_SOURCE PSC

[LARTC] TBF tunning

2003-11-07 Thread Maria Joana Urbano
Hi all, I am trying to tune tbf qdisc. My upstream configuration is as follows: tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 100mbit tc class add dev $DEV parent 1:0 classid 1:1 cbq rate ${UP_RATE}kbit \ allot 1500 prio 5 bounded tc qdisc add dev $DEV parent 1:1 handle 10: tb

Re: Re[8]: [LARTC] CBQ Traffic control not working

2003-03-17 Thread Maria Joana Urbano
> Indeed, I use transparent proxy, redirecting everything on port 80 to > 3128, on the same machine. To make sure it's clear, the scenario is > simple: client enters eth1 on port 80, gets redirected to port 3128... > I mark the packet depending on its source and than I apply a tc filter > to direc

Re: [LARTC] howto mark packet's dscp value

2003-03-17 Thread Maria Joana Urbano
Hi Philip, I guess dsmark qdisc is runned before iptables PREROUTING phase, right? Hummm, I actually use dsmark after all iptables hooks, at the QoS Egress, just before the packet leaves the interface (please see KPTD at www.docum.org). Probably you can do it before the routing code, using the

Re: [LARTC] howto mark packet's dscp value

2003-03-13 Thread Maria Joana Urbano
can anyone tell me how to mark packet's DSCP value using tc? Hi, You can use the dsmark qdisc. Something like (example): tc qdisc add dev $DEV handle 1:0 root dsmark indices 64 set_tc_index (...) tc class change $DEV parent 1:0 classid 1:1 dsmark 0x3 value 0xb8 # EF (...) tc filter add dev $DEV

[LARTC] cbq+sfq and DSCP marking

2003-02-13 Thread Maria Joana Urbano
Hi, I am a little confused about traffic control at egress + DSCP marking. Suppose I have a home router and set three different traffic classes at the egress interface in a similar way to what wondershaper (cbq version) does: tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 10mbit