Gargoyle size comapred to Luci

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
chillifire
Posts: 13
Joined: Mon Jul 06, 2009 7:24 am
Location: Auckland, New Zealand

Gargoyle size comapred to Luci

Post 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

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: Gargoyle size comapred to Luci

Post 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.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

crun
Posts: 2
Joined: Sat Nov 17, 2012 7:21 am

Re: Gargoyle size comapred to Luci

Post 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.

crun
Posts: 2
Joined: Sat Nov 17, 2012 7:21 am

Re: Gargoyle size comapred to Luci

Post by crun »

Just added up the www file sizes in github. JS files are about 524K, .SH files 234K

Post Reply