linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: Memory mapped files question
@ 2003-04-14 19:31 Perez-Gonzalez, Inaky
  2003-04-14 19:42 ` Bryan Shumsky
  0 siblings, 1 reply; 18+ messages in thread
From: Perez-Gonzalez, Inaky @ 2003-04-14 19:31 UTC (permalink / raw)
  To: 'Bryan Shumsky', 'linux-kernel@vger.kernel.org'


> From: Bryan Shumsky [mailto:bzs@via.com]

> Hi, everyone.  I'm running into a problem that I hope someone else has
seen,
> and maybe can help solve.  We're using the mmap system function for memory
> mapped files, but our updates never get flushed until we munmap or msysnc.

I thought that was the way it was supposed to work.

Iñaky Pérez-González -- Not speaking for Intel -- all opinions are my own
(and my fault)

^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: Memory mapped files question
@ 2003-04-14 19:50 Perez-Gonzalez, Inaky
  0 siblings, 0 replies; 18+ messages in thread
From: Perez-Gonzalez, Inaky @ 2003-04-14 19:50 UTC (permalink / raw)
  To: 'Bryan Shumsky', 'linux-kernel@vger.kernel.org'


> From: Bryan Shumsky [mailto:bzs@via.com]
> 
> Hi, everyone.  Thanks for all your responses.  Our confusion is that in
Unix
> environments, when we modify memory in memory-mapped files the underlying
> system flusher manages to flush the files for us before the files are
> munmap'ed or msysnc'ed.
> 
> Rewriting all of our code to manually handle the flushing is a MAJOR
> undertaking, so I was hoping there might be some sneaky solution you could
> come up with.  Any ideas?

Have a high prio thread msync()ing every now and then? OOps forget it,
I never said that, it is really a lame solution :) you can run in all
kinds of trouble.

Or maybe it is not that lame if you know *exactly* when do you need
the flush (for example, some other program is going to access the data);
this way you can signal the process who did the modification for it
to issue an msync(). However, this is going to be some delicate
synchronization
between the two apps.

Iñaky Pérez-González -- Not speaking for Intel -- all opinions are my own
(and my fault)

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Memory mapped files question
@ 2003-04-14  3:57 Bryan Shumsky
  2003-04-14 14:36 ` Martin J. Bligh
  0 siblings, 1 reply; 18+ messages in thread
From: Bryan Shumsky @ 2003-04-14  3:57 UTC (permalink / raw)
  To: linux-kernel

Hi, everyone.  I'm running into a problem that I hope someone else has seen,
and maybe can help solve.  We're using the mmap system function for memory
mapped files, but our updates never get flushed until we munmap or msysnc.
Are we missing something?  Is there a tunable parameter in the kernel or
filing system that can be set to flag these updates as 'write required'?

Any advice or suggestions would be appreciated.

Regards,

-- Bryan Shumsky
Director of Engineering
Via Systems, Inc.



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2003-04-15  5:19 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-14 19:31 Memory mapped files question Perez-Gonzalez, Inaky
2003-04-14 19:42 ` Bryan Shumsky
2003-04-14 19:53   ` Alan Cox
2003-04-14 21:24     ` Chris Friesen
2003-04-14 20:13   ` Richard B. Johnson
2003-04-14 20:27     ` Frank van Maarseveen
2003-04-14 20:52       ` Richard B. Johnson
2003-04-14 22:08   ` H. Peter Anvin
2003-04-15  4:56     ` Jamie Lokier
2003-04-15  5:30       ` H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2003-04-14 19:50 Perez-Gonzalez, Inaky
2003-04-14  3:57 Bryan Shumsky
2003-04-14 14:36 ` Martin J. Bligh
2003-04-14 15:07   ` Antonio Vargas
2003-04-14 15:04     ` Martin J. Bligh
2003-04-14 18:07       ` H. Peter Anvin
2003-04-14 20:39         ` Chris Friesen
2003-04-14 21:12           ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).