memory regain


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers memory regain
# 1  
Old 11-02-2002
memory regain

When i first restart my computer memory usage is at 24% as the days months and evening pass it gets up to 80% and holds there sometime breaching 98%. Is there an command to regain the memory?


Redhat 8
768 mb ram
# 2  
Old 11-02-2002
It sounds like you have runaway procs that are consuming your memory. As time goes on they take over more and more of your available memory as it is freed by other procs. You need to determine which procs are using the most memory and then decide to whether to kill and restart them.

I don't know what type of monitoring tools you have on Redhat, but i bet you do or can download a patch for one to read the performance on your host.

Smilie
# 3  
Old 11-02-2002
See this post.
# 4  
Old 11-02-2002
Wow.....

Ok that was an answer and then some. Thank you very much for taking the time to expain it and to provide the ability for me to go go find the sources. I had done a search on memory on this sight and read that replay and many others but never quite found the answer i wanted.

thank you
# 5  
Old 11-02-2002
FWIW: Linux uses memory very efficiently and will often, over time, use most of the memory available. This is considered to be a feature, BTW.

Take, for example, XP. I have 1.5GB loaded and it seems to never use more than 400MB - 500 MB no matter how many apps I have running.

If this was a linux system, it would find a way to use all the memory.

Your description of linux, over time, using 80 percent or more memory is common. Here is our linux server memory stats:

Code:
CPU states: 10.8% user,  6.1% system,  0.0% nice, 83.0% idle
Mem:   517496K av,  506932K used,   10564K free,   64624K shrd,  298040K buff
Swap:  256024K av,     320K used,  255704K free     111132K cached

Up almost 3 months:

Code:
www# uptime
  8:52pm  up 84 days, 21:36,  3 users,  load average: 0.15, 0.10, 0.05
www#

So, 507/517 is about 98 percent, and this is normal for good running linux boxes because linux is designed to use the available memory efficiently.
# 6  
Old 11-02-2002
Both the answers have helped. I now atleast better understand the principle behind the numbers. My concern was because i am used to reading, now back words, the micro-soft way. My computer starts at 98% resources free and then works to 60% or 70%. If i run Maya a graphics render program then i can expect to drop even lower with my only recoil to restart. Similiarly the win2k server I manage has to be restarted one a month or so to keep it really happy.

So in conclusion. There is not an aplication or cammand i run to regain the mem % usage, nore should I focus on it relentlessly as it may not be causing as much of a problem as the numbers might seem.
# 7  
Old 11-02-2002
I agree with your conclusions; and certainly don't worry that our linux server is at 98 percent memory usage. If I installed another 512 MB, it would still go to 98 percent because linux likes to use the available memory Smilie What's the point of having memory if the OS does not use it? ( or at least that is what I keep saying after loading my XP box to 1.5 GB and never using more than 400 - 500 MB, and being CPU bound most of the time in application resource time...)

If you are not seeing much swap activity, you are OK. If you are swapping (using the disks to supplement memory) then add more memory if you can.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to regain the focus back to the launch window?

Consider this code snippet below:- char=`which afplay` if then xterm -e 'while true; do clear; echo "Press Ctrl-C to Quit..."; afplay /tmp/pulse.wav; done' & > /dev/null 2>&1 fi This launches a second terminal window that generates a specific waveform for the next calibration of... (4 Replies)
Discussion started by: wisecracker
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. Solaris

relationship or difference between entitled memory and locked memory

Hello solaris experts, Being new to solaris containers, from Linux, feeling difficulty in understanding certain concepts. Hope somebody can help me here. I understand that, & some questions .... Locked memory -- memory which will not be swapped out at any cause. is this for... (0 Replies)
Discussion started by: thegeek
0 Replies

4. Solaris

restrcit physical memory with zone.max-locked-memory

Is it possible to restrict physical memory in solaris zone with zone.max-locked-memory just like we can do with rcapd ? I do not want to used rcapd (1 Reply)
Discussion started by: fugitive
1 Replies

5. Programming

How to deal with lots of data in memory in order not to run out of memory

Hi, I'm trying to learn how to manage memory when I have to deal with lots of data. Basically I'm indexing a huge file (5GB, but it can be bigger), by creating tables that holds offset <-> startOfSomeData information. Currently I'm mapping the whole file at once (yep!) but of course the... (1 Reply)
Discussion started by: emitrax
1 Replies

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

7. AIX

ulimits max locked memory virtual memory

Hi, Would any one be so kind to explain me : are ulimits defined for each user seperately ? When ? Specialy what is the impact of : max locked memory and virtual memory on performance of applications for a user. Many thanks. PS : this is what I can see in MAN : ulimit ] ... (5 Replies)
Discussion started by: big123456
5 Replies

8. Programming

how to round up a memory address(memory alignment problem)

Hi, I try to marshal a unsigned int and a char * into a buffer, and then unmarshal them later to get them out. I need to put the char * in the front and unsigned int at the end of the buffer. However, my system always give me "BUS ERROR". I am using Sun Sparcs Sloris 2.10. My code to marshal... (6 Replies)
Discussion started by: nj302
6 Replies

9. UNIX for Advanced & Expert Users

Shared memory shortage but lots of unused memory

I am running HP-UX B.11.11. I'm increasing a parameter for a database engine so that it uses more memory to buffer the disk drive (to speed up performance). I have over 5GB of memory not being used. But when I try to start the DB with the increased buffer parameter I get told. "Not... (1 Reply)
Discussion started by: cjcamaro
1 Replies
Login or Register to Ask a Question