# How to find out memory size of each SNMP variable?

**URL:** <https://forums.digi.com/t/how-to-find-out-memory-size-of-each-snmp-variable/13213>\
**Category:** NET+OS\
**Tags:** memory-available, code\_size, connectcore9p9215, snmp\
**Created:** [June 26, 2014, 1:48pm UTC](https://forums.digi.com/t/how-to-find-out-memory-size-of-each-snmp-variable/13213 "2014-06-26T13:48:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![armantoop2000\_at\_yah](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@armantoop2000\_at\_yah](https://forums.digi.com/u/armantoop2000_at_yah)\
**Post date:** [June 26, 2014, 1:48pm UTC](https://forums.digi.com/t/how-to-find-out-memory-size-of-each-snmp-variable/13213/1 "2014-06-26T13:48:01Z")

</div>

Hi,

I am using Connect core 9p9215. Net+Os7.5

I am going to define MIB tables for 1000 variables or more,  
I want to know if there is enough memory size along with other applications in my code.  
Please let me know how I can find what is the memory usage size for each SNMP variable that I can calculate maximum number that I can define in MIB table.

Thanks,

---

<div class="post-metadata">

**Author:** ![Campbell](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Campbell](https://forums.digi.com/u/Campbell)\
**Post date:** [June 27, 2014, 2:11pm UTC](https://forums.digi.com/t/how-to-find-out-memory-size-of-each-snmp-variable/13213/2 "2014-06-27T14:11:38Z")

</div>

The memory usage for the SNMP agent: v1/v2c code ROM size is 48K, RAM 14.5; for the v1/v2c/v3 code the corresponding figures are - ROM 110K, RAM 18.6K. In both cases stack size required does not exceed 2K.  
See Netos api reference guide.

---

<div class="post-metadata">

**Author:** ![armantoop2000\_at\_yah](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@armantoop2000\_at\_yah](https://forums.digi.com/u/armantoop2000_at_yah)\
**Post date:** [June 27, 2014, 2:34pm UTC](https://forums.digi.com/t/how-to-find-out-memory-size-of-each-snmp-variable/13213/3 "2014-06-27T14:34:46Z")

</div>

Thank you for your information, could you please point me to the reference document.  
Do you mean this is the size regardless of how many variables we define?

---

<div class="post-metadata">

**Author:** ![armantoop2000\_at\_yah](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@armantoop2000\_at\_yah](https://forums.digi.com/u/armantoop2000_at_yah)\
**Post date:** [July 2, 2014, 1:46pm UTC](https://forums.digi.com/t/how-to-find-out-memory-size-of-each-snmp-variable/13213/4 "2014-07-02T13:46:56Z")

</div>

Thank you for your information, could you please point me to the reference document.  
Do you mean this is the size regardless of how many variables we define?
