From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q5zbt-0002UJ-4o for garchives@archives.gentoo.org; Sat, 02 Apr 2011 12:07:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C9E7E0512; Sat, 2 Apr 2011 12:05:58 +0000 (UTC) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by pigeon.gentoo.org (Postfix) with ESMTP id 62A22E0512 for ; Sat, 2 Apr 2011 12:05:58 +0000 (UTC) Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id 121DD209A9 for ; Sat, 2 Apr 2011 08:05:58 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Sat, 02 Apr 2011 08:05:58 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:content-transfer-encoding; s=smtpout; bh=VtybozmIQeBzGv6F4u4ekpzAWuQ=; b=AegG5pF+JvgJcV8UDlJVlj1CWIfs9+eILTaZ54oPPRxw47RAyRss8uEwsYMYESpMhStRFn76j00+n1PWRtZ/9c8t6j7pJZE7G9Se4h5b+9+5wZ6RAtLsAETot974wEI9VcCBLMDSICU2qdkidCs5pokWcPsolTNy2ZmNBwO+eeE= X-Sasl-enc: Bcsfls/b0CHc4BmDI1NQ8EUDz/k/4x25Dti3KefnXSnb 1301745957 Received: from [192.168.31.28] (cpe-174-109-037-078.nc.res.rr.com [174.109.37.78]) by www.fastmail.fm (Postfix) with ESMTPSA id C8C7E404009 for ; Sat, 2 Apr 2011 08:05:57 -0400 (EDT) Subject: Re: [gentoo-user] Re: How low can you go? From: Albert Hopkins To: gentoo-user@lists.gentoo.org In-Reply-To: References: <1301684371.55806.3.camel@victoria> <1301689709.145877.12.camel@victoria> Content-Type: text/plain; charset="UTF-8" Date: Sat, 02 Apr 2011 08:05:57 -0400 Message-ID: <1301745957.652513.5.camel@victoria> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 0b55c20b2b86461c4eb0685d497c56fe On Sat, 2011-04-02 at 13:24 +0700, Pandu Poluan wrote: > Unfortunately, I can't go module-less; xtables-addons requires modules > support. > > How do you get static /dev ? Go into /etc/conf.d/rc and change RC_DEVICES to "static". Also if you are using virtio block devices (as I am) then you will need to manually create the /dev/vd* device nodes else the vm won't find the virtual drives. > > > I could probably get it lower by tweaking the kernel a bit more. > Also > > it would probably use slightly less RAM if it were 32-bit. Also, > the > > biggest user of memory are /bin/bash and /bin/login. I could > minimize > > memory further by making the login shell ash or dash. > > > > I also rely on lots of bash scripts. > > *sigh* ... I'll never get it as small as yours... but still I *am* > interested in your memory-saving tricks :-) I'm not saying replace bash with dash. I'm saying change your login shell with dash (i.e. chsh). Moreover, dash is POSIX compliant so it should be able to be used with most shell scripts. The only reason you need bash around is that unfortunately baselayout-1 depends on some bash-specific features (like bash arrays), so you can't completely get rid of it. But for most stuff dash is fine.