trafodion-codereview mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nonstop-qfchen <...@git.apache.org>
Subject [GitHub] incubator-trafodion pull request: fix JIRA-1739 to aggressively al...
Date Wed, 06 Jan 2016 23:59:04 GMT
Github user nonstop-qfchen commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/250#discussion_r49026922
  
    --- Diff: core/sql/sqlcomp/nadefaults.cpp ---
    @@ -5914,6 +5866,73 @@ enum DefaultConstants NADefaults::validateAndInsert(const char
*attrName,
     
     } // NADefaults::validateAndInsert()
     
    +float NADefaults::computeNumESPsPerCore(NABoolean aggressive)
    +{
    +   #define DEFAULT_ESPS_PER_NODE 2   // for conservation allocation
    +   #define DEFAULT_ESPS_PER_CORE 0.5 // for aggressive allocation
    +
    +     // Make sure the gpClusterInfo points at an NAClusterLinux object.
    +     // In osim simulation mode, the pointer can point at a NAClusterNSK
    +     // object, for which the method numTSEsForPOS() is not defined.
    +   NAClusterInfoLinux* gpLinux = dynamic_cast<NAClusterInfoLinux*>(gpClusterInfo);
    +   assert(gpLinux);		
    +
    +   // cores per node
    +   Lng32 coresPerNode = gpClusterInfo->numberOfCpusPerSMP();
    +
    +   if ( aggressive ) {
    +      float totalMemory = gpLinux->totalMemoryAvailable(); // per Node, in KB
    +      totalMemory /= 1024; // per Node, in GB
    --- End diff --
    
    yes, it is turned off now.  The performance team is running a test with the
    feature turned on. Once everything is OK, the feature will be turned on by
    default.
    
    On Wed, Jan 6, 2016 at 5:17 PM, Hans Zeller <notifications@github.com>
    wrote:
    
    > In core/sql/sqlcomp/nadefaults.cpp
    > <https://github.com/apache/incubator-trafodion/pull/250#discussion_r49023626>
    > :
    >
    > > +{
    > > +   #define DEFAULT_ESPS_PER_NODE 2   // for conservation allocation
    > > +   #define DEFAULT_ESPS_PER_CORE 0.5 // for aggressive allocation
    > > +
    > > +     // Make sure the gpClusterInfo points at an NAClusterLinux object.
    > > +     // In osim simulation mode, the pointer can point at a NAClusterNSK
    > > +     // object, for which the method numTSEsForPOS() is not defined.
    > > +   NAClusterInfoLinux* gpLinux = dynamic_cast<NAClusterInfoLinux*>(gpClusterInfo);
    > > +   assert(gpLinux);		
    > > +
    > > +   // cores per node
    > > +   Lng32 coresPerNode = gpClusterInfo->numberOfCpusPerSMP();
    > > +
    > > +   if ( aggressive ) {
    > > +      float totalMemory = gpLinux->totalMemoryAvailable(); // per Node,
in KB
    > > +      totalMemory /= 1024; // per Node, in GB
    >
    > For conversion KB to GB we would need to divide by 1024*1024?
    >
    > —
    > Reply to this email directly or view it on GitHub
    > <https://github.com/apache/incubator-trafodion/pull/250/files#r49023626>.
    >
    
    
    
    -- 
    Regards, --Qifan



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message