Hi Benjamin,
Very helpful, thanks much for your responses and sharing your observations with available free RAM after a Kura boot, and extra consumption when apps are
started!
From: Benjamin Cabé [mailto:benjamin@xxxxxxxxxxx]
Sent: Friday, May 27, 2016 1:06 PM
To: kura-dev@xxxxxxxxxxx
Cc: Sridhar, Kanchana
Subject: Re: [kura-dev] Eclipse Kura footprint
Hi Kanchana,
The numbers are with no app running for both Node-RED and Kura, i.e it’s the RAM consumption right after a cold-start and opening the home web page. I do not have figures
for running apps but I can simply tell you that very recently, I’ve experimented with Kura running on a system with only 2MB of free RAM left once Kura was fully started and from that point, any extra app actually adds very little additional RAM consumption
as most of the Java classes are already in memory, and the app typically re-use existing Kura service that are also already loaded in memory. So those 2MB of actual free RAM actually seem to be enough for “common” operations (but again, I haven’t done further
and more rigourous tests to support that number).
Regarding Node-RED, yes, it runs on Node.js which uses V8, and the test was done on node-v0.10.29 (which is a fairly old version, but that’s the one I had on my Raspberry
Pi)
Hope this helps!
Benjamin –
Hi Benjamin,
Just wanted to circle back on the footprint comparison/analysis.
On the Kura vs Node-Red footprint, are the footprint numbers those for a running app (or benchmark) that uses the Kura APIs? Also, I was curious if the Node-Red
runtime is V8 in this study?
A couple weeks ago I did run some tests to get a sense of the actual footprint of Eclipse Kura on a system, and more specifically requirements in terms of disk
space, RAM, as well as some figures on the "cold" startup time (I.e from "Kura not running", to "all Kura default services up and running").
I have to admit I was positively surprised about the fact that the overhead some might expect from Java-based runtimes is actually not that much of an issue,
I would say, for the kind of devices Eclipse Kura targets.
Please feel free to amend the Wiki page with comments, or add info regarding other h/w platforms or runtimes.
|
Eclipse Kura
|
Node-RED
|
VM
|
JVM
|
Node.JS
|
VM footprint (disk)
|
~15 MB (Oracle JVM compact2)
|
43 MB (node-v5.9.1)
|
Runtime footprint (disk)
|
44 MB (Kura 1.4)
|
62 MB
|
Total footprint (disk)
|
59 MB
|
105 MB
|
Startup time (on Rasp. Pi 3)
|
~8 sec
|
~5 sec
|
Memory footprint (RAM)
|
< 20 MB
|
22 MB
|
Benjamin Cabé – IoT Evangelist
Eclipse Foundation
+33 (0) 619196101
@kartben
_______________________________________________ kura-dev mailing list
kura-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev
|