From: Paul Lambert <paul@digis.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] MARK causes high CPU usage / using tc in conjunction
Date: Fri, 28 May 2004 15:50:00 +0000 [thread overview]
Message-ID: <40B75FA8.7070805@digis.net> (raw)
In-Reply-To: <40AFC555.1010900@digis.net>
I'm actually using the WISP Billing System from PowerNOC. I talked with
them about your idea and they implemented it for me already. It is
working great. Thanks everyone for your help!
Andreas Klauer wrote:
> Am Saturday 22 May 2004 23:25 schrieb Paul Lambert:
>
>>This setup has worked well for more than 1000 devices but as the network
>>has grown to 3000+ devices the CPU is not keeping up.
>
>
> I guess you mean 3000+ clients, not actual network devices on one machine.
>
>
>>*** eth0 is MASQUERADE'd so I mark the packet on eth1 ***
>>*** I have narrowed it down to this one entry sucking all the CPU ***
>>iptables -t mangle -A PREROUTING -s 10.10.6.20 -i eth1 -j MARK
>>--set-mark 0x843
>
>
> Well, if you have 3000+ rules like that, it will certainly slow you down.
> You should use some kind of hashing. How that is done for tc filters,
> is described here: http://www.lartc.org/lartc.html#LARTC.ADV-FILTER.HASHING
>
> Apply the same (or a similar) mechanism to your iptables ruleset and
> you should get improved speeds.
>
> HTH
> Andreas
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2004-05-28 15:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-22 21:25 [LARTC] MARK causes high CPU usage / using tc in conjunction with MASQ Paul Lambert
2004-05-23 18:07 ` Andreas Klauer
2004-05-23 22:30 ` [LARTC] MARK causes high CPU usage / using tc in conjunction Ed Wildgoose
2004-05-23 23:27 ` [LARTC] MARK causes high CPU usage / using tc in conjunction with MASQ Andreas Klauer
2004-05-24 0:50 ` [LARTC] MARK causes high CPU usage / using tc in conjunction Paul Lambert
2004-05-24 21:20 ` [LARTC] MARK causes high CPU usage / using tc in conjunction with MASQ miller69
2004-05-28 15:50 ` Paul Lambert [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=40B75FA8.7070805@digis.net \
--to=paul@digis.net \
--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 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.