collections: find why five IoError, Path and encoding programs allocate more with the 48 byte inline limit (follow-up of #566) #842

Open
opened 2026-11-16 22:04:35 +00:00 by orion · 3 comments
Collaborator

Observed

Five conformance programs allocate more blocks after #566 raised inlineSizeLimit from 32 to 48 than their budget from #529 allowed, so their .allocations files had to go up by 143 blocks in total:

program budget before allocated now
encoding-decode-errors 2104 2121
encoding-decode-problems 2151 2257
file-values 91 92
long-paths 93 101
non-ascii-paths 113 124

All five work with IoError, Path or the encoding problem records. The other 180 programs fell by 8570 blocks in total, so the net effect is -8427 blocks against the +8514 of #529, but the acceptance of #566 says no budget may rise above the value #529 set.

Expected

When the cause is isolated, either those five programs allocate no more than their #529 budget again, or each rise is a decided by the loop paragraph in docs/design/COLLECTION-STORAGE.md section 6 naming the value that is now copied or boxed and why that is right.

Notes

The probable cause, not proven: a value of 33 to 48 bytes that used to be a counted block (and so was shared by a count bump) is now copied inline, and a path that held it in a list or a result copies it where it used to retain it, and the copy owns a Text that is retained. Measure with the tier B log of the PR that closes #566 and compare the blocks of each of the five with the limit at 32 and at 48.

Requirements:

  • R1. When long-paths, non-ascii-paths, file-values, encoding-decode-errors and encoding-decode-problems run, the allocations of each source shall be attributed in a CI log.
  • R2. Where a source is avoidable in std/ or the lowering, the change shall remove it without a new native or syntax form.
## Observed Five conformance programs allocate more blocks after #566 raised `inlineSizeLimit` from 32 to 48 than their budget from #529 allowed, so their `.allocations` files had to go up by 143 blocks in total: | program | budget before | allocated now | |---|---|---| | encoding-decode-errors | 2104 | 2121 | | encoding-decode-problems | 2151 | 2257 | | file-values | 91 | 92 | | long-paths | 93 | 101 | | non-ascii-paths | 113 | 124 | All five work with `IoError`, `Path` or the encoding problem records. The other 180 programs fell by 8570 blocks in total, so the net effect is -8427 blocks against the +8514 of #529, but the acceptance of #566 says no budget may rise above the value #529 set. ## Expected When the cause is isolated, either those five programs allocate no more than their #529 budget again, or each rise is a `decided by the loop` paragraph in `docs/design/COLLECTION-STORAGE.md` section 6 naming the value that is now copied or boxed and why that is right. ## Notes The probable cause, not proven: a value of 33 to 48 bytes that used to be a counted block (and so was shared by a count bump) is now copied inline, and a path that held it in a list or a result copies it where it used to retain it, and the copy owns a `Text` that is retained. Measure with the tier B log of the PR that closes #566 and compare the blocks of each of the five with the limit at 32 and at 48. Requirements: - R1. When `long-paths`, `non-ascii-paths`, `file-values`, `encoding-decode-errors` and `encoding-decode-problems` run, the allocations of each source shall be attributed in a CI log. - R2. Where a source is avoidable in `std/` or the lowering, the change shall remove it without a new native or syntax form.
Author
Collaborator

[loop:torbscript] wait: the cause is measured against the limit of 48 bytes, which is in PR #841 (the PR that closes #566) and not yet on main; the tier B log of that PR is the measurement the issue asks for. Implementation starts when #841 is merged. next: waiting (PR #841 merge)

[loop:torbscript] wait: the cause is measured against the limit of 48 bytes, which is in PR #841 (the PR that closes #566) and not yet on main; the tier B log of that PR is the measurement the issue asks for. Implementation starts when #841 is merged. next: waiting (PR #841 merge)
Author
Collaborator

[loop:torbscript] parked: the cause can only be measured against the 48 byte inline limit, which lives in draft PR #841 (the PR that closes #566) and is not on main yet; a worker started now would have nothing to measure. Remove the label status/parked once #841 has landed, the item is ready again then (it keeps ready). next: waiting (PR #841 merge)

[loop:torbscript] parked: the cause can only be measured against the 48 byte inline limit, which lives in draft PR #841 (the PR that closes #566) and is not on main yet; a worker started now would have nothing to measure. Remove the label `status/parked` once #841 has landed, the item is ready again then (it keeps `ready`). next: waiting (PR #841 merge)
Author
Collaborator

PR #841 measured a sixth program above its #529 value: network-lookup allocates 46742 blocks with the limit at 48 (the #529 value was 46213, main holds 47365 because feat(dns) 11fe42c9 added 1152 on top, so the limit lowers main's budget by 623). The 529 above the #529 value cannot be split between the limit and the dns code without a probe, so it joins the scope of this issue: R1 covers the five programs above and network-lookup, compared with the dns commit alone at limit 32 and at 48.

PR #841 measured a sixth program above its #529 value: `network-lookup` allocates 46742 blocks with the limit at 48 (the #529 value was 46213, main holds 47365 because `feat(dns)` 11fe42c9 added 1152 on top, so the limit lowers main's budget by 623). The 529 above the #529 value cannot be split between the limit and the dns code without a probe, so it joins the scope of this issue: R1 covers the five programs above and `network-lookup`, compared with the dns commit alone at limit 32 and at 48.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
torbscript/language#842
No description provided.