All of lore.kernel.org
 help / color / mirror / Atom feed
* kmalloc issue on MIPS target
@ 2010-08-18 12:37 naveen yadav
  2010-08-18 12:44 ` naveen yadav
  2010-08-18 13:33 ` Ralf Baechle
  0 siblings, 2 replies; 7+ messages in thread
From: naveen yadav @ 2010-08-18 12:37 UTC (permalink / raw)
  To: majordomo, linux-mips

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-08-18 16:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-18 12:37 kmalloc issue on MIPS target naveen yadav
2010-08-18 12:44 ` naveen yadav
2010-08-18 13:33 ` Ralf Baechle
2010-08-18 14:26   ` naveen yadav
2010-08-18 14:43     ` Ralf Baechle
2010-08-18 15:22       ` naveen yadav
2010-08-18 16:09         ` Sergei Shtylyov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.