1 |
On Fri, 2011-04-01 at 14:44 -0700, Bill Longman wrote: |
2 |
... |
3 |
> So, what can you actually *do* on this, other than an "ls" or two? |
4 |
|
5 |
Well, first the "challenge" did not require that it had to have any use. |
6 |
|
7 |
But thinking about what you said, I remember when I first started using |
8 |
Linux, it was not unthinkable to think that was enough memory to do |
9 |
stuff. |
10 |
|
11 |
So I decided to build another VM and actually install stuff on it. I |
12 |
thought about what I'd typically be running on my desktop. Being that |
13 |
this is a graphics-less machine, I installed non-gui equivalents: |
14 |
|
15 |
* mutt for email |
16 |
* irssi for irc |
17 |
* vim for text editing |
18 |
* pidgin (finch) for IM |
19 |
* lynx for browsing the web |
20 |
* screen for multi-tasking |
21 |
|
22 |
Then I added a NIC so that I could actually get on the network. |
23 |
Interestingly enough, adding the virtio NIC made the VM jump up to 18MB |
24 |
on the initial boot/shell, but adding a non-virtio NIC kept it down to |
25 |
3MB. |
26 |
|
27 |
Then I added a regular user and did "typical" things: |
28 |
|
29 |
marduk@lilpenguin $ ps -ef |grep ^$USER |
30 |
marduk 2081 2080 0 21:36 ttyS0 00:00:00 -dash |
31 |
marduk 2094 2081 0 21:36 ttyS0 00:00:00 screen -T vt100 |
32 |
marduk 2095 2094 0 21:36 ? 00:00:02 SCREEN -T vt100 |
33 |
marduk 2096 2095 0 21:36 pts/0 00:00:00 -/bin/dash |
34 |
marduk 2101 2096 0 21:36 pts/0 00:00:00 mutt |
35 |
marduk 2102 2095 0 21:37 pts/1 00:00:00 -/bin/dash |
36 |
marduk 2107 2102 0 21:37 pts/1 00:00:00 lynx |
37 |
http://m.reuters.com/ |
38 |
marduk 2110 2107 0 21:37 pts/1 00:00:00 [lynx] <defunct> |
39 |
marduk 2111 2095 0 21:37 pts/2 00:00:00 -/bin/dash |
40 |
marduk 2116 2111 0 21:38 pts/2 00:00:00 vim helloworld.py |
41 |
marduk 2117 2095 0 21:38 pts/3 00:00:00 -/bin/dash |
42 |
marduk 2122 2117 0 21:38 pts/3 00:00:00 irssi |
43 |
marduk 2124 2095 0 21:41 pts/4 00:00:00 -/bin/dash |
44 |
marduk 2129 2124 0 21:41 pts/4 00:00:00 finch |
45 |
marduk 2131 2095 0 21:42 pts/5 00:00:00 -/bin/dash |
46 |
marduk 2149 2095 0 21:43 pts/6 00:00:00 -/bin/dash |
47 |
marduk 2154 2149 0 21:43 pts/6 00:00:00 ssh tanuki@victoria |
48 |
marduk 2176 2131 0 21:46 pts/5 00:00:00 ps -ef |
49 |
marduk 2177 2131 0 21:46 pts/5 00:00:00 grep ^marduk |
50 |
|
51 |
marduk@lilpenguin $ free -m |
52 |
total used free shared buffers cached |
53 |
Mem: 33 28 5 0 0 9 |
54 |
-/+ buffers/cache: 18 14 |
55 |
Swap: 0 0 0 |
56 |
|
57 |
marduk@lilpenguin $ netstat -tn|grep ESTABLISHED |wc -l |
58 |
5 |
59 |
|
60 |
|
61 |
So, running screen (with 7 sessions), 8 dash shells, mutt, irssi, finch, |
62 |
an ssh session, lynx, vim and 5 TCP connections open still only takes up |
63 |
18MB RAM (excluding cache). Still not bad. |