To calculate the size of the kernel, perform the
following using the kernel file (for example, /stand/vmunix) on the target OS:
Get
the size of the kernel:
# size /stand/vmunix
[18784256 + 4775224 + 6696240 = 30255720 |
The size of the kernel is the final number: 30255720
Divide
by (1024 * 1024):
((30255720) / (1024 * 1024)) + 1 = 29.85
Round
up the result to the next multiple of 64 MB:
29.85 rounded to the next multiple of 64 MB = 64 MB
Use this number (64 MB) for the size of kernel. (Although the actual size of the kernel
may be closer to 30 MB, the minimum granularity with which memory
is assigned to a partition is 64 MB.)