mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* kmalloc size limit?
@ 2016-08-19 18:39 Muni Sekhar
  2016-08-22 12:12 ` Michal Hocko
  0 siblings, 1 reply; 3+ messages in thread
From: Muni Sekhar @ 2016-08-19 18:39 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kmalloc size limit?
  2016-08-19 18:39 kmalloc size limit? Muni Sekhar
@ 2016-08-22 12:12 ` Michal Hocko
  2016-08-22 13:04   ` Muni Sekhar
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Hocko @ 2016-08-22 12:12 UTC (permalink / raw)
  To: Muni Sekhar; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kmalloc size limit?
  2016-08-22 12:12 ` Michal Hocko
@ 2016-08-22 13:04   ` Muni Sekhar
  0 siblings, 0 replies; 3+ messages in thread
From: Muni Sekhar @ 2016-08-22 13:04 UTC (permalink / raw)
  To: Michal Hocko; +Cc: linux-kernel

On Mon, Aug 22, 2016 at 5:42 PM, Michal Hocko <mhocko@kernel.org> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-22 13:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-19 18:39 kmalloc size limit? Muni Sekhar
2016-08-22 12:12 ` Michal Hocko
2016-08-22 13:04   ` Muni Sekhar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®