Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263290AbTKQPqj (ORCPT ); Mon, 17 Nov 2003 10:46:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263561AbTKQPqj (ORCPT ); Mon, 17 Nov 2003 10:46:39 -0500 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:19336 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S263290AbTKQPqi (ORCPT ); Mon, 17 Nov 2003 10:46:38 -0500 Message-ID: <3FB8ED43.2090102@pobox.com> Date: Mon, 17 Nov 2003 10:46:11 -0500 From: Jeff Garzik User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030703 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chris Friesen CC: Andrey Borzenkov , linux-kernel Subject: Re: Is initramfs freed after kernel is booted? References: <3FB8EBC2.1080800@nortelnetworks.com> In-Reply-To: <3FB8EBC2.1080800@nortelnetworks.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1017 Lines: 32 Chris Friesen wrote: > Andrey Borzenkov wrote: > >> my example is after pivot_root. I still have two roots. >> >> To clarify. I want to replace initrd with initramfs. Given all >> the stuff may be put in it can easily be expanded to a couple of MBs. >> initrd frees this. I do not want to waste RAM to leave them in initramfs. > > > Absolutely, the memory should be reclaimed. I would have thought that > you could just unmount it--if the pivot_root is done properly there > shouldn't be any references left to the initramfs. > > Jeff? You can't unmount rootfs. And I'm not sure pivot_root will work, though we're quickly reaching the end of my knowledge[1]. Certainly the equivalent of "rm -rf *" will work. Jeff [1] without reviewing the code again :) - 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/