How much memory is used according to sysctl?
Which memory is sysctl measuring?
Please remember Physical Mem. = Hardware memory i.e. the RAM in the
system.
and
Real Memory = memory available to user processes.
and just to make it confusing
Some systems use Real Memory instead of Physical memory and Virtual
Memory instead of Real memory.
I don't use BSD so can't comment on that but a quick look at our servers
shows differences in memory
Solaris 7 = Real Memory
Solaris 9 = Physical Memory and Virtual Memory
Solaris 10 = Real Memory
CentOS 5.1 = Physical memory and Virtual Memory
Red Hat 7.2 = Real Memory and Memory buffers
SuSE = Real Memory and Memory Buffers
________________________________
From: Chee Meng Gui [mailto:[EMAIL PROTECTED]
Sent: 13 August 2008 17:05
To: Hampton, Michael
Cc: Dave Shield; net-snmp-users@lists.sourceforge.net
Subject: Re: how to monitor memory usage on freebsd systems
Thanks Michael for the reply.
But the total memory used was definitely not more than 10%.
I checked sysctl and it was less than 10%.
So the hrStorageUsed figure is incorrect.
Is there something wrong with the net-snmp implementation for Freebsd?
Regards
cm_gui
On Wed, Aug 13, 2008 at 12:54 AM, Hampton, Michael
<[EMAIL PROTECTED]> wrote:
Total Memory Used = (hrStorageUsed / hrStorageSize) * 100
Physical memory = (117279 / 128596) * 100 = 91%
Real memory = (103978/121008) * 100 = 85%
________________________________
From: Chee Meng Gui [mailto:[EMAIL PROTECTED]
Sent: 12 August 2008 22:55
To: Dave Shield
Cc: Hampton, Michael; net-snmp-users@lists.sourceforge.net
Subject: Re: how to monitor memory usage on freebsd systems
Sorry , actually have to multiply the hrStorageUsed by the
AllocationUnits, i.e.
1172379 x 4096.
So actually almost all the Physical and Real memories are used!
But this is definitely not the case.
So how to get the total memory used on a Freebsd system from
snmp?
thank you.
hrStorageIndex hrStorageType
hrStorageDescr hrStorageAllocationUnits hrStorageSize hrStorageUsed
hrStorageAllocation
Failures
1 HOST-RESOURCES-TYPES::hrStorageRam Physical
memory 4096 Bytes 128596 117279 0
2 HOST-RESOURCES-TYPES::hrStorageRam Real
memory 4096 Bytes 121008 103978 0
On Tue, Aug 12, 2008 at 2:21 AM, Dave Shield
<[EMAIL PROTECTED]> wrote:
2008/8/12 Chee Meng Gui <[EMAIL PROTECTED]>:
> So the hrStorageEntry.hrStorageUsed.1 is in
kilobytes?
hrStorageUsed is reported in the units specified in
hrStorageUnits.
So if hrStorageUnits.1 is 1024, then hrStorageUsed.1 is
in Kb
> When I checked this result against the used memory
output of sysctl {
> hw.physmem - ( ( vm.stats.vm.v_inactive_count +
vm.stats.vm.v_cache_count +
> vm.stats.vm.v_free_count ) * hw.pagesize ) } , the two
were not equal.
On FreeBSD with the latest (5.4.x) agent, "Physical
memory" is
retrieved by running sysctl on HW_USERMEM. Most of the
other
values are calculated by running sysctl on VM_METER
See 'agent/mibgroup/hardware/memory/memory_freebsd.c'
for the details.
Dave
--
Chee Meng Gui
Function Engineering
650-833-0660
http://www.vital-group.com - Dedicated to business communications.
http://www.vital-storage.com
- Secure easy-to-use remote backups for business critical data.
The information contained in this message is intended for the addressee
only and may contain confidential and/or privileged information.If you
are not the addressee, please delete this message and notify the sender;
you should not copy or distribute this message or disclose its contents
to anyone.Any views or opinions expressed in this message are those of
the author and do not necessarily represent those of The Vital
International Group or any of its affiliates.No reliance may be placed
on this message without written confirmation from an authorised
representative of its contents.
Registered in England. Vital International Limited. Leigh House, Weald
Road, Brentwood, Essex, CM14 4SX.Company registration number - 45022560.
08/13/08 08:54:42
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move
Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win
great prizes
Grand prize is a trip for two to an Open Source event anywhere
in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other
options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
--
Chee Meng Gui
Function Engineering
650-833-0660
http://www.vital-group.com - Dedicated to business communications.
http://www.vital-storage.com - Secure easy-to-use remote backups for
business critical data.
The information contained in this message is intended for the addressee only
and may contain confidential and/or privileged information.If you are not the
addressee, please delete this message and notify the sender; you should not
copy or distribute this message or disclose its contents to anyone.Any views or
opinions expressed in this message are those of the author and do not
necessarily represent those of The Vital International Group or any of its
affiliates.No reliance may be placed on this message without written
confirmation from an authorised representative of its contents.
Registered in England. Vital International Limited. Leigh House, Weald Road,
Brentwood, Essex, CM14 4SX.Company registration number - 45022560.
08/14/08 09:13:13
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users