You are not logged in.

#1 2008-01-05 16:12:33

kiguru
Member
Registered: 2007-11-27
Posts: 31

how to see a prticular program memory usage?

how to see a particular program(mplayer) memory usage?

Offline

#2 2008-01-05 16:41:53

Kknd
Member
From: Brazil, Santa Catarina
Registered: 2007-08-15
Posts: 100
Website

Re: how to see a prticular program memory usage?

You can use top, or see the diff between two free (before and after starting the program), or you can use the gnome  kde system monitor. Take care with the kde one, that shows shared memory too by default.

Seeing the exact memory use is very complicated (thare's a lot of efforts to accomplish that).

Last edited by Kknd (2008-01-05 16:43:14)

Offline

#3 2008-01-05 17:48:55

wuischke
Member
From: Suisse Romande
Registered: 2007-01-06
Posts: 630

Re: how to see a prticular program memory usage?

Hi,
you can use

ps v -C opera

(Replace Opera with mplayer) as well.

It will give you an output similar to the following:

  PID TTY      STAT   TIME  MAJFL   TRS   DRS   RSS %MEM COMMAND
 8172 ?        Sl     0:07      0 12856 179519 61320  6.0 /usr/lib/opera/9.50-20071213.2/opera -style plastik

The RSS column will show you a value close to the memory consumption, in my case about 60MB.

Last edited by wuischke (2008-01-05 17:49:27)

Offline

#4 2008-01-05 20:51:19

kiguru
Member
Registered: 2007-11-27
Posts: 31

Re: how to see a prticular program memory usage?

thanx wuischke

Offline

#5 2008-01-05 21:10:14

bionnaki
Member
Registered: 2006-09-05
Posts: 289

Re: how to see a prticular program memory usage?

I like htop

pacman -S htop

and then run htop
see F2 for options

Offline

#6 2008-01-05 21:36:32

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: how to see a prticular program memory usage?

When I try ...ps v -C mplayer in a terminal, I cannot enter the .....  -C...

Why?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#7 2008-01-06 01:03:15

wuischke
Member
From: Suisse Romande
Registered: 2007-01-06
Posts: 630

Re: how to see a prticular program memory usage?

Mh...it's offtopic, but what console keymap are you using? Does it work with copy and paste? (I assume you wrote this post on the same computer where you have the problem.)

Offline

#8 2008-01-06 02:14:41

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: how to see a prticular program memory usage?

Found a way to workaround it...using caps lock works....

Thanks for reply.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

Board footer

Powered by FluxBB