shared crontab and ND caching

guy at gorodish.UUCP guy at gorodish.UUCP
Mon Feb 9 09:39:13 AEST 1987


>> shared crontab, I think the problem may be due to the caching in ND.

>Doesn't `sync' work?  There's a syscall sync() to flush the buffer
>cache, and there's a program /etc/sync which calls it.

Umm, err...  having a writable ND partition available to more than
one machine is an error.  Would you take a vanilla UNIX kernel, put
in a driver for a dual-ported disk, and have a file system writable
by one machine and accessible to another machine, and expect it to
work?  I thought not.  Think of an ND partition as residing on a
multi-ported disk; it was not intended to be used in this fashion,
and has no "cache invalidate" operation to enable an ND client to
invalidate other ND clients' caches, so in that sense you still have
a vanilla UNIX kernel.

If you do a "sync" on a machine that has the disk mounted read-only,
it does nothing for you.  If you do it on a machine that has it
mounted read-write, it will push any unwritten blocks to the disk but
will *NOT* invalidate any copies of those blocks in any other
machine's cache.



More information about the Comp.unix.questions mailing list