The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] Illumos )
@ 2014-12-31  6:22 Larry McVoy
  2014-12-31  9:28 ` Wesley Parish
  2014-12-31  9:46 ` [TUHS] Illumos ) arnold
  0 siblings, 2 replies; 27+ messages in thread
From: Larry McVoy @ 2014-12-31  6:22 UTC (permalink / raw)


Yo Jacob,

I'm ex-sun but I don't know too much about Illumos.   Care to give us 
the summary of why I might care about it?

On Wed, Dec 31, 2014 at 01:16:00AM -0500, Jacob Ritorto wrote:
> Hey, thanks, Derrik.
>   I don't mess with Linux much (kind of an Illumos junkie by trade ;), but
> I bet gcc would.  I did out of curiosity do it with the Macintosh cc (Apple
> LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)) and it throws
> warnings about our not type-defining functions because you're apparently
> supposed to do this explicitly these days, but it dutifully goes on to
> assume int and compiles our test K&R stuff mostly fine.  It does
> unfortunately balk pretty badly at the naked returns we initially had,
> though.  Wish it didn't because it strikes me as being beautifully simple..
> 
> thx again for the encouragement!
> jake
> 
> 
> On Wed, Dec 31, 2014 at 1:02 AM, Derrik Walker v2.0 <dwalker at doomd.net>
> wrote:
> 
> > On Wed, 2014-12-31 at 00:44 -0500, Jacob Ritorto wrote:
> >
> > >
> > > P.S. if anyone's bored enough, you can check out what we're up to at
> > > https://github.com/srphtygr/dhb.  I'm trying to get my 11yo kid to
> > > spend a little time programming rather than just playing video games
> > > when he's near a computer.  He'a actually getting through this stuff
> > > and is honestly interested when he understands it and sees it work --
> > > and he even spotted a bug before me this afternoon!  Feel free to
> > > raise issues, pull requests, etc. if you like -- I'm putting him
> > > through the git committing and pair programming paces, so outside
> > > interaction would be kinda fun :)
> > >
> > >
> > > P.P.S.  We're actually using 2.11bsd after all..
> > >
> > I'm curious, will gcc on a modern Linux system compile K&R c?
> >
> > Maybe when I get a little time, I might try to see if I can compile it
> > on a modern Fedora 21 system with gcc.
> >
> > BTW: Great job introducing him to such a classic environment. A few
> > years ago, my now 18 year old had expressed some interest in graphics
> > programming and was in awe over an SGI O2 I had at the time, so I got
> > him an Indy.  He played around with a bit of programming, but
> > unfortunately, he lost interest.
> >
> > - Derrik
> >
> >
> > _______________________________________________
> > TUHS mailing list
> > TUHS at minnie.tuhs.org
> > https://minnie.tuhs.org/mailman/listinfo/tuhs
> >

> _______________________________________________
> TUHS mailing list
> TUHS at minnie.tuhs.org
> https://minnie.tuhs.org/mailman/listinfo/tuhs


-- 
---
Larry McVoy            	     lm at mcvoy.com             http://www.mcvoy.com/lm 



^ permalink raw reply	[flat|nested] 27+ messages in thread
* [TUHS] sync; sync; sync; halt (was: Re: Illumos ))
@ 2015-01-16 12:33 Noel Chiappa
  0 siblings, 0 replies; 27+ messages in thread
From: Noel Chiappa @ 2015-01-16 12:33 UTC (permalink / raw)


    > From: Tom Ivar Helbekkmo

    > There was no fancy I/O order juggling, so everything was written in the
    > same chronological order as it was scheduled.
    > ...
    > What this means is that the second sync, by waiting for its own
    > superblock writes, will wait until all the inode and file data flushes
    > scheduled by the first one have completed.

Ah, I'm not sure this is correct. Not all disk drivers handled requests in a
'first-come, first-served' order (i.e. where a request for block X, which was
scheduled before a request for block Y, actually happened before the
operation on block Y). It all depends on the particular driver; some drivers
(e.g. the RP driver) re-organized the waiting request queue to optimize head
motion, using a so-called 'elevator algorithm'.

(PS: For a good time, do "dd if=/dev/[large_partition] of=/dev/null" on a
running system with such a disk, and a lot of users on - the system will
apparently come to a screeching halt while the 'up' pass on the disk
completes... I found this out the hard way, needless to say! :-)

Since the root block is block 1 in the partition, one might think that even
with an elevator algorithm, this would tend to guarantee that doing it would
more or less guarantee that all other pending operations would have completed
(since it could only happen at the end of 'down' pass); _but_ the elevator
algorithm is in terms of actual physical block numbers, so blocks in another
lower partition might still remain to be written.

But now that I think about it a bit, if such blocks existed, that partition's
super-block would also need to be written, so when that one completed, the
disk queue would be empty.

But the point remains - because there's no guarantee of _overall_ disk
operation ordering in V6, scheduling a disk request and waiting for it to
complete does not guarantee that all previously-requested disk operations
will have completed before it does.


I really think the whole triple-sync thing is mythology. Look through the V6
documentation and although IIRC there are instructions on how to shut the
system down, it's not mentioned. We certainly never used it at MIT (and I
still don't), and I've never seen a problem with disk corruption _when the
system was deliberately shut down_.

	Noel



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

end of thread, other threads:[~2015-01-16 14:14 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-31  6:22 [TUHS] Illumos ) Larry McVoy
2014-12-31  9:28 ` Wesley Parish
2014-12-31 13:13   ` John Cowan
2014-12-31 17:42     ` Diomidis Spinellis
2014-12-31 20:32       ` Clem Cole
2014-12-31 20:36         ` Larry McVoy
2014-12-31 22:19           ` Jacob Ritorto
2014-12-31 22:42             ` Larry McVoy
2014-12-31 22:50               ` Larry McVoy
2015-01-01  1:17                 ` Larry McVoy
2015-01-01  1:34                   ` Erik E. Fair
2015-01-05 12:02               ` Tim Bradshaw
2015-01-05 17:04                 ` Jacob Ritorto
2015-01-06  4:54                   ` Andy Kosela
2015-01-06 11:10                     ` Kurt H Maier
2015-01-06 15:37                   ` Tim Bradshaw
2015-01-09  9:23                     ` Jose R. Valverde
2015-01-06 21:58                   ` Clem Cole
2015-01-06 22:02                     ` [TUHS] pre-FSCK days Ronald Natalie
2015-01-07  1:53                     ` [TUHS] Illumos ) Dave Horsfall
2015-01-07 16:26                       ` Clem Cole
2015-01-07 18:32                         ` scj
2015-01-16  8:40                       ` [TUHS] sync; sync; sync; halt (was: Re: Illumos )) Tom Ivar Helbekkmo
2015-01-16 13:39                         ` random832
2015-01-16 14:14                           ` Brantley Coile
2014-12-31  9:46 ` [TUHS] Illumos ) arnold
2015-01-16 12:33 [TUHS] sync; sync; sync; halt (was: Re: Illumos )) Noel Chiappa

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