From: Dmitriy Cherkasov <dmitriy@mperpetuo.com>
To: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: [Xenomai] [PATCH] cobalt: increase default system heap size
Date: Tue, 1 Dec 2015 11:29:05 -0800 [thread overview]
Message-ID: <565DF501.8060805@mperpetuo.com> (raw)
On arm64, running the included switchtest program hits the default
system heap limit of 256k.
The program creates 97 threads, each allocating space on the system heap
for struct cobalt_thread (3616 bytes on arm64). This adds up to a total
of 350725 bytes required.
This patch increases the default system heap size to 512k.
---
kernel/cobalt/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/cobalt/Kconfig b/kernel/cobalt/Kconfig
index afa62d2..24f09e8 100644
--- a/kernel/cobalt/Kconfig
+++ b/kernel/cobalt/Kconfig
@@ -257,7 +257,7 @@ config XENO_OPT_REGISTRY_NRSLOTS
config XENO_OPT_SYS_HEAPSZ
int "Size of system heap (Kb)"
- default 256
+ default 512
help
The system heap is used for various internal allocations by
the Cobalt kernel. The size is expressed in Kilobytes.
--
1.9.1
next reply other threads:[~2015-12-01 19:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-01 19:29 Dmitriy Cherkasov [this message]
2015-12-02 6:14 ` [Xenomai] [PATCH] cobalt: increase default system heap size Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=565DF501.8060805@mperpetuo.com \
--to=dmitriy@mperpetuo.com \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.