Jivin Renato Granzoto lays it down ...
> Hello all,
>
> I'm running a daemon that on every minute start 2 monitoring
> programs, but it's 'eating' around 4096 bytes every 3/4 minutes.
>
> I checked my applications for memory leaks with Valgrind, and now
> they haven't possible memory leaks (according to valgrind)
Firstly check to see if your app is growing in size by using "ps"
or some other on-box tool. If it is then there is a leak regardless of
what valgrind says ;-)
> I searched the list about it and asked some people directly too,
> and I got that I should use page_alloc2 instead page_alloc, but
> I'm not able to find it at snapgear 3.3.1 and 3.5.0.
This will only help if your system is losing memory and not your app.
Of course it will usually give you more free memory and may mask the
effect of your app leaking for a while.
>
> Does someone could help me with this question ? I started to study
> uClinux to get it running on my boards, but it's being a hard way
> for the while :-)
Are you running 2.4 or 2.6 ?
For 2.4 it should appear as an option under kernel hacking. It will be
called "CONTIGUOUS_PAGE_ALLOC" or "Non power-of-2 kernel allocator" and
enables kmalloc2.
If you can't find it it may be because your arch does not include it in
it's top level Config.in (linux-2.4.x/arch/XXX/config.in). It is
currently included for:
armnommu e1nommu frv h8300 m68knommu microblaze v850
If your arch isn't listed then look at one of these for an example of
how to add it.
There is no such option under 2.6, you may like to try SLOB or SLUB
to see if they help,
> Thanks a lot, sorry the big mail and my bad English.
Your mail is not big and your english is not bad ;-)
Cheers,
Davidm
--
David McCullough, [EMAIL PROTECTED], Ph:+61 734352815
Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev