[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ramdisk_size



Geert Stappers wrote:
> On Thu, Aug 25, 2005 at 02:24:29PM +0200, Thiemo Seufer wrote:
> > Frans Pop wrote:
> > > On Thursday 25 August 2005 10:29, Geert Stappers wrote:
> > > > > -append="cdrom ramdisk_size=16384 devfs=mount rw"
> > > > > -initrd=/boot/initrd.gz
> > > > > +append="cdrom ramdisk_size=18000 devfs=mount rw"
> > > >
> > > > I would expect 17408 or 18432, because they are Mib boundaries
> > > 
> > > Do you have some documentation for that?
> 
>  http://lxr.linux.no/source/Documentation/ramdisk.txt#L42
> speaks about 'k' and a default of 4096
> 
> > > Nothing seems to break if you use other values.
> > > What is the benefit of using Mib values?
> > 
> > Any multiple of PAGE_SIZE is ok.
> 
> AFAIK MMUs is a memory page a power of two. ( 2, 4, 8, 16 , 32 )
> with Mib values ( 1024 is 2^10 ) are we allways save.

It is 4k for most architectures, 8k for alpha, and 4k-64k for mips.
I _think_ the ramdisk code aligns automatically to the next upper or
lower page border (at least it should do so), which means any value is
safe. Multiples of PAGE_SIZE is what the ramdisk code internally expects.


Thieom

Attachment: signature.asc
Description: Digital signature


Reply to: