Slackware on the Raspberry Pi is a Memory Hog?!?
I installed Slackware 14.1 on my Raspberry Pi (512 meg RAM) using these instructions. To my surprise the memory footprint of it booting into the CLI is approximately 360 megs (determined using "free"). Even my x86 install on my laptop uses less memory (also a 32 bit 14.1 install). Raspbian and Arch on the same Pi use < 100 megs for a CLI boot. I think of Slackware as a lean, mean computing machine, which is why this surprised me.
So why is it this much of a memory hog? Inefficient distribution of RAM to the Framebuffer/GPU? Daemons starting at boot? If that is the case why is my x86 utilizing less memory? On a side note, is the kernel for Slackware compiled for a hard or soft float? I love Slackware immensely and will continue to use it on the Raspberry Pi, I am just curious. |
Check some of the answers on my post http://www.linuxquestions.org/questi...pi-4175492466/
Seems it will run on the PI but is not optimized for it. I tried a minimal install and had all kinds of problems until I started over with a full install. I got mine running fine but started stressing it and eventually it went in the weeds for a few hours and I killed power when I got home and that corrupted the drive so I need to install again. |
Quote:
Because I use SlackwareARM 14.1 (also) in a 10" WonderMedia 8650 (ARMv5TE) netbook, sporting just 256MB RAM. Still, my setup having a full install (excluding KDE, KDEI) and it run nice and responsive under X.org, using XFCE4 as DE. So, I can't claim that Slackware-ARM is a Memory Hog. :hattip: |
Have you checked with top or htop which process is using that much memory? Also, what exactly does free report?
|
Quote:
|
Right after boot my Pi has 120Mb used most of which is cache and buffers ... the real usage is less then 20Mb. If I then start X with fluxbox window manager real usage rises to 25Mb.
Unfortunately I'm editing from my AC100 and cut and paste does not work from xterm ... otherwise I'd post the output of free to show the mem usage of my Pi. I'm just guessing: you have enabled tmpfs in fstab that by default will use 50% of the available ram. |
Quote:
|
That's true but depending on what you do with the tmpfs it can happen that it gets used to something close to the default maximum allowed.
I've seen that happen on my printserver running on a seagate dockstar from readoly filesystem where all the stuff that needs to be written ends up in tmpfs. But it was just a guess with out having the output of free or /proc/meminfo ... ina nay case there is something odd with that system: my Pi is not on right now but I've handy my hedless salvaged tablet with a very similar setup to my Pi (practically the same packages installed and same amount of ram) and here is what it has to say about memory usage Code:
root@headless:~# free Code:
root@headless:~# ps -ef | grep -E "X|fluxbox" |
Quote:
Output from free this time: Code:
haziz@slack:~$ free Code:
Tasks: 62 total, 1 running, 61 sleeping, 0 stopped, 0 zombie |
There seems to be confusion about what free reports. The memory actually used by the system for applications can be found in the second row, in your case about 24MB. Have a look here: http://www.linuxatemyram.com/
|
Quote:
Thanks again. |
All times are GMT -5. The time now is 06:21 PM. |