Page 1 of 1

Gargoyle size comapred to Luci

Posted: Fri Nov 16, 2012 4:55 pm
by chillifire
Hi,

I have not used Gargoyle for a while but am impressed how far it got. I am interested to port it to rampis targets and explore how custom pages can be written and integrated.

One major frustration with Luci, which I use for my custom builds so far, is that it is large, very large, once all dependencies are included.

Can someone advise how much flash memory Gargoyle consumes (approximately) as part of a flash image? I understand this will vary a little from target to target - so even an estimate to the nearest 100kB would be fine to give me an impression.

Thanks in advance

Re: Gargoyle size comapred to Luci

Posted: Fri Nov 16, 2012 6:23 pm
by pbix
You cannot host Gargoyle on a router with less than 8MB of flash. You also need at least 32MB or RAM. Those are the basic facts as of v1.5.8.

I would also think that Gargoyle's UI has a larger footprint than LUCI although I have not data to support that. You will have to investigate on your own to learn more details than that.

Re: Gargoyle size comapred to Luci

Posted: Sat Nov 17, 2012 7:41 am
by crun
If all the javascript was hosted externally (eg at http://www.gargoyle-router.com), and only the actual scripting was on the router, then how much space would it occupy?

-----------
To put this in contect we are using little tp-link routers (4MB flash) as data loggers. This just uses a bash script, and busybox httpd.

No processing is done on the router, it is done on the users web browser in javascript. Only the basic html page is served out of the routers httpd. All the javascript is on the internet. This makes the required flash space on the router very small.
The catch is no-interwebs = no-function.
We plan to use this: http://addyosmani.github.com/basket.js/
to cache all the javascript on the users browser. So if you use it once successfully with internet, then your laptop will be loaded with the javascript, and in future it will work without the internet.
This seems an ok trade off.
There are also limits on browser type ie local storage is html5, but that is ok for us.
----------
This would seem a good approach to add web config to small(4MB) routers.

In our case we really just want the web interface for the user to get the wifi connected and working.

Re: Gargoyle size comapred to Luci

Posted: Wed Nov 28, 2012 6:15 am
by crun
Just added up the www file sizes in github. JS files are about 524K, .SH files 234K