LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-11-2014, 07:51 PM   #1
poplinux
Member
 
Registered: May 2012
Posts: 111

Rep: Reputation: Disabled
What mean the "non-consistent memory machine" ?


Dear Sir.

I'm trying to study dma programming. Refer linux/Documentation/DMA-api.txt.

This document tell to me "non-consisten memory machine". But I don't understand this theory. clearly.

Please show to me "non-consistent memory machine".

Thank you.
 
Old 02-11-2014, 09:51 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Typically, a process that changes data in shared memory first locks the memory address block that is to be changed (waiting until no other process is accessing that block), makes the changes, updates the "time of last change" flag, and releases the lock.

The "non-consistent memory" API is used for those rare cases, usually older systems, where the memory management needs to be done "by hand," and the programmer is going to keep all DMA correctly synchronized in code the programmer will write.

If you have a system where multiple processes are accessing the same block of shared memory, you need to make sure that, whenever one process changes a value in that shared memory, all the other processes know that, if they need to use data from the changed value(s) in the shared memory, they apply all the changes.

Look at this Wikipedia article for a discussion of inconsistent cache memory in multiprocessor systems. The same problem occurs with DMA by multiple process in a time-sliced single processor system.
 
1 members found this post helpful.
Old 02-11-2014, 10:29 PM   #3
poplinux
Member
 
Registered: May 2012
Posts: 111

Original Poster
Rep: Reputation: Disabled
Thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I wake up a server in "standby" or "memory" mode using wake-on-lan? songweijia Linux - Server 2 03-03-2010 06:51 PM
difference between "Memory" & "Good Memory" in AIX nagendrar AIX 2 12-18-2009 07:05 PM
Measure "CPU load" and "memory consumption" of a process DaneelGiskard Programming 3 08-30-2007 11:43 AM
How do i "copy" one bios and "paste" it onto another identical machine Yerp Linux - Hardware 2 01-10-2007 08:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:37 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