* VMSTAT
@ 1999-05-20 4:00 Peter
1999-05-20 4:00 ` VMSTAT Andrew Stafford
1999-05-20 4:00 ` VMSTAT Sander van Malssen
0 siblings, 2 replies; 4+ messages in thread
From: Peter @ 1999-05-20 4:00 UTC (permalink / raw)
I am using VMSTAT to monitor my systems memory. How do I tell if it is low
on memory ?.
Thanks
Peter.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: VMSTAT
1999-05-20 4:00 VMSTAT Peter
1999-05-20 4:00 ` VMSTAT Andrew Stafford
@ 1999-05-20 4:00 ` Sander van Malssen
1 sibling, 0 replies; 4+ messages in thread
From: Sander van Malssen @ 1999-05-20 4:00 UTC (permalink / raw)
"Peter" <peter@j9.freeuk.com> writes:
> I am using VMSTAT to monitor my systems memory. How do I tell if it is low
> on memory ?.
Do a 'vmstat -P' and have a look at the Managed Pages Break Down section.
Roughly speaking, free means free mem, active + inactive means in use by
processes, wired means diverse unswappable system memory, ubc is the unified
buffer cache. It can be a bit tricky though to exactly define what constitutes
'low' free memory.
Perhaps a more pragmatic approach would be to run 'vmstat 1' for a while and
see if the system swaps a lot (pin colunm). If it does, you're running low
on memory.
Cheers,
Sander
--
work : s.vanmalsen at kpn com
home : svm at kozmix ow nl
not speaking for : my employer
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: VMSTAT
1999-05-20 4:00 VMSTAT Peter
@ 1999-05-20 4:00 ` Andrew Stafford
1999-06-03 4:00 ` VMSTAT Karey W. Todd
1999-05-20 4:00 ` VMSTAT Sander van Malssen
1 sibling, 1 reply; 4+ messages in thread
From: Andrew Stafford @ 1999-05-20 4:00 UTC (permalink / raw)
To: Peter
[-- Attachment #1: Type: text/plain, Size: 6488 bytes --]
The following is out if the Digital Unix 4.0D System Configuration and
Tuning Guide. I used the paragraph in bold text as an aid in diagnosing my
shortage of physical memory.
2.4.2 Using vmstat to Display Virtual Memory and CPU Statistics
The vmstat command shows the virtual memory, process, and total CPU statistics
for a specified time interval. The first line of the output is for all time
since a
reboot, and each subsequent report is for the last interval. Because the CPU
operates faster than the rest of the system, performance bottlenecks usually
exist in the
memory or I/O subsystems.
To determine the amount of memory on your system, use the uerf -r 300 command.
The beginning of the listing shows the total amount of physical memory
(including wired memory) and the amount of available memory.
An example of the vmstat command is as follows; output is provided in
one-second intervals:
# vmstat 1
Virtual Memory Statistics: (pagesize = 8192)
procs memory pages intr cpu
r w u act free wire fault cow zero react pin pout in sy cs us sy id
2 66 25 6417 3497 1570 155K 38K 50K 0 46K 0 4 290 165 0 2 98
4 65 24 6421 3493 1570 120 9 81 0 8 0 585 865 335 37 16 48
2 66 25 6421 3493 1570 69 0 69 0 0 0 570 968 368 8 22 69
4 65 24 6421 3493 1570 69 0 69 0 0 0 554 768 370 2 14 84
4 65 24 6421 3493 1570 69 0 69 0 0 0 865 1K 404 4 20 76
[1] [2] [3]
[4]
The vmstat command includes information that you can use to diagnose CPU and
virtual memory problems. The following fields are particularly important:
1.Virtual memory information (memory), including the number of pages that
are on the active list, including inactive pages and Unified Buffer Cache
least-recently used (UBC LRU) pages (act); the number of pages on the
free list (free), and the number of pages on the wire list (wire). Pages on
the wire
list cannot be reclaimed. See Chapter 4 for more information on page
lists. [Return to example]
2.The number of pages that have been paged out (pout). [Return to example]
3.Interrupt information (intr), including the number of nonclock device
interrupts per second (in), the number of system calls called per second (sy),
and the
number of task and thread context switches per second (cs). [Return to
example]
4.CPU usage information (cpu), including the percentage of user time for
normal and priority processes (us), the percentage of system time (sy), and
the
percentage of idle time (id). User time includes the time the CPU spent
executing library routines. System time includes the time the CPU spent
executing
system calls. [Return to example]
When diagnosing a bottleneck situation, keep the following issues in mind:
Invoke the vmstat command when the system is idle and also when the
system is busy in order to compare the resulting data. You can use the memx
memory
exerciser to put a load on the memory subsystem.
Is the system workload normal? Ensure that poor performance is not caused
by an atypical event or by a temporary increase in resource demand.
Check the size of the free page list (free). Compare the number of free
pages to the values for the active pages (act) and the wired pages (wire). The
sum
of the free, active, and wired pages should be close to the amount of
physical memory in your system. Although the value for free should be small,
if the
value is consistently small (less than 128 pages) and accompanied by
excessive paging and swapping, you may have a physical memory problem.
Examine the pout field. If the number of pageouts is consistently high,
you may have insufficient memory. You also may have insufficient swap space or
your
swap space may be configured inefficiently. Use the swapon -s command to
display your swap device configuration, and use the iostat command to
determine which swap disk is being used the most.
Check the user (us), system (sy), and idle (id) time split. You must
understand how your applications use the system to determine the appropriate
values for
these times. The goal is to keep the CPU as productive as possible. Idle
CPU cycles occur when no runnable processes exist or when the CPU is waiting
to
complete an I/O or memory request.
The following list presents information on how to interpret the values
for user, idle, and system time:
A high user time and a low idle time may indicate that your
application code is consuming most of the CPU. You can optimize the
application, or you
may need a more powerful processor.
A high system time and low idle time may indicate that something in
the application load is stimulating the system with high overhead operations.
Such
overhead operations could consist of high system call frequencies,
high interrupt rates, large numbers of small I/O transfers, or large numbers
of IPCs or
network transfers.
A high system time and low idle time may be caused by failing
hardware. Use the uerf command to check your hardware.
A high system time may also indicate that the system is thrashing;
that is, the amount of memory available to the virtual memory subsystem has
gotten so
low that the system is spending all its time paging and swapping in
an attempt to regain memory. A system that spends more than 50 percent of its
time
in system mode and idle mode may be doing a lot of paging and
swapping I/O, and therefore may have a virtual memory performance problem.
If the idle time is very low but performance is acceptable, your
system is utilizing its CPU efficiently.
If you have a high idle time and poor response time, and you are
sure that your system has a typical load, one or more of the following
problems may
exist: The hardware may have reached its capacity, one or more
kernel data structures is being exhausted, or you may have a hardware or
kernel
resource problem such as an application, disk I/O, or network
bottleneck.
See Chapter 3 for information on improving CPU performance and Chapter 4 for
information on tuning memory.
Peter wrote:
> I am using VMSTAT to monitor my systems memory. How do I tell if it is low
> on memory ?.
>
> Thanks
> Peter.
[-- Attachment #2: Type: text/html, Size: 10109 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: VMSTAT
1999-05-20 4:00 ` VMSTAT Andrew Stafford
@ 1999-06-03 4:00 ` Karey W. Todd
0 siblings, 0 replies; 4+ messages in thread
From: Karey W. Todd @ 1999-06-03 4:00 UTC (permalink / raw)
Andrew Stafford wrote:
> The following is out if the Digital Unix 4.0D System Configuration
> and Tuning Guide. I used the paragraph in bold text as an aid in
> diagnosing my shortage of physical memory.
>
> 2.4.2 Using vmstat to Display Virtual Memory and CPU Statistics
>
> The vmstat command shows the virtual memory, process, and total CPU
> statistics for a specified time interval. The first line of the output
> is for all time since a
> reboot, and each subsequent report is for the last interval. Because
> the CPU operates faster than the rest of the system, performance
> bottlenecks usually exist in the
> memory or I/O subsystems.
>
> To determine the amount of memory on your system, use the uerf -r 300
> command. The beginning of the listing shows the total amount of
> physical memory
> (including wired memory) and the amount of available memory.
>
> An example of the vmstat command is as follows; output is provided in
> one-second intervals:
>
> # vmstat 1
> Virtual Memory Statistics: (pagesize = 8192)
> procs memory pages intr
> cpu
> r w u act free wire fault cow zero react pin pout in sy cs
> us sy id
> 2 66 25 6417 3497 1570 155K 38K 50K 0 46K 0 4 290 165
> 0 2 98
> 4 65 24 6421 3493 1570 120 9 81 0 8 0 585 865 335
> 37 16 48
> 2 66 25 6421 3493 1570 69 0 69 0 0 0 570 968 368
> 8 22 69
> 4 65 24 6421 3493 1570 69 0 69 0 0 0 554 768 370
> 2 14 84
> 4 65 24 6421 3493 1570 69 0 69 0 0 0 865 1K 404
> 4 20 76
> [1] [2]
> [3] [4]
>
>
> The vmstat command includes information that you can use to diagnose
> CPU and virtual memory problems. The following fields are particularly
> important:
>
> 1.Virtual memory information (memory), including the number of
> pages that are on the active list, including inactive pages and
> Unified Buffer Cache
> least-recently used (UBC LRU) pages (act); the number of pages on
> the free list (free), and the number of pages on the wire list (wire).
> Pages on the wire
> list cannot be reclaimed. See Chapter 4 for more information on
> page lists. [Return to example]
>
> 2.The number of pages that have been paged out (pout). [Return to
> example]
>
> 3.Interrupt information (intr), including the number of nonclock
> device interrupts per second (in), the number of system calls called
> per second (sy), and the
> number of task and thread context switches per second (cs).
> [Return to example]
>
> 4.CPU usage information (cpu), including the percentage of user
> time for normal and priority processes (us), the percentage of system
> time (sy), and the
> percentage of idle time (id). User time includes the time the CPU
> spent executing library routines. System time includes the time the
> CPU spent executing
> system calls. [Return to example]
>
> When diagnosing a bottleneck situation, keep the following issues in
> mind:
>
> Invoke the vmstat command when the system is idle and also when
> the system is busy in order to compare the resulting data. You can use
> the memx memory
> exerciser to put a load on the memory subsystem.
>
> Is the system workload normal? Ensure that poor performance is
> not caused by an atypical event or by a temporary increase in resource
> demand.
>
> Check the size of the free page list (free). Compare the number
> of free pages to the values for the active pages (act) and the wired
> pages (wire). The sum
> of the free, active, and wired pages should be close to the
> amount of physical memory in your system. Although the value for free
> should be small, if the
> value is consistently small (less than 128 pages) and accompanied
> by excessive paging and swapping, you may have a physical memory
> problem.
>
> Examine the pout field. If the number of pageouts is consistently
> high, you may have insufficient memory. You also may have insufficient
> swap space or your
> swap space may be configured inefficiently. Use the swapon -s
> command to display your swap device configuration, and use the iostat
> command to
> determine which swap disk is being used the most.
>
> Check the user (us), system (sy), and idle (id) time split. You
> must understand how your applications use the system to determine the
> appropriate values for
> these times. The goal is to keep the CPU as productive as
> possible. Idle CPU cycles occur when no runnable processes exist or
> when the CPU is waiting to
> complete an I/O or memory request.
>
> The following list presents information on how to interpret the
> values for user, idle, and system time:
>
> A high user time and a low idle time may indicate that your
> application code is consuming most of the CPU. You can optimize the
> application, or you
> may need a more powerful processor.
>
> A high system time and low idle time may indicate that
> something in the application load is stimulating the system with high
> overhead operations. Such
> overhead operations could consist of high system call
> frequencies, high interrupt rates, large numbers of small I/O
> transfers, or large numbers of IPCs or
> network transfers.
>
> A high system time and low idle time may be caused by
> failing hardware. Use the uerf command to check your hardware.
>
> A high system time may also indicate that the system is
> thrashing; that is, the amount of memory available to the virtual
> memory subsystem has gotten so
> low that the system is spending all its time paging and
> swapping in an attempt to regain memory. A system that spends more
> than 50 percent of its time
> in system mode and idle mode may be doing a lot of paging
> and swapping I/O, and therefore may have a virtual memory performance
> problem.
>
> If the idle time is very low but performance is acceptable,
> your system is utilizing its CPU efficiently.
>
> If you have a high idle time and poor response time, and you
> are sure that your system has a typical load, one or more of the
> following problems may
> exist: The hardware may have reached its capacity, one or
> more kernel data structures is being exhausted, or you may have a
> hardware or kernel
> resource problem such as an application, disk I/O, or
> network bottleneck.
>
> See Chapter 3 for information on improving CPU performance and Chapter
> 4 for information on tuning memory.
>
>
> Peter wrote:
>
>> I am using VMSTAT to monitor my systems memory. How do I tell if it
>> is low
>> on memory ?.
>>
>> Thanks
>> Peter.
>
Check this site out:
http://www.UNIX.digital.com/faqs/publications/base_doc/DOCUMENTATION/V40D_HTML/AQ0R3FTE/TITLE.HTM
--
Karey W. Todd
Systems Management Integration Professional
IBM Global Services
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-06-03 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-20 4:00 VMSTAT Peter
1999-05-20 4:00 ` VMSTAT Andrew Stafford
1999-06-03 4:00 ` VMSTAT Karey W. Todd
1999-05-20 4:00 ` VMSTAT Sander van Malssen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox