On Mon, Dec 15, 2008 at 03:58:40PM +0900, Ryusuke Konishi wrote: > On Sun, 14 Dec 2008 16:13:27 +0100, Andi Kleen <andi@xxxxxxxxxxxxxx> wrote: > > > -#define KMALLOC_SIZE_MIN 4096 /* 4KB */ > > > -#define KMALLOC_SIZE_MAX 131072 /* 128 KB */ > > > +#define NILFS_IOCTL_KMALLOC_SIZE 8192 /* 8KB */ > > > > Better would be if you could go to PAGE_SIZE. order 0 allocations > > are typically the fastest / least likely to stall. > > > > Also in this case it's a good idea to use __get_free_pages() > > directly, kmalloc tends to be become less efficient at larger > > sizes. > > Thanks again. I've rewritten the patch to use __get_free_pages(). Thanks looks good now. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html