Skip to content

Bench 300 status - #11

Merged
jamesrut1996 merged 2 commits into
mainfrom
bench-300-status
Nov 13, 2026
Merged

jamesrut1996 merged 2 commits into
mainfrom
bench-300-status

Conversation

@jamesrut1996

Copy link
Copy Markdown
Contributor

Adding status function for a snapshot of the current state of our parallelisation framework

  • can check the status of the framework with .primary.showstatus[]
  • restart logic not in yet but will be added next so it is currently 0

Testing

q).primary.showstatus[]
== primary status 2026.11.13D13:50:42.178724577  uptime 0D00:01:02.758172824 ==
memory: 17MB in use, 4096MB cap, 4079MB headroom
dispatch: running, paused 0 times for 0D00:00:00.000000000
secondaries: 8 free, 0 busy, 0 stale, 0 closed
id pid     status spawned task memmb restarts lastseen    
----------------------------------------------------------
1  3775257 free   1            1.9   0        00:00:00.011
2  3775261 free   1            1.9   0        00:00:00.008
3  3775265 free   1            1.9   0        00:00:00.202
4  3775269 free   1            1.9   0        00:00:00.196
5  3775273 free   1            1.9   0        00:00:00.592
6  3775278 free   1            1.9   0        00:00:00.187
7  3775284 free   1            1.9   0        00:00:00.881
8  3775289 free   1            1.9   0        00:00:00.877
tasks: 0 queued, 0 dispatched, 0 running, 0 done, 0 failed

q).primary.newtask ([tasktype:`sumtil; args:1000])
...
.primary.newtask ([tasktype:`fail; args:1])
...
.primary.showstatus[]
== primary status 2026.11.13D13:51:09.408361778  uptime 0D00:01:29.987809969 ==
memory: 17MB in use, 4096MB cap, 4079MB headroom
dispatch: running, paused 0 times for 0D00:00:00.000000000
secondaries: 8 free, 0 busy, 0 stale, 0 closed
id pid     status spawned task memmb restarts lastseen    
----------------------------------------------------------
1  3775257 free   1            2.1   0        00:00:00.641
2  3775261 free   1            1.9   0        00:00:00.837
3  3775265 free   1            1.9   0        00:00:00.132
4  3775269 free   1            1.9   0        00:00:00.626
5  3775273 free   1            1.9   0        00:00:00.122
6  3775278 free   1            1.9   0        00:00:00.017
7  3775284 free   1            1.9   0        00:00:00.410
8  3775289 free   1            1.9   0        00:00:00.306
tasks: 0 queued, 0 dispatched, 0 running, 1 done, 1 failed

// changing the mem cap
q).primary.memcap:1 
q)2026.11.13D13:51:19.026821869 warn PID[3775245] HOST[homer.aquaq.co.uk] pausing dispatch: memory 17MB is over the cap of 0MB
.primary.showstatus[]   
== primary status 2026.11.13D13:51:26.890423584  uptime 0D00:01:47.469872258 ==
memory: 18MB in use, 0MB cap, -18MB headroom
dispatch: PAUSED (memory over the cap) since 2026.11.13D13:51:19.026753869, paused 1 times for 0D00:00:07.863642320
secondaries: 8 free, 0 busy, 0 stale, 0 closed
id pid     status spawned task memmb restarts lastseen    
----------------------------------------------------------
1  3775257 free   1            2.1   0        00:00:00.222
2  3775261 free   1            1.9   0        00:00:00.219
3  3775265 free   1            1.9   0        00:00:00.514
4  3775269 free   1            1.9   0        00:00:00.307
5  3775273 free   1            1.9   0        00:00:00.704
6  3775278 free   1            1.9   0        00:00:00.499
7  3775284 free   1            1.9   0        00:00:00.693
8  3775289 free   1            1.9   0        00:00:00.688
tasks: 0 queued, 0 dispatched, 0 running, 1 done, 1 failed
q).primary.memcap:"J"$getenv`GLOBAL_MEM_LIMIT
q)2026.11.13D13:51:37.015116148 info PID[3775245] HOST[homer.aquaq.co.uk] resuming dispatch: memory 18MB is under the cap of 4096MB, was paused for 0D00:00:17.988258106
.primary.showstatus[]   
== primary status 2026.11.13D13:51:38.811366154  uptime 0D00:01:59.390814265 ==
memory: 18MB in use, 4096MB cap, 4078MB headroom
dispatch: running, paused 1 times for 0D00:00:17.988253647
secondaries: 8 free, 0 busy, 0 stale, 0 closed
id pid     status spawned task memmb restarts lastseen    
----------------------------------------------------------
1  3775257 free   1            2.1   0        00:00:00.444
2  3775261 free   1            1.9   0        00:00:00.441
3  3775265 free   1            1.9   0        00:00:00.635
4  3775269 free   1            1.9   0        00:00:00.429
5  3775273 free   1            1.9   0        00:00:01.025
6  3775278 free   1            1.9   0        00:00:00.719
7  3775284 free   1            1.9   0        00:00:00.014
8  3775289 free   1            1.9   0        00:00:01.009
tasks: 0 queued, 0 dispatched, 0 running, 1 done, 1 failed
q).primary.memcap:0N
q).primary.showstatus[]  
== primary status 2026.11.13D13:51:50.845001771  uptime 0D00:02:11.424450076 ==
memory: 18MB in use, no cap
dispatch: running, paused 1 times for 0D00:00:17.988253647
secondaries: 8 free, 0 busy, 0 stale, 0 closed
id pid     status spawned task memmb restarts lastseen    
----------------------------------------------------------
1  3775257 free   1            2.1   0        00:00:00.777
2  3775261 free   1            1.9   0        00:00:00.872
3  3775265 free   1            1.9   0        00:00:00.868
4  3775269 free   1            1.9   0        00:00:00.961
5  3775273 free   1            1.9   0        00:00:00.259
6  3775278 free   1            1.9   0        00:00:01.053
7  3775284 free   1            1.9   0        00:00:00.446
8  3775289 free   1            1.9   0        00:00:00.044
tasks: 0 queued, 0 dispatched, 0 running, 1 done, 1 failed
q).primary.memcap:"J"$getenv`GLOBAL_MEM_LIMIT
q)\kill -STOP 3775257  
q)2026.11.13D13:52:31.015190342 warn PID[3775245] HOST[homer.aquaq.co.uk] no heartbeat from secondary 1
.primary.showstatus[]  
== primary status 2026.11.13D13:52:34.435119977  uptime 0D00:02:55.014568200 ==
memory: 18MB in use, 4096MB cap, 4078MB headroom
dispatch: running, paused 1 times for 0D00:00:17.988253647
secondaries: 7 free, 0 busy, 1 stale, 0 closed
id pid     status spawned task memmb restarts lastseen    
----------------------------------------------------------
1  3775257 stale  1            2.1   0        00:00:09.367
2  3775261 free   1            1.9   0        00:00:00.863
3  3775265 free   1            1.9   0        00:00:00.760
4  3775269 free   1            1.9   0        00:00:00.052
5  3775273 free   1            1.9   0        00:00:00.150
6  3775278 free   1            1.9   0        00:00:01.043
7  3775284 free   1            1.9   0        00:00:00.137
8  3775289 free   1            1.9   0        00:00:00.033
tasks: 0 queued, 0 dispatched, 0 running, 1 done, 1 failed
q)\kill -CONT  3775257  
q).primary.showstatus[]  
== primary status 2026.11.13D13:52:48.451850862  uptime 0D00:03:09.031299197 ==
memory: 18MB in use, 4096MB cap, 4078MB headroom
dispatch: running, paused 1 times for 0D00:00:17.988253647
secondaries: 8 free, 0 busy, 0 stale, 0 closed
id pid     status spawned task memmb restarts lastseen    
----------------------------------------------------------
1  3775257 free   1            2.1   0        00:00:00.384
2  3775261 free   1            1.9   0        00:00:00.880
3  3775265 free   1            1.9   0        00:00:00.776
4  3775269 free   1            1.9   0        00:00:00.269
5  3775273 free   1            1.9   0        00:00:00.366
6  3775278 free   1            1.9   0        00:00:00.060
7  3775284 free   1            1.9   0        00:00:00.453
8  3775289 free   1            1.9   0        00:00:00.349
tasks: 0 queued, 0 dispatched, 0 running, 1 done, 1 failed
q)\kill -9  3775257  
q)2026.11.13D13:52:56.711305614 info PID[3775245] HOST[homer.aquaq.co.uk] secondary 1 has closed its connection to the primary

q).primary.showstatus[]  
== primary status 2026.11.13D13:53:00.576628666  uptime 0D00:03:21.156076923 ==
memory: 16MB in use, 4096MB cap, 4080MB headroom
dispatch: running, paused 1 times for 0D00:00:17.988253647
secondaries: 7 free, 0 busy, 0 stale, 1 closed
id pid     status spawned task memmb restarts lastseen    
----------------------------------------------------------
1  3775257 closed 1            2.1   0        00:00:03.909
2  3775261 free   1            1.9   0        00:00:00.505
3  3775265 free   1            1.9   0        00:00:00.199
4  3775269 free   1            1.9   0        00:00:00.594
5  3775273 free   1            1.9   0        00:00:00.990
6  3775278 free   1            1.9   0        00:00:00.385
7  3775284 free   1            1.9   0        00:00:00.078
8  3775289 free   1            1.9   0        00:00:00.774
tasks: 0 queued, 0 dispatched, 0 running, 1 done, 1 failed

@mkeenan-di mkeenan-di left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image Looks good!

@jamesrut1996
jamesrut1996 merged commit 1a524ae into main Nov 13, 2026
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.

2 participants