From: Albert Hopkins <marduk@letterboxes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: How low can you go?
Date: Fri, 01 Apr 2011 16:28:29 -0400 [thread overview]
Message-ID: <1301689709.145877.12.camel@victoria> (raw)
In-Reply-To: <AANLkTi=_PEfDq-fOcMAavXAXa+wvOXypE3Bjk+mYnJwz@mail.gmail.com>
On Sat, 2011-04-02 at 02:22 +0700, Pandu Poluan wrote:
> Good grief! How'd you do that?!
>
> *bow in respect*
>
> Rgds,
>
>
Well, firstly, I managed to get it down to 3MB (though I cheated *a
little*):
lilpenguin ~ # sync ; echo 3 > /proc/sys/vm/drop_caches # kinda cheating
lilpenguin ~ # free -m
total used free shared buffers
cached
Mem: 43 5 37 0 0
1
-/+ buffers/cache: 3 39
Swap: 0 0 0
lilpenguin ~ # uname -srm
Linux 2.6.36-gentoo-r8 x86_64
lilpenguin ~ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 4.0G 157M 3.6G 5% /
shm 22M 0 22M 0% /dev/shm
So what it is is this:
* kvm with virtio devices
* no udev (static /dev)
* serial console only
* no services in default runlevel
* tight module-less virtio-based kernel (booted externally)
* no extra (virtual) hardware
* everything compiled with -Os
I got the disk space down low by removing everything not needed to boot
and get into the system (which means the portage tree, compiler, etc),
but that has nothing to do with the memory usage.
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.
next prev parent reply other threads:[~2011-04-01 20:30 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-01 12:36 [gentoo-user] How low can you go? Pandu Poluan
2011-04-01 14:47 ` Einux
2011-04-01 18:59 ` Albert Hopkins
2011-04-01 19:22 ` [gentoo-user] " Pandu Poluan
2011-04-01 20:28 ` Albert Hopkins [this message]
2011-04-01 21:00 ` Albert Hopkins
2011-04-01 21:44 ` Bill Longman
2011-04-02 2:06 ` Albert Hopkins
2011-04-02 14:03 ` Volker Armin Hemmann
2011-04-02 6:24 ` Pandu Poluan
2011-04-02 12:05 ` Albert Hopkins
2011-04-02 12:17 ` Dale
2011-04-03 0:43 ` Paul Hartman
2011-04-03 2:09 ` Dale
2011-04-03 8:35 ` Pandu Poluan
2011-04-03 8:53 ` Dale
2011-04-03 10:58 ` pk
2011-04-03 9:47 ` Neil Bothwick
2011-04-03 10:04 ` Dale
2011-04-03 11:49 ` Jake Moe
2011-04-03 15:30 ` Paul Hartman
2011-04-03 23:44 ` Bill Longman
2011-04-04 2:28 ` Dale
2011-04-04 2:48 ` Adam Carter
2011-04-04 3:04 ` Dale
2011-04-03 13:13 ` luis jure
2011-04-04 9:04 ` Joost Roeleveld
2011-04-04 9:13 ` Pandu Poluan
2011-04-04 9:35 ` OT: Computers-memory-lane.... [Was: [gentoo-user] Re: How low can you go?] Joost Roeleveld
2011-04-04 9:49 ` Pandu Poluan
2011-04-04 10:15 ` Joost Roeleveld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1301689709.145877.12.camel@victoria \
--to=marduk@letterboxes.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox