Is Write-Only Memory a Real Thing in Hardware Design?

  • Thread starter Thread starter zak100
  • Start date Start date
  • Tags Tags
    Fault Writing
Click For Summary

Discussion Overview

The discussion revolves around the concept of "write-only memory" (WOM) in hardware design, exploring its implications in operating systems and memory management. Participants engage with technical aspects of page faults, memory states, and the operational definitions of read and write modes.

Discussion Character

  • Debate/contested
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant describes a method for simulating write-only memory through page fault handling, raising questions about the timing of page faults and the meaning of read/write modes.
  • Another participant references the humorous aspect of write-only memory as a joke among programmers, while also discussing the practical implications of page states in memory management.
  • A third participant attempts to categorize the possible states of a page and suggests methods for tracking these states, emphasizing the operating system's concern during page faults.
  • A later reply highlights the historical context of write-only memory as a joke that has practical applications in hardware design.

Areas of Agreement / Disagreement

Participants express differing views on the nature and implications of write-only memory, with some finding humor in the concept while others focus on its technical aspects. The discussion remains unresolved regarding the specifics of page fault behavior and the definitions of memory states.

Contextual Notes

The discussion includes assumptions about memory management that may not be universally agreed upon, such as the definitions of read and write modes and the handling of page faults. There are also unresolved questions about the tracking of memory states and the implications for operating systems.

zak100
Messages
462
Reaction score
11
TL;DR
Hi,
I am trying to understand the concept of NRU from the following link. I have got some problem in understanding the text below:
https://www.informit.com/articles/article.aspx?p=25260&seqNum=3
If the hardware does not have these bits, they can be simulated as follows. When a process is started up, all of its page table entries are marked as not in memory. As soon as any page is referenced, a page fault will occur. The operating system then sets the R bit (in its internal tables), changes the page table entry to point to the correct page, with mode READ ONLY, and restarts the instruction. If the page is subsequently written on, another page fault will occur, allowing the operating system to set the M bit and change the page's mode to READ/WRITE.




I have bolded the text. I have two problems: Page fault occurs if the page is not in memory but the above text says that

(a)the page fault occurs at the time of modifying or writing the page? I can’t understand that.

(b) Also I can't understand the text “, allowing the operating system to set the M bit and change the page's mode to READ/WRITE.” What is meant by READ/WRITE? If we are setting the M bit then it should be WRITE mode only? Why the text says READ/WRITE mode.

Somebody please guide me.

Zulfi.
 
Technology news on Phys.org
LOL your question invokes an age-old joke among programmers, the "write-only-memory". Just the concept used to send programmers rolling on the floor with laughter.

Look at it this way. If a page has only been read, then the page entry can be given up without writing anything back to main memory. However, as soon as the page is modified, the page entry can not be given up before the cache contents are written back to main memory.

What are all the possible states of a page?
How would you keep track of those states using bits?
When does the OS care what the state is?
 
Hi my friend, thanks for your reply.

Your reply was LOL for me because I asked one question and now you are asking 3 questions.
<What are all the possible states of a page?>
4.
00, 01, 10, 11
<
How would you keep track of those states using bits?>

Maybe by storing in some array or just by looking at the 2 bits.

<When does the OS care what the state is?>
At the time of page fault because all the memory frames might be full and we are requesting a page which is not in main memory, so we have replace a page in the frame with a page from virtual memory.

My problem not yet solved.

Zulfi.
 
anorlunda said:
LOL your question invokes an age-old joke among programmers, the "write-only-memory". Just the concept used to send programmers rolling on the floor with laughter.

Programmers might laugh but hardware guys design it.

https://en.wikipedia.org/wiki/Write-only_memory_(engineering)
In 1972, WOM, an antithesis of read-only memory (ROM), was introduced as an inside practical joke perpetrated by Signetics.[1] However, it was soon recognized that this concept actually describes certain functionalities in microprocessor systems.[2]
 
  • Haha
Likes   Reactions: anorlunda

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 14 ·
Replies
14
Views
6K
  • · Replies 27 ·
Replies
27
Views
4K
  • · Replies 100 ·
4
Replies
100
Views
12K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 10 ·
Replies
10
Views
4K