* OpenSM "port is down" logging too verbose
@ 2011-09-29 17:18 Roland Dreier
[not found] ` <CAL1RGDU9TMN4P5SFZf5x-YXKsx794CLsM4iNfHYYL6pb4DyXXw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Roland Dreier @ 2011-09-29 17:18 UTC (permalink / raw)
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Alex Netes
Hi!
We have a setup where a system has an IB interface that is sort of
optional... ie it won't always be connected but we want the SM always
running and ready to bring up the ports if/when they are connected.
But in this case opensm logs stuff every 10 seconds:
Sep 28 13:41:57 PURE-B18 OpenSM[838]: SM port is down#012
Sep 28 13:41:57 PURE-B18 OpenSM[836]: SM port is down#012
Sep 28 13:42:07 PURE-B18 OpenSM[838]: SM port is down#012
Sep 28 13:42:07 PURE-B18 OpenSM[836]: SM port is down#012
Sep 28 13:42:17 PURE-B18 OpenSM[838]: SM port is down#012
Sep 28 13:42:17 PURE-B18 OpenSM[836]: SM port is down#012
Sep 28 13:42:27 PURE-B18 OpenSM[838]: SM port is down#012
Sep 28 13:42:27 PURE-B18 OpenSM[836]: SM port is down#012
Sep 28 13:42:37 PURE-B18 OpenSM[838]: SM port is down#012
Sep 28 13:42:37 PURE-B18 OpenSM[836]: SM port is down#012
which junks up the syslog quite a bit. It appears this message is
emitted at level OSM_LOG_SYS so there's no way to turn it off at
runtime (or am I misunderstanding the logging code?).
In any case would it be reasonable to print this log message once and
then the next time we check the port, not print it again if the port
was down last time?
- R.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: OpenSM "port is down" logging too verbose
[not found] ` <CAL1RGDU9TMN4P5SFZf5x-YXKsx794CLsM4iNfHYYL6pb4DyXXw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-09-30 15:28 ` Hal Rosenstock
0 siblings, 0 replies; 2+ messages in thread
From: Hal Rosenstock @ 2011-09-30 15:28 UTC (permalink / raw)
To: Roland Dreier; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Alex Netes
Hi Roland,
On 9/29/2011 1:18 PM, Roland Dreier wrote:
> Hi!
>
> We have a setup where a system has an IB interface that is sort of
> optional... ie it won't always be connected but we want the SM always
> running and ready to bring up the ports if/when they are connected.
>
> But in this case opensm logs stuff every 10 seconds:
>
> Sep 28 13:41:57 PURE-B18 OpenSM[838]: SM port is down#012
> Sep 28 13:41:57 PURE-B18 OpenSM[836]: SM port is down#012
> Sep 28 13:42:07 PURE-B18 OpenSM[838]: SM port is down#012
> Sep 28 13:42:07 PURE-B18 OpenSM[836]: SM port is down#012
> Sep 28 13:42:17 PURE-B18 OpenSM[838]: SM port is down#012
> Sep 28 13:42:17 PURE-B18 OpenSM[836]: SM port is down#012
> Sep 28 13:42:27 PURE-B18 OpenSM[838]: SM port is down#012
> Sep 28 13:42:27 PURE-B18 OpenSM[836]: SM port is down#012
> Sep 28 13:42:37 PURE-B18 OpenSM[838]: SM port is down#012
> Sep 28 13:42:37 PURE-B18 OpenSM[836]: SM port is down#012
>
> which junks up the syslog quite a bit. It appears this message is
> emitted at level OSM_LOG_SYS so there's no way to turn it off at
> runtime (or am I misunderstanding the logging code?).
>
> In any case would it be reasonable to print this log message once and
> then the next time we check the port, not print it again if the port
> was down last time?
Yes, that seems totally reasonable to me. Patch for this to follow shortly.
-- Hal
> - R.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-30 15:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-29 17:18 OpenSM "port is down" logging too verbose Roland Dreier
[not found] ` <CAL1RGDU9TMN4P5SFZf5x-YXKsx794CLsM4iNfHYYL6pb4DyXXw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-30 15:28 ` Hal Rosenstock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox