| To: | ralf@linux-mips.org, linux-mips@linux-mips.org |
|---|---|
| Subject: | Re: kmalloc issue on MIPS target |
| From: | naveen yadav <yad.naveen@gmail.com> |
| Date: | Wed, 18 Aug 2010 18:14:36 +0530 |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=mB6daR4SBSm8/ADaDpthGxmSfH3phc2jfTCE8Jym4lA=; b=TW7BPBs5Y01gskbYipPmNfqVjbCSJBVEy6Nx2l5o7aoRUwkD3FkgxX0QPnOTS0B/fo z+F0uMVWI60hWE9rgjMPDfU+EorsXVQWKQeSYr+AdjkjFUhY5yioIlWaMWivgULwYKdX pXwCywdkfpgRWH/LtWh7q+F1ymY+zob8wBd5Y= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=praK0m4I5liaNpO6beMB8EqNFCT3HEThrPhT44NOcQd8dd7jXBOAsGqpuWuXVJ2KIP VVNnaNYVPBrVjNjccbFBk6hVytuqzKy2vlz+vwVdO1DpBUpxn1t438pFnvDCRIz5nzjI nKulaxrIhhB0S8vfSOa+LnVLaYorkga7XW8Ls= |
| In-reply-to: | <AANLkTiniH42L=-DdJ_XHOm1Uo_=YoAqE-j9Jrm45imtG@mail.gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <AANLkTiniH42L=-DdJ_XHOm1Uo_=YoAqE-j9Jrm45imtG@mail.gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Wed, Aug 18, 2010 at 6:07 PM, naveen yadav <yad.naveen@gmail.com> 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 > |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | kmalloc issue on MIPS target, naveen yadav |
|---|---|
| Next by Date: | MIPS: Get rid of branches to .subsections., Ralf Baechle |
| Previous by Thread: | kmalloc issue on MIPS target, naveen yadav |
| Next by Thread: | Re: kmalloc issue on MIPS target, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |