- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Process related memory
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
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
08-05-2003 03:44 PM
08-05-2003 03:44 PM
Process related memory
I would like to know the following about a process:
1. Physical memory
2. Shared memory
3. Virtual memory
4. Virtual shared memory
Any pointers will be really helpful.
Thanks and regards
Sonison James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 03:58 PM
08-05-2003 03:58 PM
Re: Process related memory
Glance is the best tool for this. If you don't have it installed you can get a 60 day free trial. Its on the application CD's.
Alternatively use:
# UNIX95= ps -el -o pid,comm,sz,vsz| grep -i -v pid | sort -nr -k 3,3 |head -15
This will give you the top 15 memory usage processes.
Other useful commands/tools:
# ipcs -mob
Shows shared memory utilisation.
Also have a look at shminfo utility. This does come with HP-UX but can be downloaded from the internet.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 04:03 PM
08-05-2003 04:03 PM
Re: Process related memory
Download shminfo from:
ftp://hprc.external.hp.com/sysadmin/programs/shminfo/
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 04:05 PM
08-05-2003 04:05 PM
Re: Process related memory
# UNIX95= ps -eo "pid ruser pcpu vsz=Kbytes" -o comm
Note:
vsz: The size in kilobytes (1024 byte units) of the core image of the process. See column sz, above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 04:05 PM
08-05-2003 04:05 PM
Re: Process related memory
I am sorry, I forgot to mention that I would like to find the information programatically. I found a structure "pst_status" that is populated by pstat_getproc(), but I am not sure if it returns what I am looking for.
Thanks and regards
Sonison James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 05:02 PM
08-05-2003 05:02 PM
Re: Process related memory
#include
main (argc, argv)
int argc;
char *argv[];
{
struct pst_status pst;
int target = atoi(argv[1]);
if (pstat_getproc(&pst, sizeof(pst), (size_t)0, target) != -1)
{
(void)printf("Process %d started at %sand size is %d\n", target, ctime(&pst.pst_
start), sizeof(pst));
}
else
{
perror("pstat_getproc");
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2003 10:43 AM
08-07-2003 10:43 AM
Re: Process related memory
The procvm_sizes_glance.c program discounts the physical memory size of shared memory segments. It divides those sizes by the total number of references to each shared memory region by all processes on the system. That mimics the way that glance reports shared memory sizes.