On Tue, 23 May 2000, Hugo Fiennes wrote:

> > Ramdisks cannot be mounted in place because the ramdisk implementation
> keeps
> > its contents in the file buffer cache.  The initrd initializes a ramdisk
> by
> > copying (and possibly uncompressing) a filesystem image from a memory
> region
> > into the ramdisks buffers.
> 
> Ah. I guess it's slightly more memory efficient having it take the initrd
> from flash directly than allocating some space, copying it to RAM, then
> having it loaded into more memory in the buffer cache? Otherwise you'll have
> 2 copies, though one could quite possibly be thrown out after the mount.
> This might have been what I was aiming for originally, it was a couple of
> years ago now...

The initrd image is actually freed once it has been copied into the buffer
cache.  Of course this memory freeing must not occur if initrd data
initially exist in Flash.


Nicolas


unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++        Please use [EMAIL PROTECTED] for           ++
++                        kernel-related discussions.                      ++

Reply via email to