public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* opensm logs can go anywhere in size?
@ 2011-07-07  9:07 Or Gerlitz
       [not found] ` <4E157735.1040901-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Or Gerlitz @ 2011-07-07  9:07 UTC (permalink / raw)
  To: Alex Netes
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Vladimir Sokolovsky, Roi Dayan

Hi Alex,

I just noted that opensm logs can go anywhere in size when one of my
nodes had no space left on device after the opensm log level was raised...

I see that the rpm provided with RHEL6 is setting an  
/etc/logrotate.d/opensm
entry which is a copy of ./scripts/opensm.logrotate from the opensm git 
saying

/var/log/opensm.log {
     missingok
     notifempty
     copytruncate
     weekly
     compress
}

this lacks size limitation, isn't that?

I opened ofa bz ticket #2280 to track that,

Or.
--
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 logs can go anywhere in size?
       [not found] ` <4E157735.1040901-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
@ 2011-07-08  9:20   ` Alex Netes
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Netes @ 2011-07-08  9:20 UTC (permalink / raw)
  To: Or Gerlitz
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Vladimir Sokolovsky, Roi Dayan

Hi Or,

On 12:07 Thu 07 Jul     , Or Gerlitz wrote:
> Hi Alex,
> 
> I just noted that opensm logs can go anywhere in size when one of my
> nodes had no space left on device after the opensm log level was raised...
> 
> I see that the rpm provided with RHEL6 is setting an
> /etc/logrotate.d/opensm
> entry which is a copy of ./scripts/opensm.logrotate from the opensm
> git saying
> 
> /var/log/opensm.log {
>     missingok
>     notifempty
>     copytruncate
>     weekly
>     compress
> }
> 
> this lacks size limitation, isn't that?
> 
> I opened ofa bz ticket #2280 to track that,
> 

It's a good point. What should be the limit? 1MB, 10MB, 100MB? How many
history files (rotate) should be kept?
Moreover, this flooding would also happen if you don't enable logroatate, so
should we enable some default limit to opensm log (--log_limit)?

-- Alex.
--
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-07-08  9:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-07  9:07 opensm logs can go anywhere in size? Or Gerlitz
     [not found] ` <4E157735.1040901-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2011-07-08  9:20   ` Alex Netes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox