Re: /proc/kcore size incorrect ?

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

 



On 10/23/05, J.A. Magallon <[email protected]> wrote:

> BTW, any simple method to get the real mem of the box ?

This is a typical example of using a hammer to crack a nut aka
modifying the kernel before giving up on userspace.

Several ways of looking up a solution:

    * google
    * man -k memory

Leading to:

* free(1):
    ``free  displays the total amount of free and used physical and swap''

* Or /proc/meminfo (both the same thing) - which you can trivially
parse using sed:

cat /proc/meminfo | sed -n -e "s/^MemTotal:[ ]*\([0-9]*\) kB\$/\1/p"

Jon.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux