Skip to content

0.18.0 --- openkal 0.20: transfers at an offset, openkal.region, a program's and a unit's memory, a supervised limit - #36

Merged
Sunrisepeak merged 3 commits into
mainfrom
openkal-0.20
Nov 1, 2026
Merged

Sunrisepeak merged 3 commits into
mainfrom
openkal-0.20

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Implements openkal 0.20 (mcpplibs/openkal#58). See the commit message and README 'What 0.18 adds'.

Sunrisepeak and others added 3 commits November 2, 2026 02:54
…ogram's and a unit's memory, a supervised limit

- kal_fs_read_at and kal_fs_write_at are pread and pwrite.
- openkal.region over mmap: KAL_REGION_PROP_OVERCOMMIT; a part's backing returned by a fresh fixed anonymous mapping (it then reads as zero), discarded by madvise(MADV_FREE).
- KAL_PINFO_MEMORY is the footprint (proc_pid_rusage RUSAGE_INFO_V4: ri_phys_footprint, ri_lifetime_max_phys_footprint); kal_process_wait waits without collecting (waitid WNOWAIT) and kal_process_close collects, so an ended program's peak remains readable while its handle is held.
- kal_process_job_usage sums the footprints of the process group's members (proc_listpgrppids). kal_process_job_limit is supervised (500/200/100 ms) and ends the group with SIGKILL; kal_process_wait reports KAL_TERMINATED_LIMIT.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…rogram's group is not reported reliably once it has ended

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
@Sunrisepeak
Sunrisepeak merged commit b567361 into main Nov 1, 2026
2 checks passed
@Sunrisepeak
Sunrisepeak deleted the openkal-0.20 branch November 1, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant