9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] 9p2k, fsync
@ 2001-02-07 15:06 jmk
  2001-02-07 18:16 ` Scott Schwartz
  0 siblings, 1 reply; 30+ messages in thread
From: jmk @ 2001-02-07 15:06 UTC (permalink / raw)
  To: 9fans

Scott Schwartz <schwartz@bio.cse.psu.edu>:
> What sort of reliability guarantees will the new 9p offer?  In the past,
> Plan 9 had no equivalent of fsync, and no assurance that any particular
> operation was really committed to stable storage.

What do you mean by 'stable storage' and how does 'fsync' assure that?


^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: [9fans] 9p2k, fsync
@ 2001-02-09  0:08 nemo
  2001-02-09 18:37 ` Boyd Roberts
  0 siblings, 1 reply; 30+ messages in thread
From: nemo @ 2001-02-09  0:08 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 251 bytes --]

I was not asking for any T* message, other than the ones in 9P.  I was
asking for a process listening for `innocent' command requests, (in
the way of /srv/kfs*.cmd). I define `innocent' as the subset of console
commands that may not cause harm.


[-- Attachment #2: Type: message/rfc822, Size: 2772 bytes --]

From: "Paul Taysom" <Paul_Taysom@novell.com>
To: <9fans@cse.psu.edu>
Subject: Re: [9fans] 9p2k, fsync
Date: Thu, 08 Feb 2001 10:46:03 -0700
Message-ID: <sa8278f7.052@prv-mail20.provo.novell.com>

Tsync: This way there be dragons.
The next thing you'll be asking for is byte range locks and then
locks that can survive crashes and then something to coordinate
updates to multiple files and then away to back it up . . . . . .

If you want ACID let's look at away of providing for it within the context
of the a simple file protocol.

Ideas for sync:
1. Battery backed static RAM for the more resent requests like NetApp.
2. A volume that does write through or flush on close.

I agree that databases have gotten way out of hand but is there away
within the spirit of Plan 9 to provide ACID?  Sync does not meet the
requirement.

Paul Taysom

>>> nemo@gsyc.escet.urjc.es 02/08/01 07:03AM >>>
:  Hey?  No disagreement that it's a fileserver issue, but I should also
:  be able to ask the file server to sync the data associated with a
:  particular FID.

That's a question I have.  I understand it can be done from its
console, but is there any way to ask 9pcfs for an inmediate sync
through the network?

And another one.  Any plans to make the future fs kernel do software
mirrowing on ide disks?

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: [9fans] 9p2k, fsync
@ 2001-02-08 22:27 forsyth
  2001-02-09 18:43 ` Boyd Roberts
  0 siblings, 1 reply; 30+ messages in thread
From: forsyth @ 2001-02-08 22:27 UTC (permalink / raw)
  To: 9fans

>>Okay, but I have no way to indicate to the file server, ``hey, now
>>would be a good time to take care of it....''

>>I don't think that the idea of fsync() is bad, even if the
>>implementation doesn't work as advertised.

>>I guess this just isn't that big of a deal for you guys....

not at all.  you're assuming that there are no
techniques available that provide the properties you seek (possibly
better than that, but never mind), BUT neither request nor require fsync (or Tsync);
in fact, for which fsync/Tsync would anyway be a no-op.

fsync was a quick non-fix in the wrong place.



^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: [9fans] 9p2k, fsync
@ 2001-02-08 17:46 Paul Taysom
  2001-02-08 21:49 ` Dan Cross
  0 siblings, 1 reply; 30+ messages in thread
From: Paul Taysom @ 2001-02-08 17:46 UTC (permalink / raw)
  To: 9fans

Tsync: This way there be dragons.
The next thing you'll be asking for is byte range locks and then
locks that can survive crashes and then something to coordinate
updates to multiple files and then away to back it up . . . . . .

If you want ACID let's look at away of providing for it within the context
of the a simple file protocol.

Ideas for sync:
1. Battery backed static RAM for the more resent requests like NetApp.
2. A volume that does write through or flush on close.

I agree that databases have gotten way out of hand but is there away
within the spirit of Plan 9 to provide ACID?  Sync does not meet the
requirement.

Paul Taysom

>>> nemo@gsyc.escet.urjc.es 02/08/01 07:03AM >>>
:  Hey?  No disagreement that it's a fileserver issue, but I should also
:  be able to ask the file server to sync the data associated with a
:  particular FID.

That's a question I have.  I understand it can be done from its
console, but is there any way to ask 9pcfs for an inmediate sync
through the network?

And another one.  Any plans to make the future fs kernel do software
mirrowing on ide disks?




^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: [9fans] 9p2k, fsync
@ 2001-02-08 14:03 nemo
  0 siblings, 0 replies; 30+ messages in thread
From: nemo @ 2001-02-08 14:03 UTC (permalink / raw)
  To: 9fans

:  Hey?  No disagreement that it's a fileserver issue, but I should also
:  be able to ask the file server to sync the data associated with a
:  particular FID.

That's a question I have.  I understand it can be done from its
console, but is there any way to ask 9pcfs for an inmediate sync
through the network?

And another one.  Any plans to make the future fs kernel do software
mirrowing on ide disks?



^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: [9fans] 9p2k, fsync
@ 2001-02-08 12:50 Laura Creighton
  2001-02-08 20:03 ` Dan Cross
  0 siblings, 1 reply; 30+ messages in thread
From: Laura Creighton @ 2001-02-08 12:50 UTC (permalink / raw)
  To: 9fans; +Cc: lac


Earlier Dan Cross wrote:

>	Yeah.  Also, for those of us who have fallen enough times that our
>	hands don't work all that well anymore, the chording required to make a
>	2 button mouse work like a 3 button mouse is pretty uncomfortable.
>	Man, my skateboard used to be pretty evil to me when I was younger.
>

Now he writes:

>	Yeah, I won't disagree with you there, but that doesn't make it any
>	less useful.  It's a choice between a hammer for both nails and screws,
>	or using my hands for both.

Are you *sure* it is the skateboard that is the problem? :-)

Laura Creighton


^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: [9fans] 9p2k, fsync
@ 2001-02-08  6:26 rob pike
  0 siblings, 0 replies; 30+ messages in thread
From: rob pike @ 2001-02-08  6:26 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 151 bytes --]

No one here said, ``the file server will take care of it''. What we're
saying is that the file server must take care of it if anyone will.

-rob


[-- Attachment #2: Type: message/rfc822, Size: 3081 bytes --]

From: Dan Cross <cross@math.psu.edu>
To: 9fans@cse.psu.edu
Cc: 
Subject: Re: [9fans] 9p2k, fsync
Date: Thu, 8 Feb 2001 01:01:27 -0500 (EST)
Message-ID: <200102080601.BAA04455@augusta.math.psu.edu>

In article <200102080115.UAA26741@smtp1.fas.harvard.edu> you write:
>There are no asynchronous writes here.

Define asychronous in this context.  There are no asychronous network
transactions, true, but that's not the same thing as an asychronous
write

>By the time the write(2) system call returns,
>the file server has acknowledged receipt of the data.
>At that point, it's the file server's business.

Not really; if my application depends on that data being on stable
storage, not just a RAM buffer, I could still be in trouble.  The
scenarios are obvious, but the point is that I might have a real need
for this sort of thing, and ``the file server will take care of it''
isn't really good enough.

>Fsync is simultaneously too much and too little.
>People who care often care about making sure
>individual blocks are committed to storage, and fsync
>is the only hammer they have.

When the file is modeled as a stream of bytes, ie, the blocks are
abstracted away from me as the programmer, I'm not sure that hammer
isn't the only one appropriate for the nails I'm given.

>I'm sure that if there were a Tsync message in
>the protocol, it would suffer the same problem.
>Nine times out of ten it would be the wrong hammer.

Yeah, I won't disagree with you there, but that doesn't make it any
less useful.  It's a choice between a hammer for both nails and screws,
or using my hands for both.

	- Dan C.

(Of course, I'd use a skateboard truck instead of my hands, but you get
the idea.  I had to do that once repairing a ramp.  :-)

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: [9fans] 9p2k, fsync
@ 2001-02-08  6:24 rob pike
  2001-02-08 22:08 ` Dan Cross
  0 siblings, 1 reply; 30+ messages in thread
From: rob pike @ 2001-02-08  6:24 UTC (permalink / raw)
  To: 9fans

> The issue is wether I, as a programmer, have a way of saying, ``please
> make sure that this file is committed to stable storage, and not in a
> RAM buffer somewhere.''  Currently, there is no solution to this
> problem.

This question has been answered. No, there is no solution.  Other
systems claim to have solutions but they are exaggerating. It's an
issue for file servers, not operating systems.

-rob



^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: [9fans] 9p2k, fsync
@ 2001-02-08  1:32 rob pike
  2001-02-08  5:43 ` Dan Cross
  0 siblings, 1 reply; 30+ messages in thread
From: rob pike @ 2001-02-08  1:32 UTC (permalink / raw)
  To: 9fans

Actually, one of Plan 9's earliest commercial customers used it to
support a massive database-like application on serious hardware.  The
lack of fsync didn't seem to get in the way.

-rob



^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: [9fans] 9p2k, fsync
@ 2001-02-08  1:15 Russ Cox
  2001-02-08  6:01 ` Dan Cross
  2001-02-09 17:32 ` Boyd Roberts
  0 siblings, 2 replies; 30+ messages in thread
From: Russ Cox @ 2001-02-08  1:15 UTC (permalink / raw)
  To: 9fans

There are no asynchronous writes here.
By the time the write(2) system call returns,
the file server has acknowledged receipt of the data.
At that point, it's the file server's business.

Fsync is simultaneously too much and too little.
People who care often care about making sure
individual blocks are committed to storage, and fsync
is the only hammer they have.

I'm sure that if there were a Tsync message in
the protocol, it would suffer the same problem.
Nine times out of ten it would be the wrong hammer.

Russ



^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: [9fans] 9p2k, fsync
@ 2001-02-07 19:14 jmk
  2001-02-08  1:02 ` Dan Cross
  0 siblings, 1 reply; 30+ messages in thread
From: jmk @ 2001-02-07 19:14 UTC (permalink / raw)
  To: 9fans


On Wed Feb  7 13:43:21 EST 2001, schwartz@bio.cse.psu.edu wrote:
> | Fsync etc. is at the wrong level.  The issue is not a system-wide
> | question, but a file-server question.
>
> So how does an application with an open fd assure that the write()s it
> has issued are really on disk?  It's impossible for that program to tell
> which file server you're using.  In fact, you might be using several,
> if they're stacked up.
>

I think you have to believe that when the fileserver replies to your
write that the data is written, just like you do when you say 'fsync';
whether the data is actually on some 'stable storage' is, in both
cases, not known.


^ permalink raw reply	[flat|nested] 30+ messages in thread
[parent not found: <rob@plan9.bell-labs.com>]
* [9fans] 9p2k, fsync
@ 2001-02-07  7:05 Scott Schwartz
  0 siblings, 0 replies; 30+ messages in thread
From: Scott Schwartz @ 2001-02-07  7:05 UTC (permalink / raw)
  To: 9fans

What sort of reliability guarantees will the new 9p offer?  In the past,
Plan 9 had no equivalent of fsync, and no assurance that any particular
operation was really committed to stable storage.



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

end of thread, other threads:[~2001-02-10  2:06 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-07 15:06 [9fans] 9p2k, fsync jmk
2001-02-07 18:16 ` Scott Schwartz
2001-02-09 17:15   ` Boyd Roberts
  -- strict thread matches above, loose matches on Subject: below --
2001-02-09  0:08 nemo
2001-02-09 18:37 ` Boyd Roberts
2001-02-08 22:27 forsyth
2001-02-09 18:43 ` Boyd Roberts
2001-02-09 21:37   ` Boyd Roberts
2001-02-08 17:46 Paul Taysom
2001-02-08 21:49 ` Dan Cross
2001-02-08 14:03 nemo
2001-02-08 12:50 Laura Creighton
2001-02-08 20:03 ` Dan Cross
2001-02-08  6:26 rob pike
2001-02-08  6:24 rob pike
2001-02-08 22:08 ` Dan Cross
2001-02-08  1:32 rob pike
2001-02-08  5:43 ` Dan Cross
2001-02-08  1:15 Russ Cox
2001-02-08  6:01 ` Dan Cross
2001-02-08  7:28   ` Nikolai Saoukh
2001-02-09 17:32 ` Boyd Roberts
2001-02-10  2:06   ` Dan Cross
2001-02-07 19:14 jmk
2001-02-08  1:02 ` Dan Cross
     [not found] <rob@plan9.bell-labs.com>
2001-02-07 15:23 ` rob pike
2001-02-07 18:42   ` Scott Schwartz
2001-02-08  1:19   ` Dan Cross
2001-02-08  9:43     ` Douglas A. Gwyn
2001-02-07  7:05 Scott Schwartz

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