in reply to Re^3: Highly efficient variable-sharing among processes
in thread Highly efficient variable-sharing among processes

Correction:

Shared memory is can be a way of interprocess communication

But the processes sharing memory do not have to communicate anything between them; the memory remains shared and readable by one without the other being in any way aware of the read.

To both processes, the memory is a part of its process, and neither need communicate to the other in order to use it.

No communication; no IPC.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^4: Highly efficient variable-sharing among processes

Replies are listed 'Best First'.
Re^5: Highly efficient variable-sharing among processes
by Marshall (Canon) on Aug 29, 2016 at 22:31 UTC
    I think what is being discussed is copy-on-write. If the forked process doesn't write the data, there is no copy made. Many processes could read the same data without separate copies being made.

    PS: I looked on the internet for a machine of this size. It is indeed possible to get a 198 GB memory machine from Dell. Maybe specialty vendors offer more memory? But even if this machine can do it, it would seem that a "hot fail" with a backup machine would be necessary. I am still thinking that this thing is so big and mission critical that an N+1 network would be better?

      I think what is being discussed is copy-on-write.

      Why do you think that? And who do you think is discussing that?

      The OP mentions only "*other* processes to be able to do lookups". No mention of anybody writing to anything; by him or anyone else.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
      In the absence of evidence, opinion is indistinguishable from prejudice.
        I am saying that if the other processes don't write this huge hash, there is no memory copy at all made of the data, all of these guys can access the same data segment. In Unix, there is not that much overhead in this. Sorry if my post wasn't clear that since there is no modification being made, little overhead will occur and a huge copy of this humongous hash will not happen in order to start a new process.
Re^5: Highly efficient variable-sharing among processes
by zwon (Abbot) on Aug 30, 2016 at 21:14 UTC
    But the processes sharing memory do not have to communicate anything between them; the memory remains shared and readable by one without the other being in any way aware of the read.

    One process has to fill the memory with data in order the other could read it. The fact that it doesn't aware about reads is not significant, communication doesn't have to be two way. My TV can receive signal without making TV tower aware of that, it's still communication.