Re: can I ensure data integrity with mmap?
- From: Ulrich Eckhardt <doomster@xxxxxxxx>
- Date: Thu, 17 Aug 2006 18:16:09 +0200
Henry Townsend wrote:
Ulrich Eckhardt wrote:
Henry Townsend wrote:
There's a set of files being written to. As soon
as each file is "done" it needs to be uploaded to a server. This has
begun to cause serious performance degradation because (a) the files
may be large, (b) the server can be slow and, most importantly, (c)
files must be uploaded *immediately* upon being "done" because
another process may overwrite them at any time.
It's not a direct answer to what you are asking, but I would seriously
question your design.
For the record, I don't think "my design" is in the picture here. My
product is a library which needs to track activities by programs which
link to the library. I have absolutely no control over how files are
created nor where they are placed, any more than a census worker gets to
tell people where to live. This is why I used the passive voice above. I
have control over the uploading algorithm but that's it.
I didn't want to sound offensive, though rereading it it does sound a bit
arrogant - sorry for that. My impression was that you only needed some
data synced between computers but since your requirements say you need to
use files there is little an alternative solution can do.
sorry
Uli
--
http://www.erlenstar.demon.co.uk/unix/
.
- References:
- Re: can I ensure data integrity with mmap?
- From: Ulrich Eckhardt
- Re: can I ensure data integrity with mmap?
- From: Henry Townsend
- Re: can I ensure data integrity with mmap?
- Prev by Date: Re: Use RPC?
- Next by Date: Re: questions about pipe
- Previous by thread: Re: can I ensure data integrity with mmap?
- Next by thread: Dir filter how to set ?
- Index(es):
Relevant Pages
|