Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965068AbXASLmj (ORCPT ); Fri, 19 Jan 2007 06:42:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965074AbXASLmj (ORCPT ); Fri, 19 Jan 2007 06:42:39 -0500 Received: from nf-out-0910.google.com ([64.233.182.191]:30135 "EHLO nf-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965068AbXASLmi (ORCPT ); Fri, 19 Jan 2007 06:42:38 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=td3n2hKVQ6TAStg8Nc8xfuZd+yxb+QcueJa8U4EQW8tYm3YvDLmfwpiZg4CFdY8NjdF81laszpzBIlmmVQmU/maUmT+LebHWUpNqEUdj2+YaH/TLzeWtaV3Jthc8lAUgskPpCG9jvVcaeC8ARHUgCXh5irA0dJBx7cQ0Ra90fIA= Message-ID: <7783925d0701190342j7e0e89a0ib0e9a7278887355f@mail.gmail.com> Date: Fri, 19 Jan 2007 17:12:35 +0530 From: "Rick Brown" To: "Raz Ben-Jehuda(caro)" Subject: Re: [DISCUSS] memory allocation method Cc: "Linux Kernel" In-Reply-To: <5d96567b0701150536j4c3c50abndec5155ddb53d4a1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5d96567b0701150536j4c3c50abndec5155ddb53d4a1@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 587 Lines: 15 On 1/15/07, Raz Ben-Jehuda(caro) wrote: > I have a process who allocates as much as possible of RAM > in 4 G ram 32bit machine. This buffer is never released. > > Questions: > > 1. Is it better allocates with many 1MB buffers or allocate it in with > one a big valloc ? ONe BIG vmalloc has huge, huge chances of failure. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/