[LARTC] 2.6 Kernel: Packet Scheduler Clock source??

2005-04-16 Thread Robert Walker
Hi all,

What is best setting for the 2.6.11 Kernel configuration option:
Packet scheduler clock source
???
I have had it set at:
X 'Timer interrupt'

which understand is now 1000/second for the 2.6 kernel.

Would it make any difference to my setup (e.g. rate estimation
accuracy) if I changed this to:
X 'CPU cycle counter'
How exactly does this option work for the lay person (such as myself
:-) not familar with the guts of the X86 architecture??

The kernel is running on a PC-based router with a MB with ACPI support
enabled and an Athlon XP Thunderbird 2000+ processor.

Thanks

Robert


___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] IMQ problems :-(

2004-01-04 Thread Robert Walker

Hi Roy,

Thanks for getting back to me so promptly.

> Imq is very invasive componemt which requires to recompile almost everyhing
> this diver is very unstable and will crash for sure, sooner or later
> depending on load.

I have read about people having lots of problems with IMQ. So I just wanted to
try it and see how stable it is on my box. I gather it could actually
be problems with the Kernel and not the IMQ code??

> I sugest you to leave iptables alone and just modify imq.c source to catch
> what you need.
> ir you dont have too much trafic it may not crash for all day. ( if you will
> use it for download shaping)

I think that sounds even more messy :-)
I only wanted to ingress shape with IMQ to ensure that I don't drop UDP
or small TCP ACK packets for upload streams. I guess I will just give
up on the idea and using ingress policing... Its not so important anyway as my
DSL connection is very asymetric (2mbit D/L & 256kbit U/L) and upload
shaping is more important.

Even if IMQ is fixed in kernel 2.6 (is it??) I won't be able to use it until I
can update the driver for my conexant PCI ADSL modem (which works fine
just now under kernel 2.4.22)

-- 
Best regards,
 Robert


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] IMQ problems :-(

2004-01-03 Thread Robert Walker
Hi

I have built a custom TMB Mandrake kernel (2.4.22) with IMQ and ESFQ
support. I statically compiled both (mistake?) ESFQ is sorted and
working fine (I have succesfully patched IPROUTE2).

I have got to the stage where I can see the IMQ device as UP with ifconfig.
I can use TC to add QDISCs to the IMQ device. However I just cannot sort out
IPTABLES to actually redirect packets to the IMQ device!! I have been trying
for weeks to sort this problem out and its really helping to develop
my Linux Zen awareness...

Currently I am trying to patch iptables-1.2.8 with iptables-1.2.7a IMQ
patch. I am not getting a .d dependency file for the lipipt_IMQ.c file
in the iptables - extensions directory. I think this is because the
IMQ patch looks for an ipt_IMQ.c file in directory
.../net/ipv4/netfilter/ in my kernel sources. But my kernel source
doesn't have this file. This is the common problem for all the older iptables
-IMQ patches I have tried.

Why don't I have this file in my kernel sources? Is it because I
statically linked in supported for IMQ into the kernel? Do I need to
recompile the kernel with IMQ selected as a module??

I am very new to Linux so these patches for this and patches for that
plus something called 'patch-o-matic' are all getting a bit

Yours in patchyness...

Robert


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] Where have my all my TC filters gone??

2003-12-04 Thread Robert Walker
 
I have snipped out part of a script to load balance and bandwidth shape upload traffic 
to a NIC
(eth0/ETH_WAN) on a 2mbit/256kbit ADSL line. The balancing will be carried out for 3 
users with 1+
PCs connected on another NIC. There are iptables instructions (not shown in the 
script) to mark
packets based on PORT and TOS. These are snipped as the marking appears to work its 
just the TC
FILTERs that just disappear :-(

Stef (or anyone else :-) can you please explain why:

# tc filter show dev eth0
#

shows no filters are in place on eth0 after running the script below???

Is this a problem with having a 2-level deep HTB class tree?? When my HTB tree is only 
1 level
deep the TC filters get fed back properely with the above command!!

BTW I don't get any errors when running the script from a CLI.

Thanks

Robert

 
=
#Downlink speed limits (2048kbit/s max)
DOWNLINK=1500
ROB_DOWNLINK=500
DAVE_DOWNLINK=500
MIKE_DOWNLINK=500
 
#Uplink speed limits (256kbit/s max)
UPLINK=180
ROB_UPLINK=60
DAVE_UPLINK=60
MIKE_UPLINK=60
 
#Interfaces to be shaped
ETH_WAN=eth0
 
#Define IP addresses/address blocks
WAN_IP=192.168.1.2
LAN_IP=192.168.0.0/24
ROB_IP=192.168.0.8/29
DAVE_IP=192.168.0.16/29
MIKE_IP=192.168.0.24/29
DC_LAN_IP=192.168.0.8

tc qdisc add dev $ETH_WAN root handle 1: htb default 160
tc class add dev $ETH_WAN parent 1: classid 1:1 htb rate ${UPLINK}kbit ceil 
${UPLINK}kbit
tc class add dev $ETH_WAN parent 1:1 classid 1:10 htb rate ${ROB_UPLINK}kbit ceil 
${UPLINK}kbit
prio 0
tc class add dev $ETH_WAN parent 1:1 classid 1:20 htb rate ${DAVE_UPLINK}kbit ceil 
${UPLINK}kbit
prio 0
tc class add dev $ETH_WAN parent 1:1 classid 1:30 htb rate ${MIKE_UPLINK}kbit ceil 
${UPLINK}kbit
prio 0
 
 
### Sort packets to the correct user according to the source IP address
tc filter add dev $ETH_WAN parent 1:1 protocol ip prio 1 u32 match ip src ${ROB_IP} 
flowid 1:10
tc filter add dev $ETH_WAN parent 1:1 protocol ip prio 1 u32 match ip src ${DAVE_IP} 
flowid 1:20
tc filter add dev $ETH_WAN parent 1:1 protocol ip prio 1 u32 match ip src ${MIKE_IP} 
flowid 1:30
 
### Sort packets to Rob's LAN addresses 
tc class add dev $ETH_WAN parent 1:10 classid 1:11 htb rate ${ROB_UPLINK}kbit ceil 
${UPLINK}kbit
prio 0 quantum 15000
tc class add dev $ETH_WAN parent 1:10 classid 1:12 htb rate ${ROB_UPLINK}kbit ceil 
${UPLINK}kbit
prio 1 quantum 15000
tc class add dev $ETH_WAN parent 1:10 classid 1:13 htb rate 20kbit ceil ${UPLINK}kbit 
prio 2
quantum 3000
tc class add dev $ETH_WAN parent 1:10 classid 1:14 htb rate 20kbit ceil ${UPLINK}kbit 
prio 2
quantum 3000
tc class add dev $ETH_WAN parent 1:10 classid 1:15 htb rate 10kbit ceil ${UPLINK}kbit 
prio 3
quantum 1500
tc class add dev $ETH_WAN parent 1:10 classid 1:16 htb rate 30kbit ceil ${UPLINK}kbit 
prio 3
quantum 3000
tc qdisc add dev $ETH_WAN parent 1:13 handle 130: sfq perturb 10
tc qdisc add dev $ETH_WAN parent 1:14 handle 140: sfq perturb 10
tc qdisc add dev $ETH_WAN parent 1:15 handle 150: sfq perturb 10
tc qdisc add dev $ETH_WAN parent 1:16 handle 160: sfq perturb 10
tc filter add dev $ETH_WAN parent 1:10 protocol ip prio 1 handle 1 fw classid 1:11
tc filter add dev $ETH_WAN parent 1:10 protocol ip prio 2 handle 2 fw classid 1:12
tc filter add dev $ETH_WAN parent 1:10 protocol ip prio 3 handle 3 fw classid 1:13
tc filter add dev $ETH_WAN parent 1:10 protocol ip prio 4 handle 4 fw classid 1:14
tc filter add dev $ETH_WAN parent 1:10 protocol ip prio 5 handle 5 fw classid 1:15
tc filter add dev $ETH_WAN parent 1:10 protocol ip prio 6 handle 6 fw classid 1:16

### Sort packets to Dave's LAN addresses 



### Sort packets to Mike's LAN addresses 



< OTHER STUFF SNIPPED: packet mangle marking according to PORT and TOS (to give 
handles 1-6 used
in above TC filters) >



Download Yahoo! Messenger now for a chance to win Live At Knebworth DVDs
http://www.yahoo.co.uk/robbiewilliams
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/