Memory Usage(Physical) in one Word? Suse Linux.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Memory Usage(Physical) in one Word? Suse Linux.
# 1  
Old 07-25-2013
Memory Usage(Physical) in one Word? Suse Linux.

Experts,

I have been trying to figure out what is the total physical memory used from this output:
And what is the free memory available for the application or any programs.


The answer has to be in this format:
1. Physical Memory Used= xx.xx%
2. Physical Memry available= yy.yy%

Can any one answer this question please.,


DATA: (output of free command ) :
######
OS=Suse Linux 11.

Code:
             total       used       free     shared    buffers     cached
Mem:      12200000   12003044     196956          0         52     524220
-/+ buffers/cache:   11478772     721228
Swap:     20955132     802368   20152764


I figured this means the Memory Usage= used/total * 100 = 98.3%







- Since The Usage (in sar) showing 98.45% it is high time to wake up and to be alert.
Since this is closed to full capacity, and things can start breaking if not paid enough attention to the usage.


# from sar -r : What I am seeing is below:
Code:
           kbmemfree kbmemused  %memused kbbuffers  kbcached  kbcommit   %commit
05:24:01 PM    188908  12011092     98.45        52    494044  15664476     47.25
05:25:02 PM    186124  12013876     98.47        52    494524  15669836     47.26
05:26:01 PM    187284  12012716     98.46        52    496068  15664196     47.25
05:27:01 PM    180372  12019628     98.52        52    496712  15664384     47.25
Average:       186109  12013891     98.47       500   2123739  15654751     47.22


-So I am trying to ask the experts what is the opinion about it , and if one can answer in a simple answer to this question: (Descriptive answer is welcome but I also want answer to 1. & 2.
I have a feeling like this is not real usage, so checking with linux experts.,

1. Physical Memory Used= xx.xx%
2. Physical Memry available= yy.yy%


Thank you for your time...
# 2  
Old 07-25-2013
Short answer is, "cached" counts as some more "free". unused = free + cache.

So don't panic when you see "0% free"! There have been Linux admins who have rebooted their servers daily to 'clean the cache' until they realized that cache counts as free.

The reason cache is counted separately is because cache is important. You want there to be plenty of cache. If you have so many things running that you have no room for cache, that's bad.

Last edited by Corona688; 07-25-2013 at 07:46 PM..
# 3  
Old 07-26-2013
IMHO the Linux memory strategy is overdone.
A Linux box that does continuous I/O will fill all memory with cache data, and indeed becomes unresponsive (i.e. starting a new process is slow).
Other OS like HP-UX have a tunable percentage of memory that is used for caching.
# 4  
Old 07-26-2013
Quote:
Originally Posted by MadeInGermany
IMHO the Linux memory strategy is overdone.
A Linux box that does continuous I/O will fill all memory with cache data, and indeed becomes unresponsive (i.e. starting a new process is slow).
Other OS like HP-UX have a tunable percentage of memory that is used for caching.
Really? I think you need to back that up with something we can all look at.

I'm not saying there isn't a problem. But since you are putting up HP-UX as (implied) a system done "right"... I think you should help supply something that illustrates the problem you are seeing.
# 5  
Old 07-26-2013
Quote:
Originally Posted by cjcox
I'm not saying there isn't a problem. But since you are putting up HP-UX as (implied) a system done "right"... I think you should help supply something that illustrates the problem you are seeing.
I agree with MIG that it'd be a useful feature. I have seen situations in Linux where a short-running program which does a lot of I/O turfs out all the 'good' cache with data that's not going to be needed again; the system takes a little bit to recover and get frequently-used things back in memory. This isn't a Linux problem, it's a problem with the LRU algorithm in general, 'recently used' is not always a good benchmark for which things to keep.
# 6  
Old 07-26-2013
kctune | awk 'NR==1 || /^dbc/'
Code:
Tunable                       Value  Expression          Changes
dbc_max_pct                       5  5                   Immed
dbc_min_pct                       2  2                   Immed

The values are tuned down on this DB server.
AFAIR the defaults are dbc_min_pct=10 and dbc_max_pct=50
On an NFS server, you would increase the dbc_max_pct (to 90), in order to get near the Linux behavior that is ideal for NFS servers.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Linux Application Memory usage

Hello We are in the process of migrating few of our applications in our linux boxes to new linux box to streamline our applications . In this context , i would like to know how we can calculate a particular application is used .? This data will then be used to select which applications need... (7 Replies)
Discussion started by: ron5174
7 Replies

2. Red Hat

Swap memory usage is high in Linux

Hi , There is one following alert . Message : cdm:Average (2 samples) swap memory usage is now 91%, which is above the warning threshold (90%) Here is my findings. Output of TOP command in Linux server. top - 14:21:44 up 6 days, 4:48, 1 user, load average: 2.55, 2.06,... (3 Replies)
Discussion started by: Maddy123
3 Replies

3. Shell Programming and Scripting

Memory Usage Monitor on Linux/SunOS Servers

ok, so i'm trying to write a shell script (not perl) that monitors memory usage on a server. but i'm confused as to what fields exactly determines that yes, memory is low on a particular server. it sounds simple enough, but it really isn't. what do I look for in the field below? ... (1 Reply)
Discussion started by: SkySmart
1 Replies

4. AIX

AIX 5.3 Physical Memory usage

Hi, I have AIX 5.3TL8 two node cluster using HACMP and have 10g database using RAW devices. I am seeing gradual increase in comp% memory everyday and it reaches 100% and evicts the node, we had 4 evictions in 40days. I am pasting vmstat and vmo output, anyone seen this issue? ... (5 Replies)
Discussion started by: navin7386
5 Replies

5. 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

6. Linux

Memory Usage on Linux server

Hi , As I am new to Linux server, I am facing some doubts like: On linux server virtual memory usage goes to 99%, but I have Threshold limit of 95%. So it crossed the threshold limit and alarmd. Yesterday I moniterd the server using TOP command, and found some of Tibco process was consuming... (4 Replies)
Discussion started by: Jaywantmm
4 Replies

7. UNIX for Dummies Questions & Answers

Memory Usage on Linux server

Hi , As I am new to Linux server, I am facing some doubts like: On linux server virtual memory usage goes to 99%, but I have Threshold limit of 95%. So it crossed the threshold limit and alarmd. Yesterday I moniterd the server using TOP command, and found some of Tibco process was consuming... (1 Reply)
Discussion started by: Jaywantmm
1 Replies

8. 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

9. Solaris

RAM Physical Memory usage by each Process.

Hi All, I am trying to find the physical memory usage by each process/users. Can you please let me know how to get the memory usage?. Thanks, bsraj. (12 Replies)
Discussion started by: bsrajirs
12 Replies

10. Red Hat

Linux memory usage

What's the best way to find out how much memory is being used/available? I tried using free, but I didn't quite understand the output. Can someone explain it? $ free total used free shared buffers cached Mem: 16304536 16256376 48160 0 ... (6 Replies)
Discussion started by: junkmail426
6 Replies
Login or Register to Ask a Question