Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 31 Oct 2000 05:49:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 31 Oct 2000 05:49:08 -0500 Received: from obelix.hrz.tu-chemnitz.de ([134.109.132.55]:27884 "EHLO obelix.hrz.tu-chemnitz.de") by vger.kernel.org with ESMTP id ; Tue, 31 Oct 2000 05:49:02 -0500 Date: Tue, 31 Oct 2000 11:48:51 +0100 From: Ingo Oeser To: Rik van Riel Cc: "Richard B. Johnson" , Linux kernel , linux-mm@kvack.org Subject: Re: kmalloc() allocation. Message-ID: <20001031114851.D7204@nightmaster.csn.tu-chemnitz.de> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from riel@conectiva.com.br on Mon, Oct 30, 2000 at 02:40:16PM -0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 30, 2000 at 02:40:16PM -0200, Rik van Riel wrote: > > There are 256 megabytes of SDRAM available. I don't think it's > > reasonable that a 1/2 megabyte allocation would fail, especially > > since it's the first module being installed. > If you write the defragmentation code for the VM, I'll > be happy to bump up the limit a bit ... Should become easier once we start doing physical page scannings. We could record physical continous freeable areas on the fly then. If someone asks for them later, we recheck whether they still exists and free (inactive_clean) or remap (active or inactive_dirty) the whole area, whether they are used or not. This could still be improved by using up smallest fit areas first for kmalloc() based on these areas. But beware: We just have a good hint here, which needs to be rechecked every time we allocate such areas to become guarantee. Rik: What do you think about this (physical cont. area cache) for 2.5? Regards Ingo Oeser -- Feel the power of the penguin - run linux@your.pc :x - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/