Re: Determining amout a physical RAM my kernel needs?

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

 



Rick Brown wrote:
> Hi list,
>
> I have a kernel image about 600 KB in size that I intend to program to
> flash memory on my target board (hence size required in flash=600 KB).
>
> 1) But how do I determine the size of the RAM required to run that
> image? (Since I believe the image will be uncompressed in RAM, plus
> will also need some extra memory)? Can I determine this info from the
> kernel image / System.map etc?

I believe you can only quantify this by experimentation. The more
services and applications you have running the less free memory you will
have. You can try to start with a baseline configuration and tweak it to
suit your requirements.

> 2) Also, is there any way to determine (accurately) the amount of RAM
> eaten up by the kernel (plus modules), on a RUNNING system?

You can do a "top -p pid" and watch the resident and virtual memory stats.

>
> TIA,
>
> Rick

William


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux