[TUHS] Antoni Sawicki reports Locus (AIX PS/2 TCF) working on pair of emulated 486s
Kevin Bowling via TUHS
tuhs at tuhs.org
Sun Nov 22 03:04:25 AEST 2026
On Fri, Nov 20, 2026 at 7:34 PM Larry McVoy via TUHS <tuhs at tuhs.org> wrote:
>
> Some general comments. vproc, like vnode, was a pretty cool concept. I was
> a fan of this sort of thinking long before I knew of this work.
>
> Why? Because I hated large scale multi threading. I went through the start
> of that at Sun and then saw it even more at SGI. It's little stuff that
> starts to add up. SGI rearranged all their struct entries so that the ones
> that got used the most were right next to each other so if you faulted on
> one you might get the other.
>
> I *hated* that. It made cache lines the most important thing. I've always
> liked looking at the data structures, if they are layed out well, you can
> see what people are thinking, what makes sense. When you start putting
> stuff next to each other for cache lines, you start to erode what makes
> sense.
>
> And the fine grained locking. Oof. I really wanted data structure
> locking, imagine you could do
>
> struct some_name _needs_locking {
> whatever
> }
One way I see this done is with arbitrary internal concurrency
control: an accessor/mutator function:
function do_something_some_name_locked (and possibly a paired function
do_something some_name, maybe private)
Alas, none of this addresses your concern about data structure layout.
Linux has a tool called 'pahole' that at least automates part of hole
optimization. Modern LLMs are quite good at this, running userspace
trials to meet a performance goal. But I've not seen or heard of
letting the struct have some natural text layout and then getting it
put down in an optimized binary layout.
> and the locking was just built into the struct. If you have done
> threading work, you know this doesn't scale at all. Locking at the
> item level doesn't work when you need locking at the linked list level.
> But I have always imagined a world where stuff like this would work well
> enough and you did the rest through Locus clusters.
You can actually achieve record locking with safe memory reclamation,
which scales much better than traditional locking. It's a complicated
topic, so to hand wave a bit, you amoritize all those classic
lock/unlocks by defering unsafe operations. I'm proud of the epoch(9)
system we pushed into the FreeBSD network stack at a previous job and
Jeff Roberson turned that into something much more elegant:
https://people.kernel.org/joelfernandes/gus-vs-rcu.
>
> I started BitMover, all those years ago, to try and do clusters. I wanted
> what Locus did, or what I think it did. I wanted coarse grained SMP where
> it wasn't so fine grained nuts, it was just we'll put a few locks in and
> get it to scale to maybe 4 cpus, maybe 8, probably not 8. Then you do
> the cluster thing and get that to scale to orders of magnitude better.
>
> I didn't get what I wanted, yeah, we got clusters but they are just a
> bunch machines sort of loosely connected, nothing like the Locus work.
I saw that someone did your thing recently: https://multikernel.io/
> It's one of my great regrets that this work didn't take off like the
> vnode work took off. We could be living in a very different world,
> imagine that this got put back into Unix and lots of people worked
> on it.
>
> On Mon, Nov 16, 2026 at 06:06:32PM -0500, Clem Cole via TUHS wrote:
> > below
> >
> > On Sun, Nov 15, 2026 at 11:24???PM Charles H. Sauer via TUHS <tuhs at tuhs.org>
> > wrote:
> >
> > > From
> > > https://virtuallyfun.com/2026/11/15/aix-ps-2-1-3-on-qemu-w-x11-and-networking/
> > > :
> > >
> > Wonderful == what great memories.
> >
> > >
> > > "TCF (Transparent Computing Facility) is the single system image that
> > > Locus built for AIX PS/2 and AIX/370: several machines work as one Unix
> > > system, with one file tree and processes that can run on, or move to, any
> > > of them.
> > >
> > In case it wasn't clear, the 370s and PS/2 were in the same cluster, and if
> > you had a binary that required specific hardware, TCF would ensure that it
> > ran on a node that had it.
> >
> >
> > > "TCF works! Two LEMU VMs as one Locus TCF cluster: [screenshot]
> > >
> > Yep -- it does. Next trick: get AIX/370 running on Hercules and add it to
> > the cluster.
> >
> > BTW, a cool party trick we taught the sales folks to do at trade shows.
> > Have a pair of PS/2s in the booth as part of a cluster, boot a third into
> > DOS, and clear its disks. Put the AIX PS/2 boot floppy in and reboot, and
> > tell it join the cluster. After joining, its disk would slowly be
> > replicated so it no longer had to reach across the network to get binaries
> > for an exec.
> >
> > >
> > > "X11 from another node! From site 1, TCF???s on aixps2b runs X apps on site
> > > 2, with no rsh and no login. X11 shows their windows back on site 1:
> > > [screenshot]
> > >
> > > "What I couldn???t do: find IBM???s TCF commands (clusterstart and friends),
> > > which came as a separate install, so I wrote small stand-ins."
> > >
> > I can't help with the original IBM commands, as I never worked on or had
> > access to that codebase, but assuming I can read an old 4mm TNC tape, I
> > might have newer versions of similar functions [Roman and I were carefully
> > firewalled from Bruce and the IBM team. We could share architecture and
> > debated ideas, but we were trying to be very careful with what IBM owned
> > and what LCC owned, and the source trees lived on different computers at
> > different sites].
> >
> > So anything I find would have to be backported to TCF, which used different
> > data structures and core kernel integration [*i.e*., TCF was embedded
> > throughout the AIX kernel (which ISTR was mostly a BSD-like system); while
> > TNC was based on vproc, which did to the kernel and process technology what
> > vfs did for file systems; we had gotten smarter by then]. If TCF was
> > 'Version 2' of Gerry's 'Locus' vision that he started at UCLA on the
> > PDP-11/70 and later Vaxen, TNC was 'Version 3.'
> >
> >
> > Clem
>
> --
> ---
> Larry McVoy Retired to fishing http://www.mcvoy.com/lm/boat
More information about the TUHS
mailing list