LinuxQuestions.org
Help answer threads with 0 replies.
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 08-07-2006, 02:38 AM   #1
natasha
LQ Newbie
 
Registered: Jul 2006
Distribution: Red Hat
Posts: 12

Rep: Reputation: 0
Question Cache coerency in Linux


Hello everybody,
how does Linux ensure cache coherency, that is, when one process open a file (and hence the file is cached) while another process maps the file into its address space, which assures content of file coherence?
Kisses,

Nat
 
Old 08-07-2006, 05:12 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
A file is not stored in memory (ie disk cache) when you open it.
Caching is only used when you read or write the file, to improve IO performance.

The disk caching mechanism ensures coherency.

Of course, a program can read an entire file and store a copy of the contents in it's own memory space, but than it's up to the program to manage that memory.
 
  


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
Ram wiht suse, cache Disk cache??? fadelhomsi Linux - Newbie 2 02-05-2006 11:29 PM
clearing cache, web cache on linux varunbihani Linux - General 2 12-08-2005 12:02 PM
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
Linux Cache Server MrCarl Linux - General 2 11-06-2003 01:00 PM
Cache server in Linux.... m_pahlevanzadeh Linux - Networking 1 01-07-2003 11:41 PM

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

All times are GMT -5. The time now is 04:54 AM.

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