Re: how do get kernel memory size

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

 



On Wed, May 21, 2008 at 10:47 AM, Kathiresan, Lekshmanan
<Lekshmanan.Kathiresan@xxxxxxxxxxxxx> wrote:
> Hi ,
>
>     I want to know how much memory allocated kernel space and user space
> when system booted. Is there any function in kernel to find out these
> memory.

In the output of "dmesg" you will see some entries like this.

[   11.283182] Memory: 1546292k/1571648k available (2015k kernel code,
24112k reserved, 915k data, 364k init, 654144k highmem)
[   11.283191] virtual kernel memory layout:
[   11.283193]     fixmap  : 0xfff4d000 - 0xfffff000   ( 712 kB)
[   11.283194]     pkmap   : 0xff800000 - 0xffc00000   (4096 kB)
[   11.283195]     vmalloc : 0xf8800000 - 0xff7fe000   ( 111 MB)
[   11.283196]     lowmem  : 0xc0000000 - 0xf8000000   ( 896 MB)
[   11.283198]       .init : 0xc03e3000 - 0xc043e000   ( 364 kB)
[   11.283199]       .data : 0xc02f7e86 - 0xc03dce84   ( 915 kB)
[   11.283200]       .text : 0xc0100000 - 0xc02f7e86   (2015 kB)


Or if you want to know the split, it would be 3GB:1::User:kernel if
you are on any standard OS and didn't configure your kernel by hand.


HTH

>
>
>
> Please guide me
>
>
>
> With Thanks & Regards,
> Lekshmanan



-- 
Thanks & Regards,
********************************************
Manish Katiyar ( http://mkatiyar.googlepages.com )
3rd Floor, Fair Winds Block
EGL Software Park
Off Intermediate Ring Road
Bangalore 560071, India
***********************************************

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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