Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1651677

Re: [PATCH v2 4/5] kmod: add helpers for getting kmod limit

From "Luis R. Rodriguez" <mcgrof@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 4/5] kmod: add helpers for getting kmod limit
Date 2017-05-27 03:30 +0200
Message-ID <tLyIn-4Vw-153@gated-at.bofh.it> (permalink)
References <tIGM1-4u0-5@gated-at.bofh.it> <tLb8Z-6VX-3@gated-at.bofh.it> <tLb8Z-6VX-11@gated-at.bofh.it> <tLbLH-7dl-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, May 25, 2017 at 05:56:51PM -0700, Dmitry Torokhov wrote:
> On Thu, May 25, 2017 at 05:16:29PM -0700, Luis R. Rodriguez wrote:
> > This adds helpers for getting access to the kmod limit from
> > userspace. This knob should help userspace more gracefully and
> > deterministically handle module loading.
> 
> I think more details is needed before we add a new ABI to the kernel.
> Why can't userspace submit as much as it wants and the kernel decide how
> much it will service at once?

I suppose I should clarify on the commit log then, that without this heuristic
of #ifdef get_kmod_umh_limit -- *iff* userspace today is allowing more than 50
threads it can mean userspace is allowing a modprobe to fail. Check the results
of test 0008 and 0009 on dmesg, you can end up with really unexpected results.

This knob enables userspace to gracefully send in as many requests as allowed.
I guess this could just be a kernel revision check...  given that once
throttling go in it can be as crazy as it wants.

Also I suppose one could argue that *since* this has not been a real issue
*yet* (we assume), the old userspace of sending as many requests as it needs
is fine.

Will drop this!

  Luis

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 4/5] kmod: add helpers for getting kmod limit "Luis R. Rodriguez" <mcgrof@kernel.org> - 2017-05-26 02:20 +0200
  Re: [PATCH v2 4/5] kmod: add helpers for getting kmod limit Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-05-26 03:00 +0200
    Re: [PATCH v2 4/5] kmod: add helpers for getting kmod limit "Luis R. Rodriguez" <mcgrof@kernel.org> - 2017-05-27 03:30 +0200

csiph-web