From: gypsy <gypsy@iswest.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] gypsy, and not only
Date: Sat, 28 Jan 2006 17:33:18 +0000 [thread overview]
Message-ID: <43DBAADE.67C44DF3@iswest.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0601280952240.8124@caramidaru.botosani.rdsnet.ro>
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
prev parent reply other threads:[~2006-01-28 17:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43DBAADE.67C44DF3@iswest.com \
--to=gypsy@iswest.com \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox