kmalloc size limit?

Greg KH greg at kroah.com
Sat Aug 20 05:47:38 EDT 2016


On Fri, Aug 19, 2016 at 11:51:18PM +0530, Muni Sekhar wrote:
> Hi All,
> 
> I would like to know what is the maximum size limit for kmalloc() API
> to return a valid memory?

Depends on the system :)

Why, what are you trying to use large amounts of memory for?

> Does the size limit varies based on the flags argument?

Yes it can.

sorry for being vague, but the questions were really vague...

greg k-h



More information about the Kernelnewbies mailing list