SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-09-30 18:54:19

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 702
Website

Crunchbang SUB 100 club

Hi Guys and Gals,
Call me a freak tongue but I just love minimising my RAM usage big_smile
My Crunchy machine has 4GB RAM available.
For a long time I was running 64bit Crunchy but then I thought to myself why....
This machine is only needed for the basics and why was Crunchy 64bit using 220MB RAM @ idle ??
Well, I sort of know the answer to that and 64bit memory allocation etc...

So, I thought I would propose a thread about RAM optimisation - this time on 32bit.
Here is what I have achieved so far: 108MB/3.96GiB running mpd+ncmpcpp
OK not quite SUB 100 CLUB @ 108MB with a couple of apps running but at absolute idle 88MB ...not too bad big_smile;

http://crunchbanglinux.org/forums/topic … d/page/15/

Please do not do this on a production machine

->There are a lot of processes that start with Crunchbang;

Your best friend here is 'rcconf'

sudo apt-get install rcconf

2012_09_30_1349029817_568x311_scrot.jpg

As you can see I have reduced this list to dbus,lm-sensors,pulseaudio,slim,sudo,udev,x11-common
Be careful here...it just depends on your requirements - eg. I do not need bluetooth.

->tty tweaking is on hold roll;

tty terminal management fgetty

You can read the problems I had with the password here;
http://crunchbanglinux.org/forums/topic … d-problem/

->And the openbox autostart...again personal choices it just depends what you require.
Here is what I have hashed out;

#cb-compositor --start && \
#cb-compositor --watch &
#xscreensaver -no-splash &
#thunar --daemon & (using pcmanfm http://pcmanfm.sourceforge.net/intro.html)
#(sleep 3s && clipit) &
#cb-cowpowers &
#(sleep 10s && cb-welcome --firstrun) &
#(sleep 120s && cb-fortune) &

->Disable ipv6
http://www.cyberciti.biz/faq/disable-ip … y-squeeze/

->Use a low resource terminal such as rxvt-unicode (urxvt);
http://en.wikipedia.org/wiki/Rxvt
https://wiki.archlinux.org/index.php/Rxvt-unicode

Any input to this thread would be much appreciated big_smile

Last edited by chameleon (2012-09-30 19:55:31)

Offline

Be excellent to each other!

#2 2012-10-01 00:11:17

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 702
Website

Re: Crunchbang SUB 100 club

OK...removed lm-sensors from conky and I am now at 80MB idle cool

2012_10_01_1349049944_252x43_scrot.jpg

cool

Offline

#3 2012-10-01 01:07:19

afab4
Member
From: Stony Lake, Michigan
Registered: 2012-08-16
Posts: 23

Re: Crunchbang SUB 100 club

chameleon wrote:

OK...removed lm-sensors from conky and I am now at 80MB idle cool

2012_10_01_1349049944_252x43_scrot.jpg

cool

Have you removed network manager yet?  Dumping it for Ceni got me down to 64MB at idle. (Along with dumping saned, bluetooth, and most of the items in the startup file).
Stopped Compositing, cb-hotcorners,volume-keys daemon,touchpad, Clipboard manager, cb-welcome,cb-cowpowers,cb-fortune.
64MB @ idle on fresh boot.

Doing the same process on 64 bit gives me about 128MB at idle on a fresh boot.


I support the candidate that will steal the least from me....

Offline

#4 2012-10-01 05:14:53

AlanD
#! CrunchBanger
Registered: 2011-05-12
Posts: 149

Re: Crunchbang SUB 100 club

I love this sort of thread. Following it!


Nerds that build or deploy tongue

Offline

#5 2012-10-01 09:59:11

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2012-03-22
Posts: 792
Website

Re: Crunchbang SUB 100 club

Interesting idea. I was fed up with too much RAM usage, too (first Ubuntu, then #! with OpenBox) ...

Then I discovered that one more great RAM saver seems to be pekwm. Now my #! it is around 90 MB, without fiddling with 'rcconf' (scrot, just after fresh reboot):

tZnBqOQ

tZnBqYQ
(I show entire screenshot, just to advertize pekwm, and show off my ridicolously-reduced setup smile )

Note that it is fully functional 32-bit #! (it is not test machine!) with lots of installed software (VitualBox being one of them), bluetooth, two conkies, gvfs, nvidia, two LCDs ...

True enough, there is not DM nor taskbar. There is no clipboard-like-app, no NetworkManager (I connect to WiFi with nm-cli ...), no servers (MySql, apache ...)

Last edited by iMBeCil (2012-10-01 09:59:59)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#6 2012-10-01 11:53:58

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 702
Website

Re: Crunchbang SUB 100 club

@afab4
I have removed network manager and yes that made quite a difference.
I have also dumped pretty much everything in start up.

Currently sitting @ 78MB  idle
Running mpd+ncmpcpp 96MB

2012_10_01_1349092262_252x49_scrot.jpg

Now on to purge Slim...

@iMBeCil
Nice work!
I also like PekWM and DWM:cool:
For this exercise I am trying to stay as much Crunchy vanilla as possible...

Last edited by chameleon (2012-10-01 11:56:34)

Offline

#7 2012-10-01 11:56:44

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: Crunchbang SUB 100 club

You've put a 32 bit OS on a 64 bit processor just so you can have the irrational satisfaction of minimizing your RAM usage? That's one of the most ridiculous things I've heard this year.

Offline

#8 2012-10-01 11:58:27

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 702
Website

Re: Crunchbang SUB 100 club

@el_koraco
Call me crazy!

Offline

#9 2012-10-01 12:05:06

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: Crunchbang SUB 100 club

You're a crazy chameleon!

Offline

#10 2012-10-01 12:14:39

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 702
Website

Re: Crunchbang SUB 100 club

But seriously  folks...

This sort of testing might not make a lot of sense but it does achieve some goals for me;

a) I get to learn a lot about the setup of a distro,configs,processes, boot etc...
b) If you are lucky enough to have a dedicated test machine then if Crunchy goes pop roll - no big deal.
c) It's good fun tweaking hmm, believe it or not (especially for Crazy Chameleons!)

Now what can I tweak next...

Offline

#11 2012-10-01 13:15:27

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,924

Re: Crunchbang SUB 100 club

Is it faster? What kind of performance boost are we talking here?

Last edited by snowpine (2012-10-01 13:22:16)


/hugged

Offline

#12 2012-10-01 15:08:52

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 702
Website

Re: Crunchbang SUB 100 club

@snowpine
Faster to boot as fewer processes are being started.
The running system is a lot lighter.
I can't say that there is a perfromance boost on fairly modern machines but this would certainly help someone with an older PC.

As per afab4;

Have you removed network manager yet?  Dumping it for Ceni got me down to 64MB at idle. (Along with dumping saned, bluetooth, and most of the items in the startup file).
Stopped Compositing, cb-hotcorners,volume-keys daemon,touchpad, Clipboard manager, cb-welcome,cb-cowpowers,cb-fortune.

Offline

#13 2012-10-01 16:07:32

afab4
Member
From: Stony Lake, Michigan
Registered: 2012-08-16
Posts: 23

Re: Crunchbang SUB 100 club

I forgot... also I purged/stopped transmission and transmission daemon as I don't do torrents.

This is what I was aiming for, or at least come as close as possible:
antix12_conky.jpg

Last edited by afab4 (2012-10-01 16:32:33)


I support the candidate that will steal the least from me....

Offline

#14 2012-10-01 16:37:10

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 702
Website

Re: Crunchbang SUB 100 club

@afab4
How do I stop transmission daemon?
Do I have to uninstall transmission?

Offline

#15 2012-10-01 16:58:20

afab4
Member
From: Stony Lake, Michigan
Registered: 2012-08-16
Posts: 23

Re: Crunchbang SUB 100 club

chameleon wrote:

@afab4
How do I stop transmission daemon?
Do I have to uninstall transmission?

Uninstalling transmission via synaptic may not do it.  Transmission should show up in your rc.conf program.
If not, install sysv-rc-conf via synaptic and use that tool.  I prefer it to rc.conf

Here is what you can accomplish with Crunch64 by following the same procedures:

crunch64conky.jpg

I do not think you will find another 64 bit distro that will run this lean.  This is with Thunar daemon and compositing both active!

My 64 bit autostart:

## Set root window colour
hsetroot -solid "#2E3436" &

## Group start:
## 1. nitrogen - restores wallpaper
## 2. compositor
## 3. sleep - give compositor time to start
## 4. conky
## 5. tint2 panel
(\
nitrogen --restore && \
cb-compositor --start && \
sleep 2s && \
conky -q && \
tint2 \
) &

## Enable hot corners
##cb-hotcorners --daemon &

## Volume control for systray
(sleep 2s && pnmixer) &

## Volume keys daemon
##xfce4-volumed &

## Enable power management
xfce4-power-manager &

## Start Thunar Daemon
thunar --daemon &

## Detect and configure touchpad. See 'man synclient' for more info.
##if egrep -iq 'touchpad' /proc/bus/input/devices; then
##   synclient VertEdgeScroll=1 &
##   synclient TapButton1=1 &
##fi

## Start xscreensaver
##xscreensaver -no-splash &

## Start Clipboard manager
##(sleep 3s && clipit) &

## Set keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate.
## Adjust the values according to your preferances.
xset r rate 250 25 &

## The following command runs hacks and fixes for #! LiveCD sessions.
## Safe to delete after installation.
##cb-cowpowers &

## cb-welcome - post-installation script, will not run in a live session and
## only runs once. Safe to remove.
##(sleep 10s && cb-welcome --firstrun) &

## cb-fortune - have Waldorf say a little adage
##(sleep 120s && cb-fortune) &

## GNOME PolicyKit and Keyring
(\
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 && \
/usr/bin/gnome-keyring-daemon --start --components=ssh && \
/usr/bin/gnome-keyring-daemon --start --components=secrets && \
/usr/bin/gnome-keyring-daemon --start --components=pkcs11 && \
/usr/bin/gnome-keyring-daemon --start --components=gpg \
) &

Last edited by afab4 (2012-10-01 17:11:02)


I support the candidate that will steal the least from me....

Offline

#16 2012-10-01 17:12:00

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 702
Website

Re: Crunchbang SUB 100 club

Uninstalling transmission via synaptic may not do it.  Transmission should show up in your rc.conf program.

rc.conf in Debian??

Last edited by chameleon (2012-10-01 17:15:22)

Offline

#17 2012-10-01 17:24:33

afab4
Member
From: Stony Lake, Michigan
Registered: 2012-08-16
Posts: 23

Re: Crunchbang SUB 100 club

chameleon wrote:

Uninstalling transmission via synaptic may not do it.  Transmission should show up in your rc.conf program.

rc.conf in Debian??

Is that not the program you installed?  I have never used it.  I use sysv-rc-conf.

Your best friend here is 'rcconf'

Looking back I see it is rcconf you installed.  My mistake.

Last edited by afab4 (2012-10-01 17:25:26)


I support the candidate that will steal the least from me....

Offline

#18 2012-10-01 17:26:54

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: Crunchbang SUB 100 club

Well since I see you're not limiting this club to #! (afab is using AntiX in one of his scrots), check it out:

2012_09_26_073310_1280x1024_scrot.jpg

That's Fluxbox on 32-bit CRUX Linux.

Last edited by pidsley (2012-10-01 17:29:21)

Offline

#19 2012-10-01 17:29:37

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 702
Website

Re: Crunchbang SUB 100 club

@afab4
Ah now I understand.
As you can see I have reduced as follows with rcconf;

2012_09_30_1349029817_568x311_scrot.jpg

Offline

#20 2012-10-01 17:31:35

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 702
Website

Re: Crunchbang SUB 100 club

@pidsley
Wow that is impressive!
Tell me some more about Crux.
Is it hard to install?

Offline

#21 2012-10-01 17:45:14

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: Crunchbang SUB 100 club

chameleon wrote:

@pidsley
Wow that is impressive!
Tell me some more about Crux.
Is it hard to install?

It's a source-based distro so it can be a bit of a challenge to install. Here's the home page And the install instructions.

You guys might also be interested in some experiments I did trying to run Debian on a machine with only 128 M memory in it. That's here and here. Not quite the same thing as trying to get your memory use down, I was trying to see how much I could run with just a limited amount of memory.

Last edited by pidsley (2012-10-01 17:46:02)

Offline

#22 2012-10-01 18:07:32

afab4
Member
From: Stony Lake, Michigan
Registered: 2012-08-16
Posts: 23

Re: Crunchbang SUB 100 club

pidsley wrote:

Well since I see you're not limiting this club to #! (afab is using AntiX in one of his scrots), check it out:

2012_09_26_073310_1280x1024_scrot.jpg

That's Fluxbox on 32-bit CRUX Linux.

VERY nice indeed.
I lke Fluxbox too.  Wonder how that would do on #!


I support the candidate that will steal the least from me....

Offline

#23 2012-10-01 19:10:50

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,636
Website

Re: Crunchbang SUB 100 club

Running KDE4.2 in a virtualbox in Gnome3:

Ak4pt.png

tongue

Offline

#24 2012-10-01 19:22:29

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 702
Website

Re: Crunchbang SUB 100 club

@pidsley
Interesting!
BBQ is certainly coming along.
I am looking forward to the tiling WM release...

Offline

Help fund CrunchBang, donate to the project!

#25 2012-10-01 19:40:46

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 702
Website

Re: Crunchbang SUB 100 club

@machinebacon
Cool...but I don't think you are trying hard enough lol
Surely you can get the RAM usage into single figures...sub 5MB maybe big_smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo