Re: kmalloc size limit?

From: Muni Sekhar
Date: Mon Aug 22 2016 - 09:04:39 EST


On Mon, Aug 22, 2016 at 5:42 PM, Michal Hocko <mhocko@xxxxxxxxxx> wrote:
> On Sat 20-08-16 00:09:53, Muni Sekhar wrote:
>> Hi All,
>>
>> I would like to know what is the maximum size limit for kmalloc() API
>> to return a valid memory?
>
> KMALLOC_MAX_CACHE_SIZE
Thanks Michal.

>
>> Does the size limit varies based on the flags argument?
>
> no but different flags can greatly influence how succesful such an
> allocation can be.
> --
> Michal Hocko
> SUSE Labs



--
Thanks,
Sekhar