memory question


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users memory question
# 1  
Old 02-19-2007
memory question

Following is the result of commands vmstat and free, on a linux machine:

$ vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- -----cpu------
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 40 207344 135724 3234048 0 0 1 1 5 4 0 0 100 0 0

$ free
total used free shared buffers cached
Mem: 4023072 3815500 207572 0 135724 3234048
-/+ buffers/cache: 445728 3577344
Swap: 2104472 40 2104432

My question is: I am not running any memory consuming programs, why 3.8G of the toal 4G memory is used right now? Is it going to run out of memory shortly? Thanks!
# 2  
Old 02-19-2007
As you can see, 3Gb of your memory is "cached" and will be released by the kernel if it's required.

Cheers
ZB
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris memory question...

On my Solaris 10 server we are having memory issue. I did top and I see this. last pid: 8876; load avg: 0.19, 0.16, 0.16; up 50+05:24:02 14:56:53 80 processes: 77 sleeping, 1 stopped, 2 on cpu CPU states: 93.5% idle, 3.1% user, 3.4%... (4 Replies)
Discussion started by: samnyc
4 Replies

2. Solaris

[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%)

Hi Experts, Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing. Why memory utilization on solaris always looks high? I have statement about memory on solaris, is this true: Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies

3. AIX

Question about reserved memory

Hi! maybe a stupid question but i recall fixing this issue before (or something similar), On one of my frames I have a huge amount of reserved memory. 25GB to be exact. I am running out of memory and need to add a new lpar. I can't remember exactly how i fixed this issue before and it's... (2 Replies)
Discussion started by: vpundit
2 Replies

4. UNIX for Advanced & Expert Users

Linux Virtual Memory Question

Hello, I am trying to understand the VIRT field that shows in the TOP command output. I have a users application that appears to be leaking memory. I see that the field VIRT in the top output is showing 55.8g. The question is where is that getting stored? The disk does not appear to have... (7 Replies)
Discussion started by: jaysunn
7 Replies

5. Programming

Memory addressing question

Forgive me if this sounds like a newbie question. Any time you obtain a stack address from a pointer, what is this relative to by default? Is it the extra segment, the stack segment, what? How do you change change the relative positioning in memory? Thanks in advance (1 Reply)
Discussion started by: stevenswj
1 Replies

6. UNIX for Dummies Questions & Answers

Question: Help need to remove blank line & sed: Couldn't re-allocate memory error.

I've shell script where i used the below command to take the line which contains patterns. sed -n "/$year 05:/,/$year 17:/p" trace.log | grep -f patterns.txt > output.log This was working fine for long time, but now a days this script is not working with and throwing error like sed:... (8 Replies)
Discussion started by: senthil.ak
8 Replies

7. High Performance Computing

Newbie question about using a Cluster: using memory

Newbie question about clusters and memory. Is there a way using a cluster (or any other Linux feature/technology) where I can link up a bunch of PCs such that an app thinks it has more memory than available on just one local machine? For example, we have multiple surplus PCs with 512MB RAM... (8 Replies)
Discussion started by: joespr
8 Replies

8. Solaris

How to find Total and Free Physical Memory and Logical Memory in SOLARIS 9

Hi, Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:- 1. Total Physical Memory in the system(total RAM). 2. Available Physical Memory(i.e. RAM Usage) 3. Total (Logical) Memory in the system 4. Available (Logical) Memory. I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies

9. Programming

c language + simple question regarding memory addresses and ASCII characters

Just a simple question (which may seem silly so bear with me) that arose in my mind the other day. Do ASCII characters by themselves (e.g. /n, 0, a) have an actual memory address ? My question arises, because Im aware that each time I create and initalise a pointer like this for example int... (7 Replies)
Discussion started by: JamesGoh
7 Replies

10. UNIX for Dummies Questions & Answers

Memory utilization question

Hi All I have a clarification. I am running a database on CentOS 4.5 final, PostgreSQL version 8.1.9. The question is about memory usage on the system. The memory used statistic has risen consistently over the past few days... by about 2-3% a day. I want to know why this memory is growing.... (1 Reply)
Discussion started by: skotapal
1 Replies
Login or Register to Ask a Question