public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Size of /proc/kcore growing over time ?
@ 2001-05-11 13:14 Martin.Knoblauch
  2001-05-11 22:35 ` J . A . Magallon
  0 siblings, 1 reply; 3+ messages in thread
From: Martin.Knoblauch @ 2001-05-11 13:14 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

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

Hi,

 is it normal that the size of /proc/kcore grows over time? Directly
after a boot it has the size of the physical memory. Over time it seems
to grow slightly. In about a day it went from 192 MB to about 203 MB.
This is 2.4.4-ac6 running on a Toshiba Notebook.

 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?

Happy weekend
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Size of /proc/kcore growing over time ?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: J . A . Magallon @ 2001-05-11 22:35 UTC (permalink / raw)
  To: Martin . Knoblauch; +Cc: linux-kernel @ vger . kernel . org


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();

-- 
J.A. Magallon                           #  Let the source be with you...        
mailto:jamagallon@able.es
Linux Mandrake release 8.1 (Cooker) for i586
Linux werewolf 2.4.4-ac6 #1 SMP Wed May 9 14:28:00 CEST 2001 i686


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Size of /proc/kcore growing over time ?
  2001-05-11 22:35 ` J . A . Magallon
@ 2001-05-14  6:37   ` Martin.Knoblauch
  0 siblings, 0 replies; 3+ messages in thread
From: Martin.Knoblauch @ 2001-05-14  6:37 UTC (permalink / raw)
  To: J . A . Magallon; +Cc: linux-kernel @ vger . kernel . org

[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-05-14  6:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox