[uClinux-dev] Allow allocating large blocks (>1 MB) of memory

Ferry de Groot ferry_1983 at hotmail.com
Mon Sep 18 04:07:06 EDT 2006


hi Greg

I'm using:

Linux version 2.4.32-uc0 (root at Knoppix) (gcc version 2.95.3 20010315 
(release)(ColdFire.

No patches are added.

Ferry de Groot


>From: Greg Ungerer <gerg at snapgear.com>
>Reply-To: uClinux development list <uclinux-dev at uclinux.org>
>To: uClinux development list <uclinux-dev at uclinux.org>
>Subject: Re: [uClinux-dev] Allow allocating large blocks (>1 MB) of memory
>Date: Mon, 18 Sep 2006 11:05:08 +1000
>
>Hi Ferry,
>
>Ferry de Groot wrote:
>>
>>I'm using a 2.4 kernel and added:
>>
>>define_bool CONFIG_NO_MMU_LARGE_ALLOCS y
>>
>>in the file:
>>
>>/arch/m68knommu/config.in
>>
>>But this seems not to solve my problems. Did I add it the right way and/or 
>>is there a way to double check if this options has been added.
>
>If you are using a -uc patched 2.4 kernel then that option
>should already be in that file, you won't need to add it.
>
>What kernel version do you have?
>What patches are applied?
>
>Regards
>Greg
>
>
>
>>>From: Greg Ungerer <gerg at snapgear.com>
>>>Reply-To: uClinux development list <uclinux-dev at uclinux.org>
>>>To: uClinux development list <uclinux-dev at uclinux.org>
>>>Subject: Re: [uClinux-dev] Allow allocating large blocks (>1 MB) of 
>>>memory
>>>Date: Mon, 11 Sep 2006 12:24:35 +1000
>>>
>>>Hi Ferry,
>>>
>>>Ferry de Groot wrote:
>>>>I've got Net-SNMP with MIB database running on a MCF5208. But no i 
>>>>received this error when i did a snmpwalk threw the MIB database.
>>>>
>>>>Allocation of length 119328676 from process 15 failed
>>>>Free pages:       24648kB (     0kB HighMem)
>>>>Zone:DMA freepages:     0kB
>>>>Zone:Normal freepages: 24648kB
>>>>Zone:HighMem freepages:     0kB
>>>>( Active: 100, inactive: 589, free: 6162 )
>>>>= 0kB)
>>>>2*4kB 2*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 
>>>>12*2048kB = 2)
>>>>= 0kB)
>>>>
>>>>Now I would like to know wanted to to add:
>>>>
>>>>Allow allocating large blocks (>1 MB) of memory
>>>>
>>>>But this seems not to be not supported for the MCF5208. Does anybody 
>>>>know how I can add this option or are there any other suggestion?
>>>
>>>You don't mention what source base you are working from?
>>>
>>>But this option has existed for a very long time on the ColdFire
>>>platforms, including the MCF5208.
>>>
>>>In 2.6 kernels it is defined in arch/m68knommu/Kconfig
>>>(look for LARGE_ALLOCS).
>>>In 2.4 uC kernels it is defined in ./arch/m68knommu/config.in
>>>(look for CONFIG_NO_MMU_LARGE_ALLOCS).
>>>
>>>Regards
>>>Greg
>>>
>>>
>>>
>>>------------------------------------------------------------------------
>>>Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
>>>SnapGear -- a Secure Computing Company      PHONE:       +61 7 3435 2888
>>>825 Stanley St,                             FAX:         +61 7 3891 3630
>>>Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
>>>_______________________________________________
>>>uClinux-dev mailing list
>>>uClinux-dev at uclinux.org
>>>http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
>>>This message was resent by uclinux-dev at uclinux.org
>>
>>
>>_______________________________________________
>>uClinux-dev mailing list
>>uClinux-dev at uclinux.org
>>http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
>>This message was resent by uclinux-dev at uclinux.org
>>
>
>--
>------------------------------------------------------------------------
>Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
>SnapGear -- a Secure Computing Company      PHONE:       +61 7 3435 2888
>825 Stanley St,                             FAX:         +61 7 3891 3630
>Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
>_______________________________________________
>uClinux-dev mailing list
>uClinux-dev at uclinux.org
>http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
>This message was resent by uclinux-dev at uclinux.org




More information about the uClinux-dev mailing list