Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263439AbTKQR0B (ORCPT ); Mon, 17 Nov 2003 12:26:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263598AbTKQR0B (ORCPT ); Mon, 17 Nov 2003 12:26:01 -0500 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:14989 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S263439AbTKQRZ7 (ORCPT ); Mon, 17 Nov 2003 12:25:59 -0500 Date: Mon, 17 Nov 2003 17:25:57 +0000 From: viro@parcelfarce.linux.theplanet.co.uk To: Chris Friesen Cc: "Kevin P. Fleming" , Andrey Borzenkov , Jeff Garzik , linux-kernel Subject: Re: Is initramfs freed after kernel is booted? Message-ID: <20031117172557.GX24159@parcelfarce.linux.theplanet.co.uk> References: <3FB8EBC2.1080800@nortelnetworks.com> <3FB8ED91.3050305@backtobasicsmgmt.com> <3FB8F218.30601@nortelnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FB8F218.30601@nortelnetworks.com> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 854 Lines: 20 On Mon, Nov 17, 2003 at 11:06:48AM -0500, Chris Friesen wrote: > Kevin P. Fleming wrote: > > >There is no pivot_root happening here; the kernel creates a ramfs and > >mounts it on / (as rootfs), then unpacks the initramfs cpio archive into > >it. After doing a few more steps, it overmounts the real root onto /, > >making the rootfs filesystem invisible. It is not freed in the current > >kernels. > > Anyone know why it overmounts rather than pivots? Because amount of extra code you lose that way takes more memory than empty roots takes. Remove whatever files you don't need and be done with that. - 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/