From: Jeff D. <jd...@ka...> - 2003-01-11 04:46:49
|
no...@am... said: > Although the argument of mmap() is MAP_SHARED, `/tmp/hoge' isn't > updated. (i.e. `od -x /tmp/hoge` shows all `0'. it means processes on > single UML > and on multiple UMLs can't share data through mmaping hostfs) That's because hostfs caches data inside UML. The changes will eventually reach the host, but that may happen as late as when the filesystem is unmounted. > Does anyone have a good idea for implementing mmap-based shared memory > ? Or, What is the best way to implement shared memory anong multile > UMLs ? Look at the iomem emulation. That's exactly what it was designed for. Jeff |