netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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 00:22:59 +0100	[thread overview]
Message-ID: <4D9F98D3.5070802@wildgooses.com> (raw)
In-Reply-To: <alpine.LNX.2.01.1104082152500.24599@obet.zrqbmnf.qr>

On 08/04/2011 20:54, Jan Engelhardt wrote:
> 
> On Friday 2011-04-08 19:11, Ed W wrote:
>> Starting "shorewall"
>> - using busybox modprobe + released iptables = several minutes...
>> - module-init-tools + released iptables = 12s
>> - module-init-tools + your commit = 7.7s
>> - module-init-tools + patching out modprobe completely = 4.9s
>>
>> So, whilst your patch has a huge positive benefit, I'm still seeing a
>> substantial amount of cpu going to useless modprobing.
> 
> Which is only natural, because the kernel loads stuff. If you have
> a problem with time (why so?) you should <*> the xtables modules,
> and just leave iptables in its origin state.

I'm sorry that I haven't managed to explain my situation clearly.
However, I'm trying very hard to explain that I *have* got <*> in my
kernel. There are no modules.

Stated another way.  I don't have any kernel modules - everything is
compiled into the kernel

Just to try another tack: iptables is calling modprobe even though there
is *no* module to load (it's already compiled into the kernel)


So, to restate my original problem:
With a latest released busybox/iptables system it takes 1.5 secs to run
a simple "iptables -h", ie no action actually performed and no modules
on the system to even load.... Staggering...

(Part of that problem is that the busybox modprobe call is very slow.
However, even switching to a "fatter" modprobe takes nearly 5ms to run
"iptables -h" - that really starts to stack up...)


Apologies if I now over laboured the point, but do you see my issue?

Thanks for any thoughts on reducing the number of calls to modprobe
(given that there are no modules to load on my system)

Ed W


  reply	other threads:[~2011-04-08 23:23 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 [this message]
2011-04-08 23:42         ` Jan Engelhardt
2011-04-09 20:39           ` Ed W
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=4D9F98D3.5070802@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).