Xymon Mailing List Archive search

question on memory swap for Darwin clients

5 messages in this thread

list Dominique Frise · Tue, 18 Apr 2006 08:38:04 +0200 ·
Hi,

Here the output of memory real and swap values for a Mac OSX client:


  Tue Apr 18 08:34:07 CEST 2006 - Memory OK

    Memory              Used       Total  Percentage
green Physical            420M       1024M         41%
green Swap         4294967295M 4294967295M          0%


What means this hudge value for swap?

----Extract of client data----
[meminfo]
Mach Virtual Memory Statistics: (page size of 4096 bytes)
Pages free:                   154609.
Pages active:                  45696.
Pages inactive:                34172.
Pages wired down:              27667.
"Translation faults":      702133041.
Pages copy-on-write:       110185692.
Pages zero filled:         148901972.
Pages reactivated:             26786.
Pageins:                     3864958.
Pageouts:                      27880.
Object cache: 18823165 hits of 23019598 lookups (81% hit rate)

Dominique
list Henrik Størner · Tue, 18 Apr 2006 09:59:57 +0200 ·
quoted from Dominique Frise
On Tue, Apr 18, 2006 at 08:38:04AM +0200, Dominique Frise wrote:
Here the output of memory real and swap values for a Mac OSX client:


 Tue Apr 18 08:34:07 CEST 2006 - Memory OK

   Memory              Used       Total  Percentage
green Physical            420M       1024M         41%
green Swap         4294967295M 4294967295M          0%


What means this hudge value for swap?
It's a bug. There is no swap information in the Darwin vm_stat output,
so it shouldn't be reporting those at all.


Henrik
list Dominique Frise · Tue, 18 Apr 2006 10:13:10 +0200 ·
quoted from Henrik Størner
Henrik Stoerner wrote:
On Tue, Apr 18, 2006 at 08:38:04AM +0200, Dominique Frise wrote:
Here the output of memory real and swap values for a Mac OSX client:


Tue Apr 18 08:34:07 CEST 2006 - Memory OK

  Memory              Used       Total  Percentage
green Physical            420M       1024M         41%
green Swap         4294967295M 4294967295M          0%


What means this hudge value for swap?

It's a bug. There is no swap information in the Darwin vm_stat output,
so it shouldn't be reporting those at all.


Henrik

There is

-- 
Meilleures salutations,

Dominique
__________________UNIL - University of Lausanne__________________
Dominique Frise                   E-mail: user-78ab6673b600@xymon.invalid
UNIL, Centre Informatique         Phone:         +XX XX XXX XX XX
Quartier Sorge / Amphimax         Fax:           +XX XX XXX XX XX
CH-1015 Lausanne, Switzerland     URL:      http://www.unil.ch/ci
list Henrik Størner · Tue, 18 Apr 2006 10:21:17 +0200 ·
quoted from Dominique Frise
On Tue, Apr 18, 2006 at 10:13:10AM +0200, Dominique Frise wrote:
Henrik Stoerner wrote:
It's a bug. There is no swap information in the Darwin vm_stat output,
so it shouldn't be reporting those at all.
There is
Clue me in. Which bit of this info is about swap ?
quoted from Dominique Frise
[meminfo]
Mach Virtual Memory Statistics: (page size of 4096 bytes)
Pages free:                   154609.
Pages active:                  45696.
Pages inactive:                34172.
Pages wired down:              27667.
"Translation faults":      702133041.
Pages copy-on-write:       110185692.
Pages zero filled:         148901972.
Pages reactivated:             26786.
Pageins:                     3864958.
Pageouts:                      27880.
Object cache: 18823165 hits of 23019598 lookups (81% hit rate)
I can understand the Pageins/Pageouts. But that sounds like swap
activity, not how much swap is used.


Henrik
list Dominique Frise · Tue, 18 Apr 2006 10:37:56 +0200 ·
quoted from Henrik Størner
Henrik Stoerner wrote:
On Tue, Apr 18, 2006 at 10:13:10AM +0200, Dominique Frise wrote:
Henrik Stoerner wrote:
It's a bug. There is no swap information in the Darwin vm_stat output,
so it shouldn't be reporting those at all.
There is

Clue me in. Which bit of this info is about swap ?

[meminfo]
Mach Virtual Memory Statistics: (page size of 4096 bytes)
Pages free:                   154609.
Pages active:                  45696.
Pages inactive:                34172.
Pages wired down:              27667.
"Translation faults":      702133041.
Pages copy-on-write:       110185692.
Pages zero filled:         148901972.
Pages reactivated:             26786.
Pageins:                     3864958.
Pageouts:                      27880.
Object cache: 18823165 hits of 23019598 lookups (81% hit rate)

I can understand the Pageins/Pageouts. But that sounds like swap
activity, not how much swap is used.


Henrik

Sorry my mail get sent to quickly!

---Extract of http://forums.macosxhints.com/archive/index.php/t-30544.html---

By default OS X will use a 64mb swap space file until it needs to allocate more - a 256mb swap space with over 100-200 thousand pageouts is a good indicator of memory starvation.

Pageouts through time is the most interesting metric, as that will tell you how much the OS has moved out. Of course, even this doesn't quite tell you the complete story, as there can sometimes be bursts of activity when it doesn't have too much effect otherwise.

One good indicator of needing more memory is if, while doing whatever you consider normal work on the machine, the pagout count continues to climb, but don't watch right after booting/logging in as there will be some initial change at that time.

The other is to watch how many swapfiles exist in /private/var/vm which is affected by pageouts which haven't been brought back in.

In other words, yes, it is not so trivial to watch the swap/pageouts activity on Mac OSX ;-)

Dominique