Memory usage statistic? (topas, nmon)


 
Thread Tools Search this Thread
Operating Systems AIX Memory usage statistic? (topas, nmon)
# 1  
Old 10-07-2003
Memory usage statistic? (topas, nmon)

hi,
how can i diplay:
- the ammount RAM used /free
- ammount of ram used from a pid or prozess

we have the problem, that malloc is returing a NULL pointer errno = 12 ( not enough space).

but i think there is still ram free.

nmon : shows all memory used ?
Memory Use Physical Virtual Paging pages/sec In Out VM parameters
% Used 99.8% 0.1% to Paging Space 0.0 0.0 numperm 75.3%
% Free 0.2% 99.9% to File System 1.0 494.8 minperm 5.0%
MB Used 12265.7MB 9.8MB Page Scans 0.0 maxperm 8.0%
MB Free 22.2MB 19382.2MB Page Cycles 0.0 minfree 256
Total(MB) 12288.0MB 19392.0MB Page Reclaim 0.0 maxfree 512

Topas: show still free ram ?
MEMORY
Real,MB 12287
% Comp 25.0
% Noncomp 75.8
% Client 0.5

PAGING SPACE
Size,MB 19392
% Used 0.5
% Free 99.4

are there any other tools to check memory usage?

general Question:
does an Application reserv its own part of the RAM?
any links to sites who explain that topic would be greatly appreciated also Smilie

our System is AIX v4

Lazzar
# 2  
Old 10-07-2003
I don't know AIX and I don't have access to an AIX box. But maybe I can help get you pointed in the right direction. You are clearly having a problem with virtual memory, not physical memory. Stuff like how much unused ram you have is not relevant.

Most likely you are bumping into the max size of a data segment. You might try "/usr/bin/ulimit -a" to see if that command exists and if it displays a limit called "data" or something like that. I don't know how to increase this on AIX.
# 3  
Old 10-07-2003
And please don't crosspost...I just deleted the extra thread.
# 4  
Old 10-07-2003
time(seconds) unlimited
file(blocks) 2097151
data(kbytes) 131072
stack(kbytes) 32768
memory(kbytes) 32768
coredump(blocks) 2097151
nofiles(descriptors) 2000

if i malloc something, i guess it goes into the 'data' segement?

so a process can max. allocate 131 MB ?

Lazzar

Edit: sorry about crossposting, but i saw the the other AIX forum had a lot less users Smilie
# 5  
Old 10-07-2003
Yeah, malloc() tries to grow the data segment, and yes, you are currently limited to 131K.

And your stack is limited 32K bytes. There is also a text segment. However the sum of these, data+stack+text must be less than 32K if the "memory" line means what I think it means.

AIX must work differently than what I'm used to. Or maybe not...do a "man getrlimit". The stack stuff will be under RLIMIT_DATA and memory might be RLIMIT_AS.

Also try /usr/bin/ulimit -Ha to see if they are your hard limits too.
# 6  
Old 10-08-2003
ulimit -Ha :
time(seconds) unlimited
file(blocks) 2097151
data(kbytes) unlimited
stack(kbytes) unlimited
memory(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) unlimited


Quote:
However the sum of these, data+stack+text must be less than 32K if the "memory" line means what I think it means
that can't be cause data is greater than memory.

but anyway i do a bit more research and try to understand that stuff a little betterSmilie

the root of our problem is that we have a memory leak, and raising those limits won't help anyway i guess Smilie

but thanks a lot for your input.

Lazzar
# 7  
Old 10-08-2003
Quote:
that can't be cause data is greater than memory.
Actually, it can be. It's simply dumb, but not impossible. The kernel will check both limits as you attempt to increase the data segment size. You're guaranteed to bump into the memory limit first is all.

And look at your hard limits....they are unlimited. Your program can call getrlimit() to obtain the hard and soft limits. And it can call setrlimit() to raise the soft limit up to the hard limit.

As I said before, I don't know AIX and I could be wrong about some or all of this. But it would only take a few seconds to toss a setrlimit() into the program to see if I'm right.

But you're right about the memory leak, the best policy is to find it and fix it.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Nmon max and avg for cpu and memory

Hi All, Anyone know how to capture the nmon avg and max cpu and memory for one of the AIX server for Monthly Utilization Report purposes ? Thanks. ---------- Post updated at 05:18 AM ---------- Previous update was at 05:07 AM ---------- if possible use shell script to count or sum... (6 Replies)
Discussion started by: ckwan
6 Replies

2. AIX

Problem with nmon, actual CPU usage per process

Hi all, I am currently having trouble to get nmon to print me the actual CPU usage for an interval for a process. According to the manual, something like # time nmon -t -C cron -s 5 -c 2 -F outfile real 0m0.98s user 0m0.03s sys 0m0.04s should print out at least the process... (15 Replies)
Discussion started by: zaxxon
15 Replies

3. AIX

How to use topas to display its Memory section alone

Hi, I'm planning to write a script to monitor the memory utilization and so decided to use topas. i'm not familiar with this command Could anyone help me with an idea on how to display the Memory section alone in the topas... :) It will be very helpful if you could specify the command... (2 Replies)
Discussion started by: kaushik_87
2 Replies

4. AIX

topas - computational memory 95% : Any Impact?

Hello Gurus, I am using AIX 5 and on running topas command. I can see the computational memory is 93.3% with Swap Paging memory at 2.2%. Could you please advise if there is any impact by the growth of computational memory? Below is the stat: MEMORY Real,MB 22528 % Comp 93.3 %... (12 Replies)
Discussion started by: panchpan
12 Replies

5. AIX

ORACLE Database running slow on AIX ( nmon / topas )

Hello, How can I know if ORACLE Database is running slow due to Memory or due to processing power ? I have only Oracle Database running on a P4 with 4GB RAM. Could anyone suggest any tools which can help me determine exactly if it is memory issue or processor issue. (43 Replies)
Discussion started by: filosophizer
43 Replies

6. Red Hat

HELP: NMON unable to display all the statistic specified via putty

Hi guys, I got this problem with NMON unable to display all the statistics specified via putty. I believe this is due to libncurses rather than NMON and also the env variable $TERM. Currently, the $TERM is set to "xterm" which should be compatible with NMON display. Is there any ways that... (0 Replies)
Discussion started by: DrivesMeCrazy
0 Replies

7. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

8. AIX

Top command in AIX 4.2 (no topas, no nmon, no top)?

Is there a 'top' command equivalent in AIX 4.2 ? I already checked and I do not see the following ones anywhere: top nmon topas (1 Reply)
Discussion started by: Browser_ice
1 Replies

9. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

10. AIX

nmon vs topas

good morning what is the better solution to examen a P570 ? because i use topas and nmon, and the results are totally different !!! with nmon, i have 80% free cpu, and with nmon, i have 90% of used cpu !!!!!! i take a shot with an intervall of 10s during 10 mn. thank you (0 Replies)
Discussion started by: pascalbout
0 Replies
Login or Register to Ask a Question