How the free mem thresold on the server is determined


 
Thread Tools Search this Thread
Operating Systems Solaris How the free mem thresold on the server is determined
# 1  
Old 09-04-2012
How the free mem thresold on the server is determined

Hi All,
using top command I have the below status


Code:
load averages:  3.68,  3.20,  2.67;                    up 0+07:01:24                                                13:13:16
282 processes: 275 sleeping, 3 stopped, 4 on cpu
CPU states: 87.9% idle,  6.9% user,  5.2% kernel,  0.0% iowait,  0.0% swap
Memory: 64G phys mem, 1791M free mem, 63G total swap, 62G free swap


I am noticing the free memory is increasing to 3000M approx when it reaches 1500M.

We had 27GB free memory when restarted the server,But it continuously decreased to reach 1500M and keeping the free mem between 1500 to 3000.

Thanks,

Last edited by zaxxon; 09-04-2012 at 02:19 PM.. Reason: code tags
# 2  
Old 09-04-2012
I notice you're not using most of your swap; so I don't think most of that 63 gigs has been leaked or anything. I don't see how much cache you have from that, but suspect a pretty good chunk is cache.

It's kind of random, and determined by disk access. When a process explicitly frees memory or quits, the memory it used goes back into the free pool. If you read from a spot on disk that hasn't been cached, enough free memory is converted to cache memory to cache it. So it's the rate your processes are allocating and freeing memory, versus the rate you're asking for things on disk that haven't been cached lately.

Since cache memory is as good as free memory -- the OS will give it up at need -- there's nothing wrong with that. Just the OS hedging its bets in case it will be handy later. Memory that sits around doing nothing is useless anyway.

Some systems allow you to configure how much memory should be allowed to become cache and the like, but the same system still underlies it.

Last edited by Corona688; 09-04-2012 at 02:34 PM..
# 3  
Old 09-04-2012
@]megh: What Solaris release (cat /etc/release) and what file system (UFS and/or ZFS) are you using ?

Both can have a huge impact on what top, which isn't recommended anyway on Solaris, is reporting.

I would suggest using Solaris specific commands to monitor memory usage.
Code:
vmstat (free and sr columns)
prstat -Z
swap -s
echo ::memstat | mdb -k

# 4  
Old 09-04-2012
Code:
ipcs -m

may also shed light on what is using memory.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

ksh Array name determined at runtime

I'm working on a ksh script and was wondering if anyone knows if it's possible to access an array by a variable that is determined at runtime? I have created a test example below, but essentially I will have declared and populated an array (see colorArray below). What I'd like to do is access... (9 Replies)
Discussion started by: bs103950
9 Replies

2. Solaris

Physical and Free mem on TOP command

Hi, When I run the free command on solaris, I get the following: "Memory: 60G phys mem, 69G free mem" Q: how cna the free mem be higher then the physical mem?:confused: Amit (3 Replies)
Discussion started by: amitlib
3 Replies

3. UNIX and Linux Applications

Need a FTP SERVER Program FREE

I need a FTP SERVER program for using in ubuntu, Do you know any for free? ps: there will be no internet connection so, vsftp will not work. need a tool (like filezilla but filezilla has no server version for unix ubuntu) that has to be installation package to extract in it. (6 Replies)
Discussion started by: F@NTOM
6 Replies

4. Shell Programming and Scripting

printing only columns containing a determined character with awk

Hello I'm trying to extract two columns from a database using awk, the thing is i have a variable number of columns in each row, and I just need to get out the two first ones ending in "," This is an example: ABE, ABE V149 MAZIE ARD CYN ACY, ACY, , , ,TEC, , 5000, , , 1, ZNY,ZDC ABE, ABE... (1 Reply)
Discussion started by: vir
1 Replies

5. Shell Programming and Scripting

[Solved] Extracting data from a determined file

Hi guys, How you doing? Need some help with this .I got a file with this kind of information SURVIVABLE PROCESSORS Name Type IP Address Reg Act Translations Net Updated Rgn Gateway001 ... (8 Replies)
Discussion started by: REX:)
8 Replies

6. UNIX for Dummies Questions & Answers

script to log free mem and disk space

I'm just learning shell scripting and am new to Unix/Linux. For the past week I've been logging how much free mem is on my server by using the '$ top' command, and the free disk space in a few directories by doing '$ df -h'. It sucks doing that every hour. Can you help me write a script... (2 Replies)
Discussion started by: enator45
2 Replies

7. Shell Programming and Scripting

Execute oracle query determined at runtime from a unix script

Hi I am trying to run a SQL statement from a unix script determined at runtime. It is throwing me an error. Please advise some solution to this. echo "Enter username for the database" read username echo "Enter password for the database" read password echo "Enter SQL stmt" read... (4 Replies)
Discussion started by: infyanurag
4 Replies

8. UNIX for Advanced & Expert Users

Free NFS server!?

Hi, I installed an software called Xlink NFS server, it works perfectly when i like to share Windows folders to my UNIX system. But the thing is that this costs money and i wonder if someone know an NFS server that is free, it dosen't have to be as powerful as Xlink i just need to share a... (1 Reply)
Discussion started by: sajjan2
1 Replies

9. UNIX for Advanced & Expert Users

How is system load determined?

Hello! I'm wondering what factors are used to determine the "system load" Where can i look to get more information on this? Patrick (3 Replies)
Discussion started by: Patrick_Morris
3 Replies
Login or Register to Ask a Question