Jan 17, 2013, 2:46 AM
Post #6 of 10
(3331 views)
Permalink
On Thu, Jan 17, 2013 at 12:43 PM, Kfir Lavi <lavi.kfir@gmail.com> wrote:
>
>
> On Thu, Jan 17, 2013 at 11:25 AM, Markos Chandras <hwoarang@gentoo.org>wrote:
>
>> On 17 January 2013 04:20, Kfir Lavi <lavi.kfir@gmail.com> wrote:
>> >
>> >
>> > On Wed, Jan 16, 2013 at 11:05 PM, Mike Frysinger <vapier@gentoo.org>
>> wrote:
>> >>
>> >> On Wednesday 16 January 2013 15:46:11 Kfir Lavi wrote:
>> >> > I have created a small Gentoo system. It is based on glibc.
>> >> > When it starts, I see use of 84MB and free is 33MB.
>> >> > Using 'free -m' command.
>> >> > How can I debug this issue, in order to lower the memory footprint?
>> >>
>> >> run `ps aux`. find & kill all unused services.
>> >> -mike
>> >
>> > I don't have much of un essential services. Just agetty. But its not
>> much.
>> > What I'm asking, is there a compilation way to reduce footprint?
>> > I used here -O2. I'll need to check with -Os to see difference.
>> > It seems to me that it takes too much memory for small system like this.
>> >
>> > Kfir
>> >
>>
>> -Os is preferred for low memory systems.
>>
>> --
>> Regards,
>> Markos Chandras / Gentoo Linux Developer / Key ID: B4AFF2C2
>>
>>
> I just killed some processes and arrived to bare system 64MB.
> Now just sshd, bash and agetty are showing in ps aux as real processes.
> The other are kernel processes.
> The kernel is pretty lean. Should I expect 64MB as the initial system
> memory use?
> Can I lower it?
>
> Thanks,
> Kfir
>
Oh, just to note:
I'm using -minimal USE flag on this system, and get about 50 packages.