public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] opensm: enable perfmgr build by default
@ 2011-07-06 22:11 Ira Weiny
       [not found] ` <20110706151116.79c187ea.weiny2-i2BcT+NCU+M@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Ira Weiny @ 2011-07-06 22:11 UTC (permalink / raw)
  To: Alex Netes; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

This should at least be compiled in by default.


Signed-off-by: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
---
 config/osmvsel.m4 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/osmvsel.m4 b/config/osmvsel.m4
index c24930b..2c91f63 100644
--- a/config/osmvsel.m4
+++ b/config/osmvsel.m4
@@ -206,12 +206,12 @@ AC_DEFUN([OPENIB_OSM_PERF_MGR_SEL], [
 
 dnl enable the perf-mgr
 AC_ARG_ENABLE(perf-mgr,
-[  --enable-perf-mgr Enable the performance manager (default no)],
+[  --enable-perf-mgr Enable the performance manager (default yes)],
    [case $enableval in
      yes) perf_mgr=yes ;;
      no)  perf_mgr=no ;;
    esac],
-   perf_mgr=no)
+   perf_mgr=yes)
 AC_ARG_ENABLE(perf-mgr-profile,
 [  --enable-perf-mgr-profile Enable the performance manager profiling (default no)],
 	[case $enableval in
-- 
1.7.1

--
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 related	[flat|nested] 8+ messages in thread

* Re: [PATCH] opensm: enable perfmgr build by default
       [not found] ` <20110706151116.79c187ea.weiny2-i2BcT+NCU+M@public.gmane.org>
@ 2011-07-08 10:49   ` Alex Netes
       [not found]     ` <20110708104927.GC7420-iQai9MGU/dyyaiaB+Ve85laTQe2KTcn/@public.gmane.org>
  2011-07-13 12:42   ` Alex Netes
  1 sibling, 1 reply; 8+ messages in thread
From: Alex Netes @ 2011-07-08 10:49 UTC (permalink / raw)
  To: Ira Weiny; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hi Ira,

On 15:11 Wed 06 Jul     , Ira Weiny wrote:
> This should at least be compiled in by default.
> 
> 
> Signed-off-by: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
> ---

Sounds like a good idea.
If we change the defaults, why should we keep this option for configure
script? Is it really needed?
What about performance manager profiling? Shout it also compiled by default?

-- 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] 8+ messages in thread

* Re: [PATCH] opensm: enable perfmgr build by default
       [not found]     ` <20110708104927.GC7420-iQai9MGU/dyyaiaB+Ve85laTQe2KTcn/@public.gmane.org>
@ 2011-07-08 16:06       ` Ira Weiny
       [not found]         ` <20110708090658.f15b95b0.weiny2-i2BcT+NCU+M@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Ira Weiny @ 2011-07-08 16:06 UTC (permalink / raw)
  To: Alex Netes; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Fri, 8 Jul 2011 03:49:27 -0700
Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> wrote:

> Hi Ira,
> 
> On 15:11 Wed 06 Jul     , Ira Weiny wrote:
> > This should at least be compiled in by default.
> > 
> > 
> > Signed-off-by: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
> > ---
> 
> Sounds like a good idea.
> If we change the defaults, why should we keep this option for configure
> script? Is it really needed?

For our needs, no.  However, when we first put the PerfMgr in OpenSM there was some concern for developers who may be using OpenSM in an embedded environment.  Since the option exists (less work for me!) I did not see a good reason to take it out so that those developers could still compile it out if they wanted.  If this is no longer a requirement then, yes, I can remove the configure option.

Does anyone else want to chime in here?

> What about performance manager profiling? Shout it also compiled by default?

I think this may affect performance.  Although I don't think by much.  Since it is more of a development/debugging tool rather than something I think the user would want I thought it should still be a compile option.  If we do compile it on by default I would put an option in opensm.conf.

Let me know and I can alter the patch as you wish,
Ira

> 
> -- Alex


-- 
Ira Weiny
Math Programmer/Computer Scientist
Lawrence Livermore National Lab
925-423-8008
weiny2-i2BcT+NCU+M@public.gmane.org
--
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] 8+ messages in thread

* Re: [PATCH] opensm: enable perfmgr build by default
       [not found]         ` <20110708090658.f15b95b0.weiny2-i2BcT+NCU+M@public.gmane.org>
@ 2011-07-08 16:23           ` Hal Rosenstock
       [not found]             ` <4E172F16.1000708-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Hal Rosenstock @ 2011-07-08 16:23 UTC (permalink / raw)
  To: Ira Weiny; +Cc: Alex Netes, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Ira,

On 7/8/2011 12:06 PM, Ira Weiny wrote:
> However, when we first put the PerfMgr in OpenSM there was some concern for developers who may be using OpenSM in an embedded environment.

Do you recall the specific concerns ? I forget and would rather not dig
them out unless really necessary...

-- Hal
--
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] 8+ messages in thread

* Re: [PATCH] opensm: enable perfmgr build by default
       [not found]             ` <4E172F16.1000708-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2011-07-08 17:13               ` Ira Weiny
       [not found]                 ` <20110708101313.60512582.weiny2-i2BcT+NCU+M@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Ira Weiny @ 2011-07-08 17:13 UTC (permalink / raw)
  To: Hal Rosenstock
  Cc: Alex Netes, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Fri, 8 Jul 2011 09:23:50 -0700
Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:

> Ira,
> 
> On 7/8/2011 12:06 PM, Ira Weiny wrote:
> > However, when we first put the PerfMgr in OpenSM there was some concern for developers who may be using OpenSM in an embedded environment.
> 
> Do you recall the specific concerns ? I forget and would rather not dig
> them out unless really necessary...

If I recall there was no "specific" concern just that someone _may_ do this.

Also I think there was some concern about the PerfMgr taking too much processing time with it's threads.  But I think that is configurable by the number of SMP's on the wire and turning it off if one prefers a different model.

Ira

> 
> -- Hal


-- 
Ira Weiny
Math Programmer/Computer Scientist
Lawrence Livermore National Lab
925-423-8008
weiny2-i2BcT+NCU+M@public.gmane.org
--
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] 8+ messages in thread

* Re: [PATCH] opensm: enable perfmgr build by default
       [not found]                 ` <20110708101313.60512582.weiny2-i2BcT+NCU+M@public.gmane.org>
@ 2011-07-10  8:54                   ` Alex Netes
       [not found]                     ` <20110710085418.GA8520-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Netes @ 2011-07-10  8:54 UTC (permalink / raw)
  To: Ira Weiny
  Cc: Hal Rosenstock,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hi Ira,

On 10:13 Fri 08 Jul     , Ira Weiny wrote:
> On Fri, 8 Jul 2011 09:23:50 -0700
> Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:
> 
> > Ira,
> > 
> > On 7/8/2011 12:06 PM, Ira Weiny wrote:
> > > However, when we first put the PerfMgr in OpenSM there was some concern for developers who may be using OpenSM in an embedded environment.
> > 
> > Do you recall the specific concerns ? I forget and would rather not dig
> > them out unless really necessary...
> 
> If I recall there was no "specific" concern just that someone _may_ do this.
> 
> Also I think there was some concern about the PerfMgr taking too much processing time with it's threads.  But I think that is configurable by the number of SMP's on the wire and turning it off if one prefers a different model.
> 

PerfMgr adds ~200K to opensm binary (34K when stripped).
During runtime PerfMgr adds ~270K to opensm memory allocation, when running
with PerfMgr disabled.

During the opensm initialization, osm_perfmgr_init() and osm_perfmgr_bind()
are called even if PerfMgr is disabled. I guess it's needed, if we want to
enable PerfMgr later on the fly.
I'm not sure though, how calling to osm_perfmgr_bind() affects performance.

One more thing, perfmgr_sweep() is called each (pm->sweep_time_s * 1000) no
matter if PerfMgr is enabled or disabled. Though it does nothing, I think it's
better to execute perfmgr_sweep() only when PerfMgr is enabled.


-- 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] 8+ messages in thread

* Re: [PATCH] opensm: enable perfmgr build by default
       [not found]                     ` <20110710085418.GA8520-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
@ 2011-07-13  1:03                       ` Ira Weiny
  0 siblings, 0 replies; 8+ messages in thread
From: Ira Weiny @ 2011-07-13  1:03 UTC (permalink / raw)
  To: Alex Netes
  Cc: Hal Rosenstock,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Sun, 10 Jul 2011 01:54:18 -0700
Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> wrote:

> Hi Ira,
> 
> On 10:13 Fri 08 Jul     , Ira Weiny wrote:
> > On Fri, 8 Jul 2011 09:23:50 -0700
> > Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:
> > 
> > > Ira,
> > > 
> > > On 7/8/2011 12:06 PM, Ira Weiny wrote:
> > > > However, when we first put the PerfMgr in OpenSM there was some concern for developers who may be using OpenSM in an embedded environment.
> > > 
> > > Do you recall the specific concerns ? I forget and would rather not dig
> > > them out unless really necessary...
> > 
> > If I recall there was no "specific" concern just that someone _may_ do this.
> > 
> > Also I think there was some concern about the PerfMgr taking too much processing time with it's threads.  But I think that is configurable by the number of SMP's on the wire and turning it off if one prefers a different model.
> > 
> 
> PerfMgr adds ~200K to opensm binary (34K when stripped).
> During runtime PerfMgr adds ~270K to opensm memory allocation, when running
> with PerfMgr disabled.
> 
> During the opensm initialization, osm_perfmgr_init() and osm_perfmgr_bind()
> are called even if PerfMgr is disabled. I guess it's needed, if we want to
> enable PerfMgr later on the fly.

Correct.

> I'm not sure though, how calling to osm_perfmgr_bind() affects performance.

I don't think it should affects performance.

> 
> One more thing, perfmgr_sweep() is called each (pm->sweep_time_s * 1000) no
> matter if PerfMgr is enabled or disabled. Though it does nothing, I think it's
> better to execute perfmgr_sweep() only when PerfMgr is enabled.

Subsequent patch on it's way.

Ira

> 
> 
> -- Alex


-- 
Ira Weiny
Math Programmer/Computer Scientist
Lawrence Livermore National Lab
925-423-8008
weiny2-i2BcT+NCU+M@public.gmane.org
--
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] 8+ messages in thread

* Re: [PATCH] opensm: enable perfmgr build by default
       [not found] ` <20110706151116.79c187ea.weiny2-i2BcT+NCU+M@public.gmane.org>
  2011-07-08 10:49   ` Alex Netes
@ 2011-07-13 12:42   ` Alex Netes
  1 sibling, 0 replies; 8+ messages in thread
From: Alex Netes @ 2011-07-13 12:42 UTC (permalink / raw)
  To: Ira Weiny; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hi Ira,

On 15:11 Wed 06 Jul     , Ira Weiny wrote:
> This should at least be compiled in by default.
> 
> 
> Signed-off-by: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
> ---

Applied, thanks.
--
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] 8+ messages in thread

end of thread, other threads:[~2011-07-13 12:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-06 22:11 [PATCH] opensm: enable perfmgr build by default Ira Weiny
     [not found] ` <20110706151116.79c187ea.weiny2-i2BcT+NCU+M@public.gmane.org>
2011-07-08 10:49   ` Alex Netes
     [not found]     ` <20110708104927.GC7420-iQai9MGU/dyyaiaB+Ve85laTQe2KTcn/@public.gmane.org>
2011-07-08 16:06       ` Ira Weiny
     [not found]         ` <20110708090658.f15b95b0.weiny2-i2BcT+NCU+M@public.gmane.org>
2011-07-08 16:23           ` Hal Rosenstock
     [not found]             ` <4E172F16.1000708-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-07-08 17:13               ` Ira Weiny
     [not found]                 ` <20110708101313.60512582.weiny2-i2BcT+NCU+M@public.gmane.org>
2011-07-10  8:54                   ` Alex Netes
     [not found]                     ` <20110710085418.GA8520-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2011-07-13  1:03                       ` Ira Weiny
2011-07-13 12:42   ` Alex Netes

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