* [gentoo-embedded] busybox + python questions
@ 2006-08-09 22:36 Philippe Clérié
2006-08-09 23:39 ` Mike Frysinger
0 siblings, 1 reply; 6+ messages in thread
From: Philippe Clérié @ 2006-08-09 22:36 UTC (permalink / raw
To: gentoo-embedded
The default configuration of busybox (1.1.3) installs a /bin/bb executable to
which nothing apparently is linked. I renamed it, played with a few applets
and so far nothing is broken. What is that bb for?
I am discovering that python is really not something I might want installed on
a small system. The base package is about 22MB on disk. 2/3 of that it seems
are pyc and pyo files. Plus there are quite a few packages I don't anticipate
needing. Can we reduce that footprint? Or do I have to give up on python?
I am shooting for a 16MB or less root ramdisk.
--
Philippe
------
The trouble with common sense is that it is so uncommon.
<Anonymous>
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] busybox + python questions
2006-08-09 22:36 [gentoo-embedded] busybox + python questions Philippe Clérié
@ 2006-08-09 23:39 ` Mike Frysinger
2006-08-10 1:05 ` Philippe Clérié
0 siblings, 1 reply; 6+ messages in thread
From: Mike Frysinger @ 2006-08-09 23:39 UTC (permalink / raw
To: gentoo-embedded; +Cc: Philippe Clérié
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
On Wednesday 09 August 2006 18:36, Philippe Clérié wrote:
> The default configuration of busybox (1.1.3) installs a /bin/bb executable
> to which nothing apparently is linked. I renamed it, played with a few
> applets and so far nothing is broken. What is that bb for?
it's a standalone static rescue shell
broken system ? boot with init=/bin/bb
> I am discovering that python is really not something I might want installed
> on a small system. The base package is about 22MB on disk. 2/3 of that it
> seems are pyc and pyo files. Plus there are quite a few packages I don't
> anticipate needing. Can we reduce that footprint? Or do I have to give up
> on python?
it's your system so only you know if you really need python
in terms of Gentoo, if you dont want to run portage on the target, then by
default there's not much point in having python
-mike
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] busybox + python questions
2006-08-09 23:39 ` Mike Frysinger
@ 2006-08-10 1:05 ` Philippe Clérié
2006-08-10 2:29 ` Mike Frysinger
2006-08-10 5:48 ` Natanael Copa
0 siblings, 2 replies; 6+ messages in thread
From: Philippe Clérié @ 2006-08-10 1:05 UTC (permalink / raw
To: gentoo-embedded
On Wednesday 09 August 2006 19:39, Mike Frysinger wrote:
> On Wednesday 09 August 2006 18:36, Philippe Clérié wrote:
> > The default configuration of busybox (1.1.3) installs a /bin/bb
> > executable to which nothing apparently is linked. I renamed it, played
> > with a few applets and so far nothing is broken. What is that bb for?
>
> it's a standalone static rescue shell
>
> broken system ? boot with init=/bin/bb
:-) OK! Thanks.
>
> > I am discovering that python is really not something I might want
> > installed on a small system. The base package is about 22MB on disk. 2/3
> > of that it seems are pyc and pyo files. Plus there are quite a few
> > packages I don't anticipate needing. Can we reduce that footprint? Or do
> > I have to give up on python?
>
> it's your system so only you know if you really need python
>
I was hoping to do the web interface with python. I knew there was going to be
a penalty, I hadn't expected it to be so bad. I would like to stay under 16MB
for the root ramdisk, but it looks like it's damn near impossible with
python.
Time to look for alternatives.
Philippe
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] busybox + python questions
2006-08-10 1:05 ` Philippe Clérié
@ 2006-08-10 2:29 ` Mike Frysinger
2006-08-10 5:48 ` Natanael Copa
1 sibling, 0 replies; 6+ messages in thread
From: Mike Frysinger @ 2006-08-10 2:29 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 483 bytes --]
On Wednesday 09 August 2006 21:05, Philippe Clérié wrote:
> I was hoping to do the web interface with python. I knew there was going to
> be a penalty, I hadn't expected it to be so bad. I would like to stay under
> 16MB for the root ramdisk, but it looks like it's damn near impossible with
> python.
the .pyc files are for cache only afaik ... but they help performance greatly
maybe see about slimming down python itself ... it has a lot of optional
plugins
-mike
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] busybox + python questions
2006-08-10 1:05 ` Philippe Clérié
2006-08-10 2:29 ` Mike Frysinger
@ 2006-08-10 5:48 ` Natanael Copa
2006-08-10 10:07 ` Philippe Clérié
1 sibling, 1 reply; 6+ messages in thread
From: Natanael Copa @ 2006-08-10 5:48 UTC (permalink / raw
To: gentoo-embedded
On Wed, 2006-08-09 at 21:05 -0400, Philippe Clérié wrote:
> > it's your system so only you know if you really need python
> >
>
> I was hoping to do the web interface with python. I knew there was going to be
> a penalty, I hadn't expected it to be so bad. I would like to stay under 16MB
> for the root ramdisk, but it looks like it's damn near impossible with
> python.
>
> Time to look for alternatives.
Ruby on rails is like 10MB on my hardened embedded system.
PHP with almost no use-flags turned on takes 3.6MB.
Lua is even smaller. 700KB. There is a lua web framework called Kepler
that should be pretty small. Its not in portage yet (and build scripts
are ugly)
Lua makes it also pretty good on the Computer Language Shootout:
http://shootout.alioth.debian.org/gp4/lua.php
If you want to make it really small you can look at haserl. It's
embedded shell.
http://haserl.sourceforge.net
--
Natanael Copa
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] busybox + python questions
2006-08-10 5:48 ` Natanael Copa
@ 2006-08-10 10:07 ` Philippe Clérié
0 siblings, 0 replies; 6+ messages in thread
From: Philippe Clérié @ 2006-08-10 10:07 UTC (permalink / raw
To: gentoo-embedded
Thanks for the suggestions. They all involve learning another language,
although I'm somewhat familiar with PHP. I think I'll also look at increasing
the hardware requirements.
Ciao
On Thursday 10 August 2006 01:48, Natanael Copa wrote:
> On Wed, 2006-08-09 at 21:05 -0400, Philippe Clérié wrote:
> > > it's your system so only you know if you really need python
> >
> > I was hoping to do the web interface with python. I knew there was going
> > to be a penalty, I hadn't expected it to be so bad. I would like to stay
> > under 16MB for the root ramdisk, but it looks like it's damn near
> > impossible with python.
> >
> > Time to look for alternatives.
>
> Ruby on rails is like 10MB on my hardened embedded system.
>
> PHP with almost no use-flags turned on takes 3.6MB.
>
> Lua is even smaller. 700KB. There is a lua web framework called Kepler
> that should be pretty small. Its not in portage yet (and build scripts
> are ugly)
>
> Lua makes it also pretty good on the Computer Language Shootout:
> http://shootout.alioth.debian.org/gp4/lua.php
>
> If you want to make it really small you can look at haserl. It's
> embedded shell.
> http://haserl.sourceforge.net
>
> --
> Natanael Copa
--
Philippe
------
The trouble with common sense is that it is so uncommon.
<Anonymous>
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-08-10 10:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-09 22:36 [gentoo-embedded] busybox + python questions Philippe Clérié
2006-08-09 23:39 ` Mike Frysinger
2006-08-10 1:05 ` Philippe Clérié
2006-08-10 2:29 ` Mike Frysinger
2006-08-10 5:48 ` Natanael Copa
2006-08-10 10:07 ` Philippe Clérié
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox