* Need help with DFS
@ 1994-12-22 9:18 Ngoc-Minh Le
1994-12-22 13:21 ` Carl Burnett
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ngoc-Minh Le @ 1994-12-22 9:18 UTC (permalink / raw)
Hello,
Does anyone know if it is possible in DFS for two
clients to open for read/write the same file and
then concurrently write at disjoint areas of the
file?
Many thanks for your help.
-- Minh --
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Need help with DFS 1994-12-22 9:18 Need help with DFS Ngoc-Minh Le @ 1994-12-22 13:21 ` Carl Burnett 1994-12-22 15:11 ` Hal Lockhart 1994-12-28 21:12 ` Bruce_Leverett 2 siblings, 0 replies; 4+ messages in thread From: Carl Burnett @ 1994-12-22 13:21 UTC (permalink / raw) Minh, Yes two clients can write to disjoint areas of a file concurrently, if the writes are not in the same "chunk" of the file. DFS clients obtain data tokens on "chunk" boundries. The default chunk size for a DFS client is 64K bytes. The chunk size is configurable from 8K to 256K. So for example if both clients are configured with an 8K chunksize, then they can concurrently write to a file if the writes are in different 8K regions of the file. See the dfsd man page for how to change the chunksize. Carl Burnett p.s. I assume by concurrently you mean that the write by one client to a region of a file does not result in cache invalidation of the disjoint region at the second client. In other words no token revocation. ================================================== In article <3dbg9q$mrg@ilex.fernuni-hagen.de>, le@fernuni-hagen.de (Ngoc-Minh Le) writes: > Hello, > > Does anyone know if it is possible in DFS for two > clients to open for read/write the same file and > then concurrently write at disjoint areas of the > file? > > Many thanks for your help. > > -- Minh -- ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Need help with DFS 1994-12-22 9:18 Need help with DFS Ngoc-Minh Le 1994-12-22 13:21 ` Carl Burnett @ 1994-12-22 15:11 ` Hal Lockhart 1994-12-28 21:12 ` Bruce_Leverett 2 siblings, 0 replies; 4+ messages in thread From: Hal Lockhart @ 1994-12-22 15:11 UTC (permalink / raw) Ngoc-Minh Le (le@fernuni-hagen.de) wrote: : Does anyone know if it is possible in DFS for two : clients to open for read/write the same file and : then concurrently write at disjoint areas of the : file? Yes, DFS supports full POSIX.1 semantics. Concurrent access is managed by means of a token protocol. Regards, Hal ==================================================================== Harold W. Lockhart Onsett International Corporation Principal Consultant One Memorial Drive Hal.Lockhart@Onsett.com Cambridge, MA 02142 Voice (617)577-9130 USA Direct (617)577-9196 x208 Fax (617)577-9187 ==================================================================== ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Need help with DFS 1994-12-22 9:18 Need help with DFS Ngoc-Minh Le 1994-12-22 13:21 ` Carl Burnett 1994-12-22 15:11 ` Hal Lockhart @ 1994-12-28 21:12 ` Bruce_Leverett 2 siblings, 0 replies; 4+ messages in thread From: Bruce_Leverett @ 1994-12-28 21:12 UTC (permalink / raw) >Does anyone know if it is possible in DFS for two >clients to open for read/write the same file and >then concurrently write at disjoint areas of the >file? Two clients can open for read/write the same file, and then concurrently write at any area of the file. All data written by either client will be immediately visible to the other client, until it is overwritten. These semantics are supported, whether or not the clients are writing to disjoint "areas". These semantics are identical to those supported by Unix file systems on single-processor systems. In the DFS implementation of these semantics, the file is divided into "chunks",and the default size of a chunk is 64K bytes. When a client first accesses a chunk, it asks the server, and the server sends it the data, along with a "token", which is a promise that the client can read or modify the data. If two clients are concurrently accessing the same "chunk", the chunk's data and the corresponding tokens will be passed back and forth along the network from one client to the server, then to the other client, then back to the server, and so on. If this happens frequently, the performance of the system may be unsatisfactory. Nevertheless, the correct semantics are preserved, as described above. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1994-12-28 21:12 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1994-12-22 9:18 Need help with DFS Ngoc-Minh Le 1994-12-22 13:21 ` Carl Burnett 1994-12-22 15:11 ` Hal Lockhart 1994-12-28 21:12 ` Bruce_Leverett
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox