Re: can I ensure data integrity with mmap?



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/
.



Relevant Pages

  • Software engineer
    ... I have a BS in Electrical Engineering and computer science and worked on my ... I have also been involved in hardware design. ... Developed an ATL DCOM based Server and MFC client GUI using Visual C++6.0. ... User can control the data acquisition parameters by modifying the script file. ...
    (FreeBSD-Security)
  • Re: Using SQl to store aspx pages and memory problems
    ... The solution I was looking at would be to create some specific server side ... I want the data to be saved in the page so I thought that a asp.net control ... the original design and one that ensures that future system changes will not ... > database isn't some sort of magic pixie dust that solves all problems. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: HtmlInputFile to get filename only without upload
    ... I use the server side control ... It is true that the Html control does not upload the file when it ... server side control, however, always uploads the file before anything else. ... > HtmlInputFile control from uploading the file? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: HtmlInputFile to get filename only without upload
    ... A "server control" is just a way to be able to easily control HTML ... >> HtmlInputFile control from uploading the file? ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Design a matrix (rows and column) control in ASP.NET
    ... or 3rd party control if you want effects and don't know dom/javascript. ... I am trying to design a small WEB application to track the employees ... holiday/leave details using .Net technologies (ASP.NET/ SQL server) ... if user selects any cell then I want to change the cell's background ...
    (microsoft.public.dotnet.framework.aspnet)