LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-13-2005, 11:33 AM   #1
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 35
about displaying process memory usage


I know that I can see my process with top or ps but they only shows the memory usage in % and I realy like to see it in Bytes (or kb) so I could have a clue of how much an aplication uses.

regards
 
Old 09-13-2005, 11:40 AM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
top gives all kinds of actual memory stats:

Code:
VIRT  --  Virtual Image (kb)
          The total amount of virtual memory used by the task.  It includes
          all  code,  data  and  shared libraries plus pages that have been
          swapped out.

          VIRT = SWAP + RES.

SWAP  --  Swapped size (kb)
          The swapped out portion of a task's total virtual memory image.

RES  --  Resident size (kb)
          The non-swapped physical memory a task has used.

          RES = CODE + DATA.

CODE  --  Code size (kb)
          The amount of physical memory devoted to  executable  code,  also
          known as the 'text resident set' size or TRS.

DATA  --  Data+Stack size (kb)
          The  amount  of  physical memory devoted to other than executable
          code, also known as the 'data resident set' size or DRS.

SHR  --  Shared Mem size (kb)
          The amount of shared memory used by a task.  It  simply  reflects
          memory that could be potentially shared with other processes.
$ man top

 
Old 09-13-2005, 11:43 AM   #3
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Original Poster
Rep: Reputation: 35
Thanks.. I was in a rush here and I needed to ask here... thanks

[ ]īs
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to programmatically monitor a process memory usage? thanhvn Programming 14 02-20-2009 01:15 AM
how to show the memory usage per process ty263 Linux - General 3 09-12-2008 06:36 AM
how to programmatically monitor a process memory usage? thanhvn Linux - Software 1 11-15-2005 08:44 PM
Process memory usage wombat53 Linux - Newbie 5 07-21-2005 07:42 PM
limiting cpu and memory usage by user process amitkush Linux - Security 2 07-04-2003 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration