From: chenchacha <chen.chenchacha@foxmail.com>
To: minyard@acm.org
Cc: openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/3] ipmi: msghandler: check the users and msgs causing the system to block
Date: Wed, 30 Mar 2022 00:10:08 +0800 [thread overview]
Message-ID: <tencent_39A03E44FA72A77EC50A3F8F02C71F0EFA09@qq.com> (raw)
In-Reply-To: <20220328154545.GP3457@minyard.net>
On 2022/3/28 23:45, Corey Minyard wrote:
> On Mon, Mar 28, 2022 at 11:27:06PM +0800, chenchacha wrote:
>>
>>> Anyway, a better solution for the kernel side of things, I think, would
>>> be to add limits on the number of users and the number of messages per
>>> user. That's more inline with what other kernel things do. I know of
>>> nothing else in the kernel that does what you are proposing.
>>
>> The precondition for add limits, is that people known that ipmi has too many
>> users and messages cause problems, this patch is to let administrator known
>> that.
>>
>> In addition, different machines have different limit, My server my block
>> 700,000 messages and it's fine, and my NAS pc went to OOM when it probably
>> blocked for 10,000 messages. So, to limit the number of users and messages,
>> can wait until we have accumulated some online experience?
>
> I don't mean a limit on the total number of messages, but a limit on the
> total number of oustanding messages, and a limit on the total number of
> users. No user should have more than a handful of oustanding message,
> and limiting the number of users to 20 or 30 should be more than enough
> for any system.
>
> Having those limits in place would probably help you trace down your
> problem, as you would hit the limits and it should report it at the
> source of the problem.
>
> -corey
Hi Corey:
According to your suggestion, I have don some tests. After adding
limits, event if the bmc hardware fails, the ipmi will not occupy a
large memory in system.
The modifications are in the next version of the patch.
Thanks
--
Chen Guanqiao
prev parent reply other threads:[~2022-03-29 16:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-27 16:47 Chen Guanqiao
2022-03-28 1:38 ` Corey Minyard
[not found] ` <tencent_071EACFAEE3F0CFA14A674C4603E39026F09@qq.com>
2022-03-28 15:45 ` Corey Minyard
2022-03-29 16:10 ` chenchacha [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=tencent_39A03E44FA72A77EC50A3F8F02C71F0EFA09@qq.com \
--to=chen.chenchacha@foxmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=minyard@acm.org \
--cc=openipmi-developer@lists.sourceforge.net \
/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®