« Back to Technical Questions

Different resources available on two SRE SM 700 with AXP 1.5.2

Combination View Flat View Tree View
Hello,

We have two SM 700 modules installed on different routers with AXP 1.5.2 but ¿show resource limits detail¿ gives us different figures in memory:

#1
se-10-10-40-2# show resource limits detail
 
 APPLICATION CPU(INDEX) MEMORY(MB ) DISK(MB )
         AXP        300        100    47692
SYSTEM TOTAL      22000       4038   476923
SYSTEM TOTAL
   ALLOCATED        300        100    47692
   RESOURCES
   AVAILABLE      21700       3938   429231
    WILDCARD
   RESOURCES          0          0        0
       TOTAL
   RESOURCES
   AVAILABLE      21700       3938   429231
 
* Please note that the values in some columns may not add up due to rounding
  errors
The following AXP add-ons are INACTIVE:
     ADDON CPU(INDEX) MEMORY(MB ) DISK(MB )
vserialapi         10          5        0
  eventapi         10         27        0
    iosapi         10          8        0
cli_plugin         10          5        0
 

#2
SRE-700# sh resource limits detail

 APPLICATION CPU(INDEX) MEMORY(MB ) DISK(MB )
          AXP        300        100    47692
 SYSTEM TOTAL      22000       4016   476923
 SYSTEM TOTAL
  ALLOCATED        300        100    47692
    RESOURCES
   AVAILABLE      21700       3916   429231
     WILDCARD
   RESOURCES          0          0        0
        TOTAL
   RESOURCES
   AVAILABLE      21700       3916   429231
 
 * Please note that the values in some columns may not add up due to rounding
  errors
 
  The following AXP add-ons are INACTIVE:
      ADDON CPU(INDEX) MEMORY(MB ) DISK(MB )
 vserialapi         10          5        0
  eventapi         10         27        0
    iosapi         10          8        0
cli_plugin         10          5        0
 
---
We have set up the limit for our package in accordance with #1 limits and with the instruction here:
http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ax/1.6/developer/guide/axpfeat.html#wp1012006
So the package cannot be installed on the #2 SM 700:


Error: Total memory usage 3938 MB exceeds 3916 MB available
Total memory usage 3938 MB exceeds 3916 MB available



Could you please explain:
1.       why memory resources are different?
2.       can we allocate additional resources for #2 module in order to install the package?

Thank you,

Best regards,
Konstantin
 

 

Hi Konstantin,

Could you please check whether the SDRAM on both the modules are same by issuing the "show version" and "show memory" on the module. If they are different that may be the reason for the difference in the memory resources.

And of course you could increase the space of SDRAM on the Service-Module and install the same package.

Thanks,
Anusha

Hi Anusha,

SDRAM are the same on two modules but IDE Drive are not:

#1
se-10-10-40-2# show version
se-10-10-40-2 uptime is 0 weeks, 0 days, 3 hours, 1 minutes
CPU Model:                    Intel(R) Core(TM)2 Solo CPU    L3400  @ 1.86GHz
CPU Speed (MHz):              1862.107
CPU Cache (KByte):            3072
BogoMIPS:                     3726.25
SKU:                          SM-SRE-700-K9
UDI:                          SM-SRE-700-K9:FOC135131C6
Chassis Type:                 C2951
Chassis Serial:               FTX1347AHNM
Module Type:                  SM
Module Serial:                FOC135131C6
IDE Drive:                    500.1GB
IDE Drive:                    2055MB
SDRAM (MByte):                4096
se-10-10-40-2# show memory       (package installed)
SDRAM (MByte):                4096
Total Memory (kB ):            4135904
Active Memory (kB ):           95800
Inactive Memory (kB ):         106416
Other Memory (kB ):            25940
MemoryPool (kB ):              3907748
 
se-10-10-40-2# show memory     (package not installed)
SDRAM (MByte):                4096
Total Memory (kB ):            4135904
Active Memory (kB ):           74136
Inactive Memory (kB ):         94788
Other Memory (kB ):            20220
MemoryPool (kB ):              3946760
 

#2

SRE-700# sh ver
SRE-700 uptime is 0 weeks, 0 days, 5 hours, 14 minutes
CPU Model:                    Intel(R) Core(TM)2 Solo CPU    L3400  @ 1.86GHz
CPU Speed (MHz):              1862.164
CPU Cache (KByte):            3072
BogoMIPS:                     3726.28
SKU:                          SM-SRE-700-K9
UDI:                          SM-SRE-700-K9:FOC15073X5U
Chassis Type:                 C2911
Chassis Serial:               FCZ151320X1
Module Type:                  SM
Module Serial:                FOC15073X5U
IDE Drive:                    500.1GB
IDE Drive:                    1954MB
SDRAM (MByte):                4096
 
SRE-700# sh memory
SDRAM (MByte):                4096
Total Memory (kB ):            4112796
Active Memory (kB ):           71972
Inactive Memory (kB ):         91936
Other Memory (kB ):            19912
MemoryPool (kB ):              3928976
 
SRE-700# sh software versions
Application eXtension Platform (AXP) version (1.5.2)
Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2009 by Cisco Systems, Inc

What can we do to install the package on the #2 module with the limits below?

se-10-10-40-2# sh resource limits
    APPLICATION      CPU(INDEX)      MEMORY(MB )   DISK(MB )
      kav4proxy           21650            3938      10240

 
Thank you,

Best regards,
Konstantin

Anusha,

One more comment. Total Memory and MemoryPool are different. So the package can't be installed on #2 module. We calculated the limit of the package according to this table: http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ax/1.6/developer/guide/axpfeat.html#wp1012006

So, what can we do to install the package on the #2 module?

Thank you,

Best regards,
Konstantin

Hi Konstantin,

I do see that there is a slight descrepency between the two modules of available RAM 3938 MB vs 3916 MB. Does this same descrepency appear after the modules have been reset? In addition, is there a reason why you are specifying in your packaging that the application should utilize all of the available RAM at startup? A better way might be to specify minimum requirements and then make use of our flexible resource allocation feature.

For example, in your shell script your packaging argument for memory right now appears to be set to: ---memory-limit 3938M . This entry specifies that your application utilizes a maximum of that amount and this memory is essentially preallocated at startup. Instead for more flexibility you can use flexible resource allocation to specify the application's minimum memory requirements and allow the system to allocate the additional available RAM. In this case you would have two arguments:

---memory-limit 3500M --memory-wildcard

Using this feature would give your application more flexibility when available resources vary, and workaround the small memory descrepency allowing you to install your application on both modules. You can read more about this feature in the AXP Developer Guide section "Flexible Resource Allocation".

Finally, I noticed that you are using AXP release 1.5.2 . The current release is 1.6.1. Upgrading to this release would be beneficial as there are bug fixes and new features. You can read more about this release, and download the platform files at: http://developer.cisco.com/web/axp/docs .

Thanks,

Brett

Hi Brett,

We will specify minimum requirements with the arguments provided.

The same discrepancy appears even after reboot.

We are using AXP 1.5.2. because our application ran through test plan on this platform which took quite a long time. We will migrate to the latest version of AXP once we have enough resources for testing.

Thank you very much for your support. I will add to the topic/create a new one if we face any issues.