Re: [uClinux-dev] fix malloc whole page for small allocations?

2013-04-16 Thread Steve deRosier
On Fri, Apr 12, 2013 at 9:27 AM, Anthony Best anthonyb...@bestanthony.com wrote: On Apr 12, 2013, at 9:00 AM, Lennart Sorensen lsore...@csclub.uwaterloo.ca wrote: On Fri, Apr 12, 2013 at 07:34:19AM -0700, Steve deRosier wrote: Hi all, Every time our application mallocs any small number of

[uClinux-dev] fix malloc whole page for small allocations?

2013-04-12 Thread Steve deRosier
Hi all, Every time our application mallocs any small number of bytes (8k), the device seems to malloc an entire page (8k). Does anyone know why this happens, and how I can fix it? Full details: This same application ran fine on a Linux 2.4.x (uClinux) platform, but due to various reasons we've

Re: [uClinux-dev] fix malloc whole page for small allocations?

2013-04-12 Thread Lennart Sorensen
On Fri, Apr 12, 2013 at 07:34:19AM -0700, Steve deRosier wrote: Hi all, Every time our application mallocs any small number of bytes (8k), the device seems to malloc an entire page (8k). Does anyone know why this happens, and how I can fix it? Imagine the amount of fragmentation you would

Re: [uClinux-dev] fix malloc whole page for small allocations?

2013-04-12 Thread Steve deRosier
On Fri, Apr 12, 2013 at 8:00 AM, Lennart Sorensen lsore...@csclub.uwaterloo.ca wrote: On Fri, Apr 12, 2013 at 07:34:19AM -0700, Steve deRosier wrote: Hi all, Every time our application mallocs any small number of bytes (8k), the device seems to malloc an entire page (8k). Does anyone know