Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1Bbihk-0003lO-U4 for mharc-grub-devel@gnu.org; Sat, 19 Jun 2004 12:28:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bbihj-0003lC-B8 for grub-devel@gnu.org; Sat, 19 Jun 2004 12:28:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bbihi-0003kn-Dc for grub-devel@gnu.org; Sat, 19 Jun 2004 12:28:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bbihi-0003kk-AO for grub-devel@gnu.org; Sat, 19 Jun 2004 12:28:30 -0400 Received: from [62.21.237.208] (helo=pc-jeroen) by monty-python.gnu.org with esmtp (TLSv1:RC4-SHA:128) (Exim 4.34) id 1BbigL-0001Bc-LI for grub-devel@gnu.org; Sat, 19 Jun 2004 12:27:05 -0400 Received: from localhost ([127.0.0.1] helo=pc-jeroen.dekkers.cx ident=jeroen) by pc-jeroen with esmtp (Exim 4.32) id 1BbigI-0000pk-RA for grub-devel@gnu.org; Sat, 19 Jun 2004 18:27:02 +0200 Date: Sat, 19 Jun 2004 18:27:02 +0200 Message-ID: <87vfhno6nd.wl@pc-jeroen.dekkers.cx> From: Jeroen Dekkers To: The development of GRUB 2 In-Reply-To: <877ju3pmdy.fsf@marco.marco-g.com> References: <20040615113103.GA4639@artax.karlin.mff.cuni.cz> <874qp9dled.fsf@marco.marco-g.com> <20040618191411.GA30179@artax.karlin.mff.cuni.cz> <200406191705.01343.okuji@enbug.org> <877ju3pmdy.fsf@marco.marco-g.com> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Subject: Re: Autoloading WAS: normal/cmdline bug & patch X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jun 2004 16:28:31 -0000 At Sat, 19 Jun 2004 18:01:45 +0200, Marco Gerards wrote: > > "Yoshinori K. Okuji" writes: > > > for each loaded filesystem module: > > try the filesystem with a specified partition/disk > > return if successful > > for each non-loaded filesystem module: > > load the filesystem module > > try the filesystem > > return if successful > > unload the filesystem module > > This is like what I proposed, with the difference of unloading the > module. I don't think the memory usage is *that* high. > > For example, there are 15 filesystems that should be tried. The > filesystems that we have now (ext2, fat, ufs and minixfs) are all > about 4KB. I want to make some changes (sharing code) so that will > become smaller, but there will be more complex filesystem. Let's > assume for now the average filesystem module will be 5KB. In that > case (15*5) 75KB will be used as max. > > To me that looks like low memory usage, less than reloading those > modules all the time. For the apple it is no problem to use a lot of > memory. I don't think there are problems for the pc, unless we have > to use <1MB. > > So I think it is not needed to unload those filesystems and that > keeping those loaded will only boost performance. If it is required > we can use (as Tomas proposed, IIRC) a user setable variable to > indicate if modules should be unloaded or not. If you try to allocate memory and there isn't anything available, it will first invalidate all caches and after that unload all unused modules. So I don't think it will be a big problem. Jeroen Dekkers