Hi All, I would like to know what is the maximum size limit for kmalloc() API to return a valid memory? Does the size limit varies based on the flags argument? -- Thanks, Sekhar
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
On 19-Aug-2016, at 11:51 pm, Muni Sekhar <munisekharrms@gmail.com> wrote:
Hi All,
I would like to know what is the maximum size limit for kmalloc() API to return a valid memory?
AFAIK, on x86 the largest allocation is 1024 pages. It boils down to 4MB.
Does the size limit varies based on the flags argument?
-- Thanks, Sekhar
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (3)
-
arshad hussain -
Greg KH -
Muni Sekhar