public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: Roland Dreier <roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: OpenSM "port is down" logging too verbose
Date: Fri, 30 Sep 2011 11:28:59 -0400	[thread overview]
Message-ID: <4E85E03B.6020108@dev.mellanox.co.il> (raw)
In-Reply-To: <CAL1RGDU9TMN4P5SFZf5x-YXKsx794CLsM4iNfHYYL6pb4DyXXw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

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

      parent reply	other threads:[~2011-09-30 15:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 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=4E85E03B.6020108@dev.mellanox.co.il \
    --to=hal-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
    --cc=alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=roland-BHEL68pLQRGGvPXPguhicg@public.gmane.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