Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
The ONE Campaign to make poverty history

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 36 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

Linux Knowledge Base and Tutorial: Forums

Linux Tutorial :: View topic - ps memory specifics
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ps memory specifics

Post new topic   Reply to topic    Linux Tutorial Forum Index -> Commands and Utilities
View previous topic :: View next topic  
Author Message

Joined: Mar 10, 2004
Posts: 1
Location: Tampa, FL

PostPosted: Wed Mar 10, 2004 6:31 pm    Post subject: ps memory specifics Reply with quote

I'm trying to get detailed information on processes to attempt troubleshooting excessive memory events. I am getting a number of overlapping terms and need to identify the following:

size of process in physical memory
size of process in swap file

From an article I was reading here, I got that vsz is the size complete with the size in memory and swap together and that rss is the size in physical. Does this mean the difference is what is in virtual/swap memory? I ran ps -p <processid> -o "%cpu sz vsz rss" and got...

5491 21964 9428

however, free shows 0K used for swap. Shouldn't it be at least 12536? This is free...

total used free shared buffers cached
Mem: 255456 251108 4348 0 7544 81828
-/+ buffers/cache: 161736 93720
Swap: 265032 0 265032
Back to top
View user's profile Send private message

PostPosted: Sat Mar 13, 2004 2:52 pm    Post subject: Reply with quote

I am pretty sure that sz is the size of process in pages and and vsz is the size in kilobytes. If you multiply sz by the 4 (the size of a page in KBs) then you end up with vsz (5491 * 4 = 21964 ). These are what the process *could* use. That is, this is the total size of the process in virtual memory. However, rarely is the who process in virtual memory. rss is "resident set size" or what is currently in memory. So in your case, the process is only using 9428 KB, but could grow to 21964. Since it is suing only 9428 KB, it is not surprising that no swap is used.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Linux Tutorial Forum Index -> Commands and Utilities All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001-2007 phpBB Group



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can help in many different ways.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.15 Seconds