Re: kmalloc issue on MIPS target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 18, 2010 at 6:07 PM, naveen yadav <yad.naveen@xxxxxxxxx> wrote:
> Hi All,
>
> We are using MIPS(mips32r2) target. when I alloc memory using kmalloc
> suppose  28 bytes, the kernel still consume 128 bytes.
>
> So when I check File on kernel source  mach-ip32/kmalloc.h
>
> Since it is allign to 128 bytes so i understand that even if  I
> consume 1 byte it will waste 128 bytes.
>
> #ifndef __ASM_MACH_IP32_KMALLOC_H
> #define __ASM_MACH_IP32_KMALLOC_H
>
>
> #if defined(CONFIG_CPU_R5000) || defined(CONFIG_CPU_RM7000)
> #define ARCH_KMALLOC_MINALIGN   32
> #else
> #define ARCH_KMALLOC_MINALIGN   128
> #endif
>
> #endif /* __ASM_MACH_IP32_KMALLOC_H */
>
>
> So I could not understand why it is allign to 128 bytes. Is there any
> specific reason for it. ?
>
> thanks
>



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux