<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/bench/README.md, branch fix/zos-script-charset</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=fix%2Fzos-script-charset</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=fix%2Fzos-script-charset'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-25T06:06:46Z</updated>
<entry>
<title>build: make the 64-bit z/OS build the default</title>
<updated>2026-11-25T06:06:46Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T06:06:46Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=b786aac5c1578a5e87c42db8273e13af09ab5ef7'/>
<id>urn:sha1:b786aac5c1578a5e87c42db8273e13af09ab5ef7</id>
<content type='text'>
zash is built 64-bit on z/OS now: -m64 for the ASCII and the EBCDIC
build and for the debug build, and `make` as well as `make zash` land
on zos-ascii there. The 31-bit build existed for the 64-bit start and
fork costs, which were the C run-time being loaded out of the linklist;
with CELQ* in the LPA the widths measure the same and the shell is
built at the width IBM builds for.

The catalog and dynamic-allocation modules are AMODE 31 and OS_UPSTACK
does not exist at -m64, so both are declared with plain OS linkage,
which is the 64-bit glue for an AMODE 31 callee. Neither module is
installed on the test system, so that path is unverified there;
csi_call() still catches a program check and retires the catalog.
IGGCSI00's VL bit comes from the width of a pointer, not 0x80000000.

Documentation follows: README gains a Recommendations section for the
LPA change and loses the 31-bit rationale; DESIGN.md's cost model,
catalog linkage and open questions match the measurements; bench/README
states the current width and the rerun numbers; investigation.md
records the decision.
</content>
</entry>
<entry>
<title>docs: name the system by release, not by its hostname</title>
<updated>2026-11-25T05:14:17Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T05:14:17Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=44252281ec0044cc816f0b3c384e35cfe5dd8469'/>
<id>urn:sha1:44252281ec0044cc816f0b3c384e35cfe5dd8469</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bench: the 64-bit start-up cost was the runtime not being in the LPA (#20)</title>
<updated>2026-11-25T04:29:48Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T04:29:48Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=98f0bc024df92868d04fc42313dd034f3968c511'/>
<id>urn:sha1:98f0bc024df92868d04fc42313dd034f3968c511</id>
<content type='text'>
Adding the CELQ members of CEE.SCEERUN2 to the dynamic LPA takes a
trivial 64-bit start from 5.83 ms to 1.63 ms, the fork() cost from
4.20 ms to 0.10 ms, and /bin/zsh from 31.4 ms to 3.6 ms.  The 27x
ratio this repo has been explaining since PR #15 was a system not
following IBM's own advice for the 64-bit runtime.</content>
</entry>
<entry>
<title>bench: keep the start-up and fork probes in bench/probes</title>
<updated>2026-11-25T03:31:20Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T03:31:20Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=582a3ec37a96d6797e8b64039f5b6d43490997fc'/>
<id>urn:sha1:582a3ec37a96d6797e8b64039f5b6d43490997fc</id>
<content type='text'>
The probe sources only existed inline in the docs and in a scratch
directory on the z/OS box, so the numbers in bench/README.md could not be
reproduced from the repository.  fk3.c (fork cost against parent storage),
tiny.c (start-up cost) and the HLASM pair tiny31.s/tiny64.s (start-up with
no C runtime) now live in bench/probes/, with run.sh building and timing
them at both widths; the docs point at them instead of repeating them.
</content>
</entry>
<entry>
<title>Measure why 64-bit start-up is slow, and record the answer (#16)</title>
<updated>2026-11-25T01:52:27Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T01:52:27Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=c0e48819c3077ccc020deb8b9ffe9de9911ab3d2'/>
<id>urn:sha1:c0e48819c3077ccc020deb8b9ffe9de9911ab3d2</id>
<content type='text'>
* bench: time one start with a parent that is not an LE program

`bench/startup.sh` times a shell loop, so on z/OS every child pays the
31-bit shell's own price and the 64-bit start-up cost cannot be
separated from it.  `tests/tools/spawn` forks one child at a time and
reports wall and child CPU per start, and `bench/le-init.sh` builds the
31-bit, 64-bit and HLASM programs it times in a work directory, so the
table needs nothing checked in but the script.

The child's environment is built by hand and passed to `execve`:
`putenv` after LE has initialized is not handed to the child, and
`_CEE_RUNOPTS` exported to an LE parent makes that parent's `execl`
fail, which a fork loop that does not check exit status reports as a
fast start.

* notes: the 64-bit start-up cost is LE waiting, not the address mode

Measured on the CBT z/OS 29.00 system: a 64-bit HLASM program with no
LE starts in 1.39 ms, the same source at -m32 in 1.5-1.8 ms, so the
address space, the loader and XPLINK are free.  A -m64 start spends
4.5-28 ms before the first instruction of main, of which only 1.0-1.25
ms is charged to the child: the rest is wall time on something shared,
which does not overlap between concurrent starts while it is at 28 ms
and does once it drops to 5.8 ms.  No _CEE_RUNOPTS option moves it.

That retracts an earlier POSIX(OFF) result in these notes: exporting the
option to an LE parent makes its execl fail, so the run timed failed
execs.  Applied to the child, POSIX(OFF) changes nothing.</content>
</entry>
<entry>
<title>bench: start-up table in the README, measured on z/OS and Linux</title>
<updated>2026-11-24T22:33:56Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T22:33:56Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=fab8fa703c8297b6d3d76583ab65b776cd4cb393'/>
<id>urn:sha1:fab8fa703c8297b6d3d76583ab65b776cd4cb393</id>
<content type='text'>
bench/startup.sh had to exist before the README could stop saying the
number was missing.  On z/OS zash starts in 1.33 ms against 2.20 ms for
/bin/sh and 31.4 ms for zsh.
</content>
</entry>
<entry>
<title>docs: humanize the markdown docs</title>
<updated>2026-11-24T17:52:12Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T17:52:12Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=2b257338481007b88331ae445b26ff99bdbf8977'/>
<id>urn:sha1:2b257338481007b88331ae445b26ff99bdbf8977</id>
<content type='text'>
Plain sentences where the prose had decorative bold lead-ins, em dashes
and one-line closers. Claims, numbers and commands are unchanged, except
two corrections that the startup probe settled: README said the remaining
z/OS gap was the price of the address mode, and DESIGN's open question on
`a | b &amp;` said the gain depended on the address mode. Both are the 64-bit
C run-time, not the address mode.
</content>
</entry>
<entry>
<title>docs: keep the probe write-up in notes/investigation.md</title>
<updated>2026-11-24T17:39:53Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T17:39:53Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=d60ce596e6f4ecd62ada6be0916caea22c75e0a8'/>
<id>urn:sha1:d60ce596e6f4ecd62ada6be0916caea22c75e0a8</id>
<content type='text'>
The assembler-vs-C experiment, its method and the questions it leaves
open get a tracked home outside the generated docs/ tree; bench/README
keeps the result table and points there.
</content>
</entry>
<entry>
<title>docs: the 64-bit start-up cost is LE, not the address mode</title>
<updated>2026-11-24T17:34:17Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T17:34:17Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=3dbb5a19db60fa2bb681a5a3158b8dc91be40964'/>
<id>urn:sha1:3dbb5a19db60fa2bb681a5a3158b8dc91be40964</id>
<content type='text'>
An AMODE 64 HLASM program that returns 0 without any C run-time starts
in 0.8 ms, the same as the AMODE 31 copy, while the same empty program
in C costs 29.4 ms at -m64 and 2.0 ms at -m32. So the 28 ms is Language
Environment's 64-bit initialization, not the address space, and the
31-bit LE start is about 1 ms. Records the probe and corrects the
claims in bench/README.md and DESIGN.md.
</content>
</entry>
<entry>
<title>bench: name the baseline shell /bin/sh, not ksh88, in prose</title>
<updated>2026-11-23T21:03:33Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-23T21:03:33Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=ecfa5223f8f28890283a7dbf76f9c6f7dcafc918'/>
<id>urn:sha1:ecfa5223f8f28890283a7dbf76f9c6f7dcafc918</id>
<content type='text'>
</content>
</entry>
</feed>
