From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755226AbcHVMMh (ORCPT ); Mon, 22 Aug 2016 08:12:37 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:36483 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751032AbcHVMMg (ORCPT ); Mon, 22 Aug 2016 08:12:36 -0400 Date: Mon, 22 Aug 2016 14:12:33 +0200 From: Michal Hocko To: Muni Sekhar Cc: linux-kernel@vger.kernel.org Subject: Re: kmalloc size limit? Message-ID: <20160822121233.GD14916@dhcp22.suse.cz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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