- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- memory usage per user
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
Discussions
Discussions
Forums
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
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-13-2009 07:32 AM
тАО07-13-2009 07:32 AM
I'm trying to sort memory usage per user and it seems the best way would be with glance
I'm trying to save the output with
glance -iterations 1 -f GLANCE > /dev/null
but only save 1st page
any option that can make it save all pages?
I've tried other commands from the forum like:
UNIX95=1 ps -ef -o vsz= -o pid= -o comm= -o user=
But when I sum it I get a total over my RAM (90GB)
Is there other way of getting this info?
Thanks
Jose
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 07:53 AM
тАО07-13-2009 07:53 AM
SolutionPlease have a look on below link & SEP Comments
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1247500389886+28353475&threadId=60110
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 08:13 AM
тАО07-13-2009 08:13 AM
Re: memory usage per user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 08:15 AM
тАО07-13-2009 08:15 AM
Re: memory usage per user
The script what SEP has given in the link I have provided you is for HP-UX only
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 08:24 AM
тАО07-13-2009 08:24 AM
Re: memory usage per user
My comments were general and apply to HP-UX.
My memory lead detector runs on Linux, HP-UX and Sun Solaris.
http://www.hpux.ws/?p=8
Assuming this is a top user of memory, this process will show up. Increase the number of processes to be monitored and eventually you will get every process on the system.
Quite a good toy, the memory leak detector is.
It includes a ps command that can be manipulated a hundred different ways to produce the data you want.
Memory is about supply and demand. Increase the supply or decrease the demand, or both.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 06:28 PM
тАО07-13-2009 06:28 PM
Re: memory usage per user
This is not a simple task at all. Unix memory usage is quite complicated. For instance, virtually all copies of the shell and application programs will use shared libraries. Although each program needs these libraries, there is only one copy. The text area (unchanging instructions) are also shared as in one copy of vi text for dozens of copies of vi. Additionally, there is memory allocated for the buffer cache but every process that opens a file will use this shared kernel area. And some programs will have their own shared memory area (fbackup is a good example).
> But when I sum it I get a total over my RAM (90GB)
Perfectly normal in most Unix systems. You may have only 90 GB RAM but you can run 200, even 500 GB of programs dues to virtual memory in the kernel (ie, swap space). This command will be more useful than adding all the users together:
swapinfo -tam
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2009 12:58 AM
тАО07-15-2009 12:58 AM
Re: memory usage per user
Very nice script Sthepen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2009 12:59 AM
тАО07-15-2009 12:59 AM