Sponsored Content
Full Discussion: vmstat -P (physical memory)
Top Forums UNIX for Advanced & Expert Users vmstat -P (physical memory) Post 302068832 by gfhgfnhhn on Tuesday 21st of March 2006 07:40:11 AM
Old 03-21-2006
Error vmstat -P (physical memory)

vmstat -P commands gives me an output as shown at the end of this message.

my first question is about the difference between "total physical memory" and "total physical memory use"

"Total Physical Memory" -"Total Physical Memory Use"
524288 pages-524026 pages= 262 pages

does it mean that 262 pages are free?
if they are not free, this pages are used for what?
if they are free what relation exist between these pages(262 pages) and
the free pages = 18540 (which are mentioned in the
"Managed Pages Break Down" part)

my second question is:
whats the relation between total physical memory(here it is=524288 ) and
the total memory mentioned in the "Managed Pages Break Down" part
(here it is=507442 pages)


vmstat -P output:
***********************

Total Physical Memory = 4096.00 M
= 524288 pages

Physical Memory Clusters:

start_pfn end_pfn type size_pages / size_bytes
0 256 pal 256 / 2.00M
256 130985 os 130729 / 1021.32M
130985 131072 pal 87 / 696.00k
131072 524282 os 393210 / 3071.95M
524282 524288 pal 6 / 48.00k

Physical Memory Use:

start_pfn end_pfn type size_pages / size_bytes
256 289 scavenge 33 / 264.00k
289 1143 text 854 / 6.67M
1143 1306 data 163 / 1.27M
1306 1535 bss 229 / 1.79M
1535 1745 kdebug 210 / 1.64M
1745 1753 cfgmgmt 8 / 64.00k
1753 1755 locks 2 / 16.00k
1755 1769 pmap 14 / 112.00k
1769 4537 unixtable 2768 / 21.62M
4537 4633 logs 96 / 768.00k
4633 7781 vmtables 3148 / 24.59M
7781 131072 managed 123291 / 963.21M
131072 140077 vmtables 9005 / 70.35M
140077 524282 managed 384205 / 3001.60M
============================
Total Physical Memory Use: 524026 / 4093.95M

Managed Pages Break Down:

free pages = 18540
active pages = 170145
inactive pages = 226033
wired pages = 61434
ubc pages = 31290
==================
Total = 507442

WIRED Pages Break Down:

vm wired pages = 28726
ubc wired pages = 0
meta data pages = 5225
malloc pages = 18210
contig pages = 1456
user ptepages = 7316
kernel ptepages = 491
free ptepages = 10
==================
Total = 61434

***********************
***********************
 

10 More Discussions You Might Find Interesting

1. Programming

Physical Memory

Hi, My problem is next.... How can I work with physical memory in the Unix FreeBSD 2.2 or hight? What is the "mem" & "kmem" drivers? P.S./ writing device driver for UNIX FreeBSD 2.2 :D (2 Replies)
Discussion started by: Alex_T
2 Replies

2. UNIX for Dummies Questions & Answers

physical memory

It is just a general question....is there a limit on the memory? I am looking into a process to store image files on the unix server which will be accessed by the application, and I just wonder if there is any limit regarding the physical or virtual memory. I am very new to unix, so thanks for... (1 Reply)
Discussion started by: cchien
1 Replies

3. Shell Programming and Scripting

get physical and virtual memory

What command can i use to get the physical and virtual memory of a database? (7 Replies)
Discussion started by: tads98
7 Replies

4. Solaris

physical memory

what is the command to find the physical memory in soalris OS and how to find whether paging is happening or not ? (2 Replies)
Discussion started by: jayaramanit
2 Replies

5. Solaris

How to find Total and Free Physical Memory and Logical Memory in SOLARIS 9

Hi, Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:- 1. Total Physical Memory in the system(total RAM). 2. Available Physical Memory(i.e. RAM Usage) 3. Total (Logical) Memory in the system 4. Available (Logical) Memory. I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies

6. Filesystems, Disks and Memory

Does vmstat -d give a count of actual physical writes/reads done to/from hard disk?

Hi, I am trying to find the reliability of 'vmstat -d' for showing the actual physical writes on sectors on hard disk. Can anyone please tell me if the numbers in the "sectors" field under "read" or "write" headers show a count of the actual write commands sent to disk from the low level... (2 Replies)
Discussion started by: jake24
2 Replies

7. Solaris

restrcit physical memory with zone.max-locked-memory

Is it possible to restrict physical memory in solaris zone with zone.max-locked-memory just like we can do with rcapd ? I do not want to used rcapd (1 Reply)
Discussion started by: fugitive
1 Replies

8. AIX

memory usage with vmstat

Hi Admins, Management asked me to submit last 3 months memory usage as part of quaterly capacity report.Last month only we have configured monitoring tool.So i cant use the tool to obtain the data.What i have is vmstat output for the last 3 months. How can i calculate memory usage using... (1 Reply)
Discussion started by: newaix
1 Replies

9. AIX

Physical Memory expansion

IBM says we cannot expand our physical memory on our 570's without upgrading all the existing DIMMS since all slots are currently full. Is it really so difficult for IBM to build servers that leave a couple vacant slots for future expansion? A technical explanation would be greatly appreciated.... (2 Replies)
Discussion started by: 1computerman
2 Replies

10. Solaris

Physical memory calculation

Below is Physical Memory result : -bash-3.00$ prtconf | grep "Memory size" Memory size: 36854 Megabytes -bash-3.00$ vmstat 1 2 | tail -1 0 0 0 28220616 1318888 15 143 0 0 0 0 0 253 2 15 0 5215 14989 5917 7 0 93 and the script i have to calculate this in Percentage is : #!/bin/sh... (3 Replies)
Discussion started by: mjoshi010207
3 Replies
GET_PHYS_PAGES(3)                                            Linux Programmer's Manual                                           GET_PHYS_PAGES(3)

NAME
get_phys_pages, get_avphys_pages - get total and available physical page counts SYNOPSIS
#include <sys/sysinfo.h> long int get_phys_pages(void); long int get_avphys_pages(void); DESCRIPTION
The function get_phys_pages() returns the total number of physical pages of memory available on the system. The function get_avphys_pages() returns the number of currently available physical pages of memory on the system. RETURN VALUE
On success, these functions return a nonnegative value as given in DESCRIPTION. On failure, they return -1 and set errno to indicate the cause of the error. ERRORS
ENOSYS The system could not provide the required information (possibly because the /proc filesystem was not mounted). CONFORMING TO
These functions are GNU extensions. NOTES
These functions obtain the required information by scanning the MemTotal and MemFree fields of /proc/meminfo. The following sysconf(3) calls provide a portable means of obtaining the same information as the functions described on this page. total_pages = sysconf(_SC_PHYS_PAGES); /* total pages */ avl_pages = sysconf(_SC_AVPHYS_PAGES); /* available pages */ EXAMPLE
The following example shows how get_phys_pages() and get_avphys_pages() can be used. #include <stdio.h> #include <stdlib.h> #include <sys/sysinfo.h> int main(int argc, char *argv[]) { printf("This system has %ld pages of physical memory and " "%ld pages of physical memory available. ", get_phys_pages(), get_avphys_pages()); exit(EXIT_SUCCESS); } SEE ALSO
sysconf(3) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. GNU 2017-09-15 GET_PHYS_PAGES(3)
All times are GMT -4. The time now is 05:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy