abandon streaming experiment
for queue like non-seekable files, it is impossible to implement an exportfs because one has to run the kernels devtab read() and write() in separate processes, and that makes it impossible to maintain 9p message order as the scheduler can come in and randomly schedule one process before another. so as soon as we have a transition from 9p -> syscalls, we'r screwed. i currently see just two possibilities: - introduce special file type like QTSEQ with strictly ordered i/o semantics - fix all fileservers and exportfs to only do one outstanding i/o to QTSEQ files which means maintaining a queue per fid this doesnt propagate. so exporting slow 9p mount again will be limited again by latency of the inner mount. other option: - return offset in Rread, so client can bring responses back into order. this requires changing all fileservers and drivers to maintain such an per fid offset and change the protocol to include it in the response, and also pass it to userspace (new syscalls or pass it in TOS) this only works for read pipelining, write is still screwed. both options suck. -- cinap
This commit is contained in:
parent
5aaa7240a2
commit
a2be120ea9
4 changed files with 0 additions and 610 deletions
|
@ -127,19 +127,6 @@ copy(char *from, char *to, int todir)
|
|||
if(buflen <= 0)
|
||||
buflen = DEFB;
|
||||
|
||||
if(dirb->length/2 > buflen){
|
||||
char nam[32];
|
||||
|
||||
snprint(nam, sizeof nam, "/fd/%dstream", fdf);
|
||||
fds = open(nam, OREAD);
|
||||
if(fds >= 0){
|
||||
close(fdf);
|
||||
fdf = fds;
|
||||
}
|
||||
snprint(nam, sizeof nam, "/fd/%dstream", fdt);
|
||||
fds = open(nam, OWRITE);
|
||||
}
|
||||
|
||||
if(copy1(fdf, fds < 0 ? fdt : fds, from, to)==0){
|
||||
if(fds >= 0 && write(fds, "", 0) < 0){
|
||||
fprint(2, "cp: error writing %s: %r\n", to);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue