From: Ed W <lists@wildgooses.com>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Performance issue due to constant "modprobes"
Date: Sat, 09 Apr 2011 21:39:30 +0100 [thread overview]
Message-ID: <4DA0C402.1090809@wildgooses.com> (raw)
In-Reply-To: <alpine.LNX.2.01.1104090140010.3023@obet.zrqbmnf.qr>
On 09/04/2011 00:42, Jan Engelhardt wrote:
>
> You said `iptables -h` itself would take a long time due to modprobe,
> however, I can spot no invocation of it using `strace -fe execve
> iptables -h` when the desired codes are already loaded into the kernel
> one way or another.
Maciej pointed out this is the case for git as of around 4 days ago, and
in my last email I confirmed I saw the same. I don't expect you to
observe what you say if you use last released 1.4.10?
However, if you use an xtables match then I would expect you to see a
module loaded? (For example running up a fairly vanilla "shorewall"
script manages to cause some 20 odd modules to load). My specific
problem is that on my hardware, invoking modprobe takes some good few ms
(whether something is loaded or not), all modules are compiled into the
kernel, so this time is dead time. In the case of shorewall (which for
sure is a beefy firewall script), this amounts to some several seconds
of wasted time (since nothing is loaded)
I appear to be able to eliminate this delay by modifying
/proc/sys/kernel/modprobe, but I not (apparently) by using "iptables -M
blah"? No one else is commenting on this, so either it's resolved in
current git, or ...?
No one has suggested anything, but basically, is there some way to avoid
running modprobe when the kernel has all the xtables modules compiled
in? ie can we detect that the code is already loaded and avoid trying to
probe for it?
However, many thanks to Maciej - that commit massively improves the
performance of the simple cases!
Cheers
Ed W
next prev parent reply other threads:[~2011-04-09 20:39 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-07 23:16 Performance issue due to constant "modprobes" Ed W
2011-04-08 0:18 ` Jan Engelhardt
2011-04-08 17:11 ` Ed W
2011-04-08 0:47 ` Maciej Żenczykowski
2011-04-08 17:11 ` Ed W
2011-04-08 19:54 ` Jan Engelhardt
2011-04-08 23:22 ` Ed W
2011-04-08 23:42 ` Jan Engelhardt
2011-04-09 20:39 ` Ed W [this message]
2011-04-09 22:30 ` Jan Engelhardt
2011-04-12 21:03 ` Ed W
2011-04-12 22:05 ` Jan Engelhardt
2011-04-13 11:08 ` Ed W
2011-04-13 12:06 ` Jan Engelhardt
2011-04-13 9:10 ` Maciej Żenczykowski
2011-04-13 11:35 ` Ed W
2011-04-13 12:13 ` Jan Engelhardt
2011-04-13 12:35 ` Ed W
2011-04-13 12:45 ` Jan Engelhardt
2011-04-13 16:45 ` Ed W
2011-04-13 19:20 ` Mr Dash Four
2011-04-14 7:07 ` Maciej Żenczykowski
2011-04-14 7:13 ` Maciej Żenczykowski
2011-04-14 7:19 ` Jan Engelhardt
2011-04-18 13:38 ` Patrick McHardy
2011-04-18 16:33 ` Ed W
2011-04-19 1:12 ` Maciej Żenczykowski
2011-04-19 9:03 ` Maciej Żenczykowski
2011-04-19 16:10 ` Ed W
2011-04-20 1:26 ` Maciej Żenczykowski
2011-04-20 6:41 ` Maciej Żenczykowski
2011-04-20 7:31 ` Jozsef Kadlecsik
2011-04-20 8:54 ` Ed W
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=4DA0C402.1090809@wildgooses.com \
--to=lists@wildgooses.com \
--cc=jengelh@medozas.de \
--cc=netfilter-devel@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.