bget integration for uClinux
Farrell Aultman
fja0568 at gmail.com
Tue Jun 9 12:28:08 WST 2009
Hi Matt,
The changes aren't bad and can easily be turned off in the options header
file. I'll post a patch by the end of the week.
Farrell
On Mon, Jun 8, 2009 at 10:48 AM, Matt Johnston <matt at ucc.asn.au> wrote:
> Hi Farrell,
>
> If the changes are fairly unobtrusive, I think it might be
> worth including. Do you have a patch handy?
>
> Cheers,
> Matt
>
> On Sat, May 30, 2009 at 03:11:13PM -0400, Farrell Aultman wrote:
> > I discovered that dropbear, especially when using libz for
> > compression/decompression, causes memory fragmentation in uClinux - to
> the
> > point that the system doesn't have enough contiguous memory to continue
> to
> > function after ~24 hours. This will be a problem for any system that
> > doesn't have an MMU. Normally, programs specifically targeted for
> uClinux
> > will allocate all memory statically and the program itself will load
> execute
> > in place (EIP) from a romfs.
> >
> > Thankfully, dropbear has wrapper functions for malloc and related calls
> that
> > can easily be replaced globally. I have integated the bget memory
> manager
> > with dropbear. Dropbear will initially get a large chunk of system
> memory,
> > then all future memory allocations are handled by bget, resulting in no
> > system memory fragmentation. I also use bget for libtommath and
> > libtomcrypt. I'm posting this to see if there is any interest in a patch
> > with bget integration. If not, this e-mail can serve as a search result
> for
> > someone to make a request in the future.
> >
> > Farrell
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20090609/3d3be90e/attachment.htm
More information about the Dropbear
mailing list