public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Martin.Knoblauch" <Martin.Knoblauch@TeraPort.de>
To: "J . A . Magallon" <jamagallon@able.es>
Cc: "linux-kernel @ vger . kernel . org" <linux-kernel@vger.kernel.org>
Subject: Re: Size of /proc/kcore growing over time ?
Date: Mon, 14 May 2001 08:37:45 +0200	[thread overview]
Message-ID: <3AFF7D39.3FDD4144@TeraPort.de> (raw)
In-Reply-To: <3AFBE5BF.5865B0CA@TeraPort.de> <20010512003534.A1060@werewolf.able.es>

[-- Attachment #1: Type: text/plain, Size: 878 bytes --]

"J . A . Magallon" wrote:
> 
> On 05.11 Martin.Knoblauch wrote:
> >
> >  I ask, because I thought the size of kproc could be used to determine
> > the amount of physical memory. If this assumption is wrong, is there
> > another way to achive the goal?
> >
> 
> #include <sys/sysinfo.h> // for get_phys_pages()
> #include <unistd.h> // for getpagesize()
> 
> ram = get_phys_pages()*getpagesize();
> 

 Close, but not there :-) What I want is the total physical memory in
the system. Above seems to report only the physical pages available to
the kernel.

Thanks anyway
Martin
-- 
------------------------------------------------------------------
Martin Knoblauch         |    email:  Martin.Knoblauch@TeraPort.de
TeraPort GmbH            |    Phone:  +49-89-510857-309
IT Services              |    Fax:    +49-89-510857-111
http://www.teraport.de   |    Mobile: +49-170-4904759

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Card for Martin.Knoblauch --]
[-- Type: text/x-vcard; charset=us-ascii; name="Martin.Knoblauch.vcf", Size: 381 bytes --]

begin:vcard 
n:Knoblauch;Martin
tel;cell:+49-170-4904759
tel;fax:+49-89-510857-111
tel;work:+49-89-510857-309
x-mozilla-html:FALSE
url:http://www.teraport.de
org:TeraPort GmbH;IT-Services
adr:;;Garmischer Straße 4;München;Bayern;D-80339;Germany
version:2.1
email;internet:Martin.Knoblauch@TeraPort.de
title:Senior System Engineer
x-mozilla-cpt:;32160
fn:Martin Knoblauch
end:vcard

      reply	other threads:[~2001-05-14  6:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-11 13:14 Size of /proc/kcore growing over time ? Martin.Knoblauch
2001-05-11 22:35 ` J . A . Magallon
2001-05-14  6:37   ` Martin.Knoblauch [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3AFF7D39.3FDD4144@TeraPort.de \
    --to=martin.knoblauch@teraport.de \
    --cc=jamagallon@able.es \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox