LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-27-2003, 01:46 PM   #1
lathaprabhu
LQ Newbie
 
Registered: Jun 2003
Posts: 1

Rep: Reputation: 0
i/o & cache


Hi

When I write to a file same amount of memory/cache is used. If there is no free memory then in some machine it reuses the cache, but some system doesn't!

That is on Red Hat Linux release 7.2, Kernel 2.4.7-10 total available memory is 2GB (32 bit OS) . In that if 1.5GB is used by a process and in same process if I try to write a file of 1GB there is no problem. Cache will keep on increasing till free memory available is 4MB and then it reuses the cache. (I check that using free -m -s 5)

But on SCO Linux, Kernel 2.4.19-SMP (3) total available memory is 65GB(64 bit OS). In that if 50GB is used by a process and in the same process if I try to write a file of 20GB there is a problem. Cache will keep on increasing till free memory available is 261MB and then system doesn't respond.

I am opening file with O_SYNC flag. Any idea why cache is not released/reused? Also, when I kill the process cache size remains same, and when I restart the process cache will be reused. Is there way to release the cache?

Since disk I/O uses kernel buffer I want to use raw i/o. I would appreciate your help on usage of raw i/o.

Thanks,
Latha
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Caching enabled and local cache: //var/cache/yum/base/primary.xml.gz does... dr_zayus69 Linux - Software 2 07-06-2005 04:32 AM
squid-cache & mandrake/10.1: (22) Invalid argument darkportal_4 Linux - Networking 5 07-03-2005 11:04 AM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
Squid Cache & Filter without Proxy PersianPatient Linux - Software 4 11-24-2004 12:23 PM
diff bet RAM & CACHE memory LinuxTiro Linux - Hardware 1 08-30-2003 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration