* [LARTC] gypsy, and not only
@ 2006-01-28 7:57 brick
2006-01-28 13:59 ` Adam James
2006-01-28 17:33 ` gypsy
0 siblings, 2 replies; 3+ messages in thread
From: brick @ 2006-01-28 7:57 UTC (permalink / raw)
To: lartc
hi
i ve seen one of your replies here and i saw that you receomend 2
modifications in the kernel files in order to improve htb.
first in pkt_sched.h, changing PSCHED_JIFFIES to PSCHED_CPU.
and then, sch_htb.c, changing HYSTERESIS from 1 to 0.
is it that simple?
i mean i just change these here variables and i get better results?
i ve done a search and found the first file in 3 locations. where exactly
do i do these modifications?
tnx
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] gypsy, and not only
2006-01-28 7:57 [LARTC] gypsy, and not only brick
@ 2006-01-28 13:59 ` Adam James
2006-01-28 17:33 ` gypsy
1 sibling, 0 replies; 3+ messages in thread
From: Adam James @ 2006-01-28 13:59 UTC (permalink / raw)
To: lartc
On Sat, 2006-01-28 at 09:57 +0200, brick@caramidaru.botosani.rdsnet.ro
wrote:
> i ve seen one of your replies here and i saw that you receomend 2
> modifications in the kernel files in order to improve htb.
> first in pkt_sched.h, changing PSCHED_JIFFIES to PSCHED_CPU.
> and then, sch_htb.c, changing HYSTERESIS from 1 to 0.
> is it that simple?
> i mean i just change these here variables and i get better results?
> i ve done a search and found the first file in 3 locations. where exactly
> do i do these modifications?
http://edseek.com/~jasonb/articles/traffic_shaping/buildkernel.html#sourceopts answers this.
Kernels newer than 2.6.8 allow you to change the clock source without
editing any source files. Look under 'Networking ---> QoS and/or fair
queueing ---> Packet scheduler clock source (CPU cycle counter)'.
Keep in mind that if you use any kind of CPU frequency scaling, do _not_
use PSCHED_CPU, as variable clock speeds are not taken into account.
HTH,
--
Adam James <ad@heliosphan.co.uk>
PROOF OF GOD'S EXISTENCE #87:
ARGUMENT FROM BIBLICAL HISTORY
(1) Many modern historians think that there probably was somebody named
Jesus, maybe.
(2) Therefore, God exists.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] gypsy, and not only
2006-01-28 7:57 [LARTC] gypsy, and not only brick
2006-01-28 13:59 ` Adam James
@ 2006-01-28 17:33 ` gypsy
1 sibling, 0 replies; 3+ messages in thread
From: gypsy @ 2006-01-28 17:33 UTC (permalink / raw)
To: lartc
brick@caramidaru.botosani.rdsnet.ro wrote:
>
> hi
> i ve seen one of your replies here and i saw that you receomend 2
> modifications in the kernel files in order to improve htb.
> first in pkt_sched.h, changing PSCHED_JIFFIES to PSCHED_CPU.
> and then, sch_htb.c, changing HYSTERESIS from 1 to 0.
> is it that simple?
> i mean i just change these here variables and i get better results?
> i ve done a search and found the first file in 3 locations. where exactly
> do i do these modifications?
> tnx
Hi,
The place to change JIFFIES to CPU is in the kernel source, which for me
is /usr/src/linux-2.4.32/include/net/pkt_sched.h
This is a MUST DO.
The place to change HYSTERESIS is
/usr/src/linux-2.4.32/net/sched/sch_htb.c
No, it is not quite that simple. You should experiment with HYSTERESIS
to see what works best. For ATM, I recommend 0.
Use an editor to change the kernel source. Make sure you have a working
.config in the source tree (that can be the hard part, but your distro
should provide the .config that matches your kernel). Get into the
source tree:
cd /usr/src/linux (if there is a symlink)
or
cd /usr/src/linux-2.4.32
rm .version
make oldconfig
Check .config to be sure it looks like what you want.
The syntax of the following is a personal preference:
make dep ; make clean ; make bzImage
Check to be sure the kernel built properly.
make modules ; make modules_install
Install your new kernel. Run your boot loader (lilo / grub / ??).
modprobe sch_htb
lsmod
If all is OK, you don't need to reboot. Otherwise fix anything that a
reboot won't fix and reboot.
--
gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-28 17:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-28 7:57 [LARTC] gypsy, and not only brick
2006-01-28 13:59 ` Adam James
2006-01-28 17:33 ` gypsy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.