Gentoo Archives: gentoo-user

From: Albert Hopkins <marduk@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: How low can you go?
Date: Sat, 02 Apr 2011 12:07:21
Message-Id: 1301745957.652513.5.camel@victoria
In Reply to: Re: [gentoo-user] Re: How low can you go? by Pandu Poluan
1 On Sat, 2011-04-02 at 13:24 +0700, Pandu Poluan wrote:
2 > Unfortunately, I can't go module-less; xtables-addons requires modules
3 > support.
4 >
5 > How do you get static /dev ?
6
7 Go into /etc/conf.d/rc and change RC_DEVICES to "static". Also if you
8 are using virtio block devices (as I am) then you will need to manually
9 create the /dev/vd* device nodes else the vm won't find the virtual
10 drives.
11
12 >
13 > > I could probably get it lower by tweaking the kernel a bit more.
14 > Also
15 > > it would probably use slightly less RAM if it were 32-bit. Also,
16 > the
17 > > biggest user of memory are /bin/bash and /bin/login. I could
18 > minimize
19 > > memory further by making the login shell ash or dash.
20 > >
21 >
22 > I also rely on lots of bash scripts.
23 >
24 > *sigh* ... I'll never get it as small as yours... but still I *am*
25 > interested in your memory-saving tricks :-)
26
27 I'm not saying replace bash with dash. I'm saying change your login
28 shell with dash (i.e. chsh).
29
30 Moreover, dash is POSIX compliant so it should be able to be used with
31 most shell scripts. The only reason you need bash around is that
32 unfortunately baselayout-1 depends on some bash-specific features (like
33 bash arrays), so you can't completely get rid of it. But for most stuff
34 dash is fine.

Replies

Subject Author
Re: [gentoo-user] Re: How low can you go? Dale <rdalek1967@×××××.com>