clear cache memory


 
Thread Tools Search this Thread
Operating Systems Solaris clear cache memory
# 1  
Old 09-29-2012
clear cache memory

hi all,

i have noticed that my server has 64 GB RAM and i have application in this server but the server has free memory only 15% and utilized 85% however it didn't eat from swap .

does any parameter can be configured in kernel to make the system clear memory from cache like linux

i found this command for linux and it worked it free the memory in redhat i want something like this in solaris ?

Code:
sync; echo 3 > /proc/sys/vm/drop_caches

# 2  
Old 09-29-2012
As you wrote the OS doesn't use swap, what problem are you trying to solve ?
# 3  
Old 09-30-2012
i have a question about if i rebooted the system this memory will be released may be to 66% utilization so i want any command to release without reboot

i am fraid of the memory utilization reach to 99% ?

tell me if it reached to 99% will it eat from swap or not ?
# 4  
Old 09-30-2012
Quote:
Originally Posted by maxim42
i have a question about if i rebooted the system this memory will be released may be to 66% utilization so i want any command to release without reboot
There is no point clearing caches. Unused memory is wasted memory.
Quote:
i am fraid of the memory utilization reach to 99% ?
The system starts to free RAM in only in case of shortage. The limit is tunable (lotsfree) and by default 1/64th or the RAM (98.5% used)
Quote:
tell me if it reached to 99% will it eat from swap or not ?
Possibly. That depends also on how you define eat and how you define swap.
# 5  
Old 09-30-2012
Quote:
Originally Posted by maxim42
hi all,

i have noticed that my server has 64 GB RAM and i have application in this server but the server has free memory only 15% and utilized 85% however it didn't eat from swap .

does any parameter can be configured in kernel to make the system clear memory from cache like linux

i found this command for linux and it worked it free the memory in redhat i want something like this in solaris ?

Code:
sync; echo 3 > /proc/sys/vm/drop_caches

IIRC, that just drops file system caches. It's only useful for doing benchmarking to figure out how fast your system can access uncached data.

The only scenario I've ever seen where it made sense to restrict cache usage is when you know you're going to need memory later. In that case, you'd want to put limits on cache usage so that you don't run into performance issues when your server suddenly needs more RAM.

Because freeing a lot of cache doesn't happen immediately - it can take substantial time.

Where this can really causes problems is when your transient memory needs large memory pages. File system cache tends to fragment memory into smaller pages, and if you're tight on free memory because your server has a lot of cached data, a sudden demand for large pages can cause serious performance issues as it tries to free pages and coalesce them into the requested larger pages.

Something like an Oracle database system with multiple large ISM shared memory segments running on ZFS...

But even in that case, you want to limit the cache usage beforehand, not clear it afterwards. Because it will just go back up again like it's designed to do.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

Instructions to Clear Data Cache in Safari, Chrome, Firefox, Opera Browsers (Pictures)

Here are instructions to clear the data cache for four browsers, Safari, Chrome, Firefox, Opera. In these examples I'm using MacOS Mojave, but it should be similar for any OS. You can use these instructions to to clear and reload the cache if you have any issues with the Vue.js UserCP (current... (1 Reply)
Discussion started by: Neo
1 Replies

2. UNIX for Dummies Questions & Answers

Best ways to get clear info about CPU and Memory

Hello all i did search the web and found allot of answers but im confused what are the best ways to get this info via Linux default commands 1. current Cpu Usage in Percent 2. current Memory Usage In Bytes 3. current Memory Available In Bytes Thanks! (2 Replies)
Discussion started by: umen
2 Replies

3. Programming

Memory and cache access time discrepancy

#include<stdio.h> #include<stdlib.h> #include<sys/time.h> #include<time.h> #include "rdtsc.h" #define SIZE 4*64*1024 int main() { unsigned long long a,b; int arr={0}; int i; register int r; a=rdtsc(); r=arr; b=rdtsc(); printf("1st element Access Cycles = %llu\n",b-a); (2 Replies)
Discussion started by: Vaibhavs1985
2 Replies

4. Programming

Ways to preserve a memory cache

The environment is Java/Windows. The program keeps near real-time state in memory cache, which is updated by multiple sources, size of the cache is roughly 500 MB, frequency of updates is ~ 20 per second. I am looking into different ways to keep current snapshot of the memory on the disk for a)... (9 Replies)
Discussion started by: migurus
9 Replies

5. Red Hat

Need to release Cache memory

Right now i am using Red Hat Enterprise Linux AS release 4 and cache memory occupying around 1.5GB mentioned below, total used free shared buffers cached Mem: 2026 2021 5 0 161 1477 -/+ buffers/cache: 382 1644 ... (4 Replies)
Discussion started by: thakshina
4 Replies

6. Red Hat

How do I clear RHEL3 Cache get allocation to RAM?

Hi I am running in Issue that my total system RAM is 8GB. If I run command free -m I get 6.0 Gb RAM free -m total used free shared buffers cached Mem: 7554 5928 1626 0 123 4798 -/+ buffers 1006 ... (3 Replies)
Discussion started by: osamamunir
3 Replies

7. UNIX for Dummies Questions & Answers

High use of cache memory

Hi, I'm running a debian lenny 1GB ram, but with a high I/O. This server has 400IOPS and 3MB/s sustain. So, I noted cached memory use 800MB, buffered memory use 50MB, and no free memory is available. Questions: What does mean such a high cached memory? Who's using this cached memory? Is... (3 Replies)
Discussion started by: iga3725
3 Replies

8. SCO

Clear / Remove / Create Shared Memory...

Hi all... am not so much brilliant in this area... here i think many good hearted peoples around... so if anybody have intention to reply for my problem please give me a cut and clear picture of how... Thanks. ok comming to my problem... In our MHC server (Sco Unix 4.*) running 19 C process... (1 Reply)
Discussion started by: yocks
1 Replies

9. UNIX for Dummies Questions & Answers

clear memory

Hi... how can i clear the Memory on AIX 4.3.3 without rebooting (like flush memory on oracle database ) THANX fenomen (2 Replies)
Discussion started by: fenomen
2 Replies

10. Windows & DOS: Issues & Discussions

Clearing of cache memory

Pls! will someone help me on how to clear my cache memory of my Internet browser Thanks Kayode (3 Replies)
Discussion started by: kayode
3 Replies
Login or Register to Ask a Question