[uClinux-dev] armnommu and pthread
David McCullough
david_mccullough at au.securecomputing.com
Tue Feb 20 17:27:36 EST 2007
Jivin Jamie Lokier lays it down ...
> David McCullough wrote:
> > > daemon mode is not possible under uclibc, so maybe it is the same with
> > > pthread.
> >
> > daemon's are possible under uClinux, but the standard way of
> > daemonising is not. It's fairly easy to work around. Have a look at:
> >
> > http://www.ucdot.org/article.pl?sid=04/08/04/1243240
>
> I don't see anything about daemons at that link, nor when searching
> for "daemon" on ucdot.
More the pointers on vfork vs. fork which daemon uses.
> However, I do have a working version of the daemon() function for
> armnommu which I use in my own projects :-) (And which I submitted to
> a Busybox bug report, but I don't think anyone noticed). It is
> possible using clone() and a few instructions of assembly.
uClibc would be the best place to look at adding somethingh like this
I would guess.
> > Most of the uCLinux/malloc issues relate to fragmentation. Have a look
> > at the ucdot FAQ's for more info:
> >
> > http://www.ucdot.org/faq.pl
>
> Yes, definitely! Fragmentation is ridiculous - 12MB free and can't
> allocate 256kB to start an executable. Painful. Thank goodness for
> XIP-in-RAM to save a bit of space.
>
> If streaming files at video rates, I'd add kswapd tuning and the right
> choice of page_alloc.c vs. page_alloc2.c are important too.
Cheers,
Davidm
--
David McCullough, david_mccullough at securecomputing.com, Ph:+61 734352815
Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com
More information about the uClinux-dev
mailing list