1846252 Members
5255 Online
110255 Solutions
New Discussion

memory problem

 
Arman Mahboobi
Advisor

memory problem

Is there a anyway I can see what is in the system memory.

We've receintly been running out of lockable memory.

eg: yesterday at about 15:20 ran the following

echo "lockable_mem/D" | adb /stand/vmunix /dev/kmem

and got
lockable_mem: 123790 free pages

ran the command again this morning @ 8:20 and go

lockable_mem: 82920

How can I check to see what is taking up the space.

I'm a first timer - Thanks.
5 REPLIES 5
Rajeev  Shukla
Honored Contributor

Re: memory problem

The simple one would be to see in "dmesg" command or "swapinfo" command.
Or write a C program to extract data from pst_static structure and get the data by printing
printf("physical_memory: %lu\n", pst.physical_memory);

Cheers
Rajeev
Rajeev  Shukla
Honored Contributor

Re: memory problem

Run top or if you have glance plus use that or use sar to see the memory usage by process.

cheers
rajeev
T G Manikandan
Honored Contributor

Re: memory problem

What is the value of nproc on the system.Be sure that the value is not too high which reduces the lockable memory.
Arman Mahboobi
Advisor

Re: memory problem

Thanks Rajeev - however I would like to know "what" is in memory (like top or glance) rather than how much memory is free or used.

T G - the kernel tunables for memory are set to the default formulas which mostly depend on maxusers.

Could it be some sort of caching or buffering, I have lost another 40 mb of lockable memory since last night?
Rajeev  Shukla
Honored Contributor

Re: memory problem

If you dont have Glance or Perfview better use top. Top by default gives 16 process so use top with -n (no process) -f (File_name). .
no of process you can find by putting a count on "ps".
This top redirects output to a file and the you can see the user running the process, how much memory is used what is the NICE etc..

Cheers
Rajeev