Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263460AbTKQPXR (ORCPT ); Mon, 17 Nov 2003 10:23:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263574AbTKQPXR (ORCPT ); Mon, 17 Nov 2003 10:23:17 -0500 Received: from f7.mail.ru ([194.67.57.37]:47110 "EHLO f7.mail.ru") by vger.kernel.org with ESMTP id S263460AbTKQPXP (ORCPT ); Mon, 17 Nov 2003 10:23:15 -0500 From: =?koi8-r?Q?=22?=Andrey Borzenkov=?koi8-r?Q?=22=20?= To: =?koi8-r?Q?=22?=Chris Friesen=?koi8-r?Q?=22=20?= Cc: =?koi8-r?Q?=22?=Jeff Garzik=?koi8-r?Q?=22=20?= , =?koi8-r?Q?=22?=linux-kernel=?koi8-r?Q?=22=20?= Subject: Re: Is initramfs freed after kernel is booted=?koi8-r?Q?=3F?= Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [212.248.25.26] Date: Mon, 17 Nov 2003 18:36:54 +0300 In-Reply-To: <3FB8DDB9.8080709@nortelnetworks.com> Reply-To: =?koi8-r?Q?=22?=Andrey Borzenkov=?koi8-r?Q?=22=20?= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1067 Lines: 37 -----Original Message----- > > Jeff Garzik wrote: > > Andrey Borzenkov wrote: > > > >> Apparently not: > >> > >> {pts/1}% head -2 /proc/mounts > >> rootfs / rootfs rw 0 0 > >> /dev/root / reiserfs rw 0 0 > >> > >> at least it is still mounted. Is there any way to free it? > > > rootfs is always present. It's the root, as the name implies :) > > He's got two root filesystems, one on top of the other. It should be > possible to pivot root rather than mount the second one, thus freeing up > the memory from the initramfs. > 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. thank you -andrey - 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/