From: Alex Bligh - linux-kernel <linux-kernel@alex.org.uk>
To: linux-kernel@vger.kernel.org
Cc: Alex Bligh - linux-kernel <linux-kernel@alex.org.uk>
Subject: 2.2.19 poor speed creating/deleting interfaces
Date: Fri, 05 Oct 2001 23:45:46 +0100 [thread overview]
Message-ID: <393662386.1002325546@[195.224.237.69]> (raw)
I am looking at a VRRP implementation which is problematic
on large numbers of interfaces. The configuration has
over 300 interfaces, which, each being on their own
VLAN of the same physical interface, tend to change
state at the same time.
The VRRP stuff runs mostly as a kernel thread, which
on a state change, causes the VRRP virtual interface
to be added/removed. It does this via a call to
devinet_ioctl (with normal segment kludges), and
does (essentially) SIOCIFADDR, SIOCIFMASK, SIOCIFBRADDR,
on the virtual VLAN interface, and a SIOCADDMULTI(*) on
the main VLAN interface. On transition to VRRP backup,
it does the opposite (DELMULTI, the SOICIFFLAGS to
delete the interface).
It all works, but each interface addition / removal
takes over a tenth of a second. This isn't great
when you have over 300 of them and are trying to
do hot standby (>40 seconds for some VLANs is
not so hot).
I'm using Acenics, 2.2.19, patches for VRRP
VLAN, Acenic, to log rather less and not
try and load modules for VLAN interfaces.
Any idea what takes the time in interface
addition / removal and/or multicast addition / removal?
'All' the 300 odd kernel threads do is look
at a state machine, issue IOCTLs, queue
the odd packet, and call interruptible_sleep_on_timeout.
I would have thought the non-ioctl stuff should be efficient.
(*)=don't ask why I need to do this bit
--
Alex Bligh
reply other threads:[~2001-10-05 22:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='393662386.1002325546@[195.224.237.69]' \
--to=linux-kernel@alex.org.uk \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®