- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Memory Breakup
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 03:12 AM
07-15-2003 03:12 AM
Memory Breakup
I have a simple & straight-forward question. If my physical memory is 3500MB and I want to see how the breakup of memory is can I use UNIX95 command and take a total of vsz field?
If done so , I am getting total as 6500MB where is the physical mem of server is 3500MB, can anybody suggest how to derive a breakup of the physcial memory in use per process?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 03:14 AM
07-15-2003 03:14 AM
Re: Memory Breakup
You need Glance. Install this, then use the utility "gpm" to see the required breakdown.
Ollie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 03:22 AM
07-15-2003 03:22 AM
Re: Memory Breakup
I have glance installed but don't have access to GUI so can't run gpm.
Is there any other method,,,,I mean from the character based display only by running glance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 03:29 AM
07-15-2003 03:29 AM
Re: Memory Breakup
You can run glance in charactermode. Maybe the 6500MB did include virtual Memory?
Regards,
D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 03:31 AM
07-15-2003 03:31 AM
Re: Memory Breakup
You can see statistics for a particular process in "glance", but I think you have to select the process first and show the details, there's no way to show a listed summary of processes with memory use.
Unless "top" will give you what you want?
Ollie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 03:34 AM
07-15-2003 03:34 AM
Re: Memory Breakup
The exact output for mem stats derived from glance is as below.
Total VM : 1.64gb Sys Mem : 212.9mb User Mem: 3.19gb Phys Mem: 3.50gb
Active VM: 755.9mb Buf Cache: 36.7mb Free Mem: 64.9mb
It shows the total mem = physical + virtual = 3.5+1.65 = 5.10 Gb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 05:14 AM
07-15-2003 05:14 AM
Re: Memory Breakup
Sounds I made correct quess. Please assign some points. (I have so little of them)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 05:22 AM
07-15-2003 05:22 AM
Re: Memory Breakup
Calculating memory usage in this granularity can be quite tricky if you are not aware exactly how memory is laid out. See the process and memory management white papers for a good description. For example, if you have 20 processes connecting to a 500MB shared memory segment you don't want to add this 20 times to your count.
If you know C your best bet is the pstat interface if this is hpux 11.00 or higher. This can give you global counts or per-process counts of memory/VM. The short program below can be used as an introduction - it uses the pid as the argument and prints the data segment size. You can add more fields/calculations/error checking as you see fit, but I've tried to keep it short.
Regards,
James.
#include
#include
#include
#include
struct pst_status buf;
void main(int argc, char *argv[])
{
if(argc != 2) {
printf("Usage: %d
exit(1);
}
int pid = atoi(argv[1]);
pstat_getproc(&buf, sizeof(struct pst_status), 0, pid);
printf("Data segment size for process %d is %d KB\n", pid, buf.pst_dsize*4);
}
Sample output:
# ./procvm 3678
Data segment size for process 3678 is 632 KB