- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- size in ps and RSS in glance
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
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
тАО04-21-2004 11:40 PM
тАО04-21-2004 11:40 PM
size in ps and RSS in glance
I'm checking the memory use of two different processes. When I use ps -fel and look at the "size", it shows that process 100 is 17000 pages and process 200 is 8000 pages. My pagesize is 4K. But when I look at the processes in glance process 100 shows 40 MB and process 200 shows 210 MB.
How is this? Why are the memory size of the two processes so different?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2004 12:08 AM
тАО04-22-2004 12:08 AM
Re: size in ps and RSS in glance
For process 100 :
ps ] 17000 * 4k page = 68000 k = 66 MB
Glance ] 40 MB.
Not sure, but the difference could be the shared pages (shared librairies & executable text).
As for process 20... noop, no idea !
What OS realese are you using ?
Maybe you should look for the newest patchs.
Cheers
Nicolas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2004 12:41 AM
тАО04-22-2004 12:41 AM
Re: size in ps and RSS in glance
1. Memory Page Size
2. Process 100's pages
3. Process 200's pages
This is something unbeleivable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2004 02:37 AM
тАО04-22-2004 02:37 AM
Re: size in ps and RSS in glance
However, since the ps command already also shows the RSS in KB, you need not do the arithmetic yourself.
Try for instance
UNIX95= ps -e -o comm,vsz
or if you need to find out how much a certain user consumes you could do this
# UNIX95= ps -u root -o comm= -o vsz=|awk '{s+=$2};END{printf"root procs use %8.2f MB memory\n",s/1024}'
root procs use 1033.17 MB memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2004 06:21 PM
тАО04-22-2004 06:21 PM
Re: size in ps and RSS in glance
17000 pages is approx. 68 MB, the same as I get when running UNIX95= ps -e -o comm,vsz. That is not the question or what's bother me.
What's bother me is that ps command shows that vsz is 68 MB, while Glance shows an RSS of 57 MB. Should it not be the same, or is there a difference between vsz and RSS?
And the other thing that's bothers me is that ps shows that prosess 100 is the process that uses most memory (vsz), while glance says it's process 200 (RSS).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2004 07:24 PM
тАО04-22-2004 07:24 PM
Re: size in ps and RSS in glance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2004 09:09 PM
тАО04-22-2004 09:09 PM
Re: size in ps and RSS in glance
glance menu "M" (Process Memory Regions) shows RSS & VSS.
ps size shows VSS.
please check ps size & glance VSS.
Thanks.