Re: kmalloc size limit?

From: Michal Hocko
Date: Mon Aug 22 2016 - 08:12:40 EST


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

> 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