Topics

Zephyr Memory Heap Size

Chintan Patel <meetcd@...>
 

Hi Community,

As per Zephyr Documentation in this link.


The size of the heap memory pool is configurable. The following sizes are supported: 256 bytes, 1024 bytes, 4096 bytes, and 16384 bytes.

Does that mean we can not have heap size greater than 16384 bytes? Please clarify.

Regards,
Chintan

"K.I.R.A.
 

Hi Chintan,
It's a single maximum size block.
I'm wondering which scenario you need such big block.

Best Regards,
Bub

---Original---
From: " via Lists.Zephyrproject.Org"<meetcd=yahoo.com@...>
Date: Wed, Oct 31, 2018 18:04 PM
To: "devel@..."<devel@...>;
Cc: "devel"<devel@...>;
Subject: [Zephyr-devel] Zephyr Memory Heap Size

Hi Community,

As per Zephyr Documentation in this link.


The size of the heap memory pool is configurable. The following sizes are supported: 256 bytes, 1024 bytes, 4096 bytes, and 16384 bytes.

Does that mean we can not have heap size greater than 16384 bytes? Please clarify.

Regards,
Chintan

Chintan Patel <meetcd@...>
 


Hi Bub,

Thanks for reply.

My question is related to only HEAP MEM POOL and not GENERIC MEM POOL.

In other words can I have CONFIG_HEAP_MEM_POOL_SIZE greater than 16k bytes? My heap requirement to satisfy all k_malloc() is higher.

Regards,
Chintan

On Wednesday, October 31, 2018, 5:25:22 PM GMT+5:30, K.I.R.A. <38900484@...> wrote:


Hi Chintan,
It's a single maximum size block.
I'm wondering which scenario you need such big block.

Best Regards,
Bub

---Original---
From: " via Lists.Zephyrproject.Org"<meetcd=yahoo.com@...>
Date: Wed, Oct 31, 2018 18:04 PM
To: "devel@..."<devel@...>;
Cc: "devel"<devel@...>;
Subject: [Zephyr-devel] Zephyr Memory Heap Size

Hi Community,

As per Zephyr Documentation in this link.


The size of the heap memory pool is configurable. The following sizes are supported: 256 bytes, 1024 bytes, 4096 bytes, and 16384 bytes.

Does that mean we can not have heap size greater than 16384 bytes? Please clarify.

Regards,
Chintan

"K.I.R.A.
 

Hi Chintan,
I'm not sure we can do like that.
But you might define your customized mem pool, and take use of k_mem_alloc* instead.

Looking forward to more ideas!

Best Regards,
Bub

---Original---
From: " via Lists.Zephyrproject.Org"<meetcd=yahoo.com@...>
Date: Wed, Oct 31, 2018 21:43 PM
To: "devel@..."<devel@...>;"K.I.R.A."<38900484@...>;
Cc: "devel"<devel@...>;
Subject: Re: [Zephyr-devel] Zephyr Memory Heap Size


Hi Bub,

Thanks for reply.

My question is related to only HEAP MEM POOL and not GENERIC MEM POOL.

In other words can I have CONFIG_HEAP_MEM_POOL_SIZE greater than 16k bytes? My heap requirement to satisfy all k_malloc() is higher.

Regards,
Chintan

On Wednesday, October 31, 2018, 5:25:22 PM GMT+5:30, K.I.R.A. <38900484@...> wrote:


Hi Chintan,
It's a single maximum size block.
I'm wondering which scenario you need such big block.

Best Regards,
Bub

---Original---
From: " via Lists.Zephyrproject.Org"<meetcd=yahoo.com@...>
Date: Wed, Oct 31, 2018 18:04 PM
To: "devel@..."<devel@...>;
Cc: "devel"<devel@...>;
Subject: [Zephyr-devel] Zephyr Memory Heap Size

Hi Community,

As per Zephyr Documentation in this link.


The size of the heap memory pool is configurable. The following sizes are supported: 256 bytes, 1024 bytes, 4096 bytes, and 16384 bytes.

Does that mean we can not have heap size greater than 16384 bytes? Please clarify.

Regards,
Chintan