Sean McBride
|
9ead528dfc
|
chore: better debugging and small socket fixes
|
4 years ago |
Sean McBride
|
587e2ab354
|
feat: Only dequeue request if actually earlier
|
4 years ago |
Sean McBride
|
e3261244ee
|
chore: replace aborts with panics
|
4 years ago |
Sean McBride
|
9bed646e3b
|
chore: enhance log granularity
|
4 years ago |
Sean McBride
|
9749299672
|
chore: replace spinloop with return to main loop
|
4 years ago |
Sean McBride
|
01d32c19f8
|
chore: replace asserts with abort to be use NDEBUG
|
4 years ago |
Sean McBride
|
84cdcf7b6c
|
chore: Remove extra softint disable/enable
|
4 years ago |
Sean McBride
|
6021807256
|
feat: formalize idle loop
|
4 years ago |
Sean McBride
|
3fcc9c123a
|
chore: fix logging error
|
4 years ago |
Sean McBride
|
82d0505104
|
chore: make durations uint32_t
|
4 years ago |
Sean McBride
|
d1d27a9162
|
feat: percentiles for execution estimates
|
4 years ago |
Sean McBride
|
c9bcf086fa
|
fix: correct locking issue
|
4 years ago |
Sean McBride
|
f8f1db7eaf
|
feat: complete lock refactor
|
4 years ago |
Sean McBride
|
b3215c6dbc
|
feat: all but trylock
|
4 years ago |
Sean McBride
|
6673734857
|
feat: mcs locks and profiling
|
4 years ago |
Sean McBride
|
c291b049c8
|
fix: Properly close malformed requests
|
4 years ago |
Sean McBride
|
e430202c1f
|
fix: correct control flow bug
|
4 years ago |
Sean McBride
|
e445e76870
|
feat: add ability to reject request
|
4 years ago |
Sean McBride
|
76ba308c16
|
feat: Initial MVP of admissions control
|
4 years ago |
Sean McBride
|
f99050706e
|
chore: simplify Makefile prefix
|
4 years ago |
Sean McBride
|
4b107f3033
|
chore: cleanup debuglog file logic
|
4 years ago |
Sean McBride
|
c307f2a166
|
feat: Implement perf window
|
4 years ago |
Sean McBride
|
628275f6f9
|
docs: Associate FIXMEs and TODOs with issues
|
4 years ago |
Sean McBride
|
f963828db7
|
chore: general pq cleanup
|
4 years ago |
Sean McBride
|
6cb442d13d
|
docs: assumptions and runtime globals
|
4 years ago |
Sean McBride
|
ba4f9e2119
|
feat: precomp module deadline cycles
|
4 years ago |
Sean McBride
|
1b58f819a7
|
chore: reuse is_worker function
|
4 years ago |
Sean McBride
|
e898d5ab69
|
chore: validate interrupts disabled at spinlock
|
4 years ago |
Sean McBride
|
d6f10cac7a
|
refactor: decompose types.h
|
4 years ago |
Sean McBride
|
486a72647b
|
feat: add check to validate signal on worker
|
4 years ago |
Sean McBride
|
564765c226
|
refactor: break sigalrm propagate into util func
|
4 years ago |
Sean McBride
|
3cec497a9b
|
refactor: break signal handlers into inline funcs
|
4 years ago |
Sean McBride
|
2d1678e091
|
feat: Encore minimum cores at compiletime
|
4 years ago |
Sean McBride
|
9720f82441
|
chore: require min 2 cores
|
4 years ago |
Sean McBride
|
b315844c46
|
feat: constant propagation state transitions
|
4 years ago |
Sean McBride
|
3bf9cc806a
|
chore: remove redundant zeroing out logic
|
4 years ago |
Sean McBride
|
aac2d3304f
|
docs: fix erroneous comment
|
4 years ago |
Sean McBride
|
eca1546f7a
|
chore: improved logging
|
4 years ago |
Sean McBride
|
465b820326
|
chore: static inline sandbox_state_stringify
|
4 years ago |
Sean McBride
|
43d00d645f
|
feat: tighten softint asserts in state transitions
|
4 years ago |
Sean McBride
|
a70187eed0
|
refactor: DRY up state transitions
|
4 years ago |
Sean McBride
|
c37b2ba9a9
|
docs: Assorted comment cleanup
|
4 years ago |
Sean McBride
|
842d078846
|
feat: set as error transition
|
4 years ago |
Sean McBride
|
c0bcbdbc2e
|
feat: set as returned
|
4 years ago |
Sean McBride
|
c014f94797
|
feat: set as blocked
|
4 years ago |
Sean McBride
|
b85d089537
|
feat: running, preempted, complete transitions
|
4 years ago |
Sean McBride
|
65b10f19dd
|
feat: sandbox set as runnable
|
4 years ago |
Sean McBride
|
fd22432cb0
|
refactor: set_as_initialized
|
4 years ago |
Sean McBride
|
048b01e690
|
feat: print_perf
|
4 years ago |
Sean McBride
|
24e25f255f
|
feat: add sandbox_state_stringify
|
4 years ago |
Sean McBride
|
33d65605b1
|
refactor: free linear memory func
|
4 years ago |
Sean McBride
|
7dc4488d74
|
chore: add sandbox state
|
4 years ago |
Sean McBride
|
853382dcda
|
fix: correct HTTP response syntax
|
4 years ago |
Sean McBride
|
8d1b447e74
|
refactor: cleanup HTTP response logic
|
4 years ago |
Sean McBride
|
81e3a88a1f
|
chore: fix case on enums
|
4 years ago |
Sean McBride
|
3aba285862
|
refactor: namespace to arch_context_variant
|
4 years ago |
Sean McBride
|
8b199f702e
|
chore: remove extra consistency check
|
4 years ago |
Sean McBride
|
fdba1b1de8
|
feat: error check context variants
|
4 years ago |
Sean McBride
|
9c74fffd38
|
docs: remove FIXME
|
4 years ago |
Sean McBride
|
bbc8d05ec9
|
refactor: remove erronious error check
|
4 years ago |
Sean McBride
|
9a963f1d0c
|
refactor: rename confusing function name
|
4 years ago |
Sean McBride
|
7919dff0ba
|
refactor: decapitalize enums
|
4 years ago |
Sean McBride
|
ef648ab47c
|
docs: remove zombie commented out code.
|
4 years ago |
Sean McBride
|
20588eb489
|
refactor: remove extra asserts in SIGUSR1
|
4 years ago |
Sean McBride
|
8614a838f8
|
docs: fix comment block
|
4 years ago |
Sean McBride
|
47672b4c93
|
fix: correct bugs
|
4 years ago |
Sean McBride
|
b979809c12
|
chore: fix debuglog usage
|
4 years ago |
Sean McBride
|
2db5f84f11
|
chore: Initial buggy port
|
4 years ago |
Sean McBride
|
8ddab81a22
|
chore: revert soft int location
|
4 years ago |
Sean McBride
|
86fe1ceaa0
|
chore: rename to minimize diff
|
4 years ago |
Sean McBride
|
080c3d6656
|
chore: simplify RCs
|
4 years ago |
Sean McBride
|
41f63ebafc
|
chore: use debuglog
|
4 years ago |
Sean McBride
|
2ceede804a
|
chore: revert sandbox alloc API
|
4 years ago |
Sean McBride
|
1ae6acbbee
|
fix: correct bug and harden error handling
|
4 years ago |
Sean McBride
|
180df1a7d5
|
feat: initial implementation with interrupt bugs
|
4 years ago |
Sean McBride
|
e0df43fedf
|
docs: added comments to SIGALRM
|
4 years ago |
Sean McBride
|
233ba1fa13
|
doce: Improve error message
|
4 years ago |
Sean McBride
|
95f66ff22a
|
chore: remove overkill debuglog
|
4 years ago |
Sean McBride
|
de9e20ce89
|
chore: Improve default signal handler
|
4 years ago |
Sean McBride
|
9d5859aeaa
|
chore: replace perror with fprintf
|
4 years ago |
Sean McBride
|
5c87885722
|
chore: rename request_arrival_timestamp
|
4 years ago |
Sean McBride
|
2b161f2f86
|
refactor: move mcontext_restore to arch_context
|
4 years ago |
Sean McBride
|
d1f80d8b1e
|
chore: port simple doc and error handlign
|
4 years ago |
Sean McBride
|
a2319f2a68
|
chore: refactor out arch_context_t
|
4 years ago |
Sean McBride
|
2f164c3430
|
chore: refactor our sandbox_request_t
|
4 years ago |
Sean McBride
|
213c558a75
|
chore: refactor out i32
|
4 years ago |
Sean McBride
|
ec3b489b21
|
chore: refactor out i64
|
4 years ago |
Sean McBride
|
4cb7c355b4
|
chore: refactor out u32
|
4 years ago |
Sean McBride
|
407a20d22a
|
chore: refactor out u64
|
4 years ago |
Sean McBride
|
eca987ccb4
|
fix: correct valgrind errors
|
4 years ago |
Sean McBride
|
0892e98d76
|
chore: declare global scheduler with panic funcs
|
4 years ago |
Sean McBride
|
f93da9e766
|
fix: add format printf to panic
|
4 years ago |
Sean McBride
|
3d9829e6b3
|
chore: clean up get sandbox in minheap preempt
|
4 years ago |
Sean McBride
|
f0aab63c26
|
fix: hack to avoid mysterious segfault
|
4 years ago |
Sean McBride
|
fa8e8628eb
|
fix: correct interrupt logic on sandbox switch
|
4 years ago |
Sean McBride
|
b381077b13
|
docs: cleanup comments
|
4 years ago |
Sean McBride
|
19c862c92a
|
chore: add error handling code to module loader
|
4 years ago |
Sean McBride
|
e70a5809be
|
feat: improve json error handling
|
4 years ago |
Sean McBride
|
02d60a740d
|
chore: add trailing newlines
|
4 years ago |
Sean McBride
|
f116e4030d
|
docs: add info on module table init refactor
|
4 years ago |
Sean McBride
|
324253095d
|
refactor: clarify interval duration is not macro
|
4 years ago |
Sean McBride
|
95f339de94
|
refactor: clarify assert in switch_to_sandbox
|
4 years ago |
Sean McBride
|
47f24b6952
|
fix: namespace sandbox states
|
4 years ago |
Sean McBride
|
b4fe9a537e
|
refactor: cleanup wakeup sandbox logic
|
4 years ago |
Sean McBride
|
ba31db340b
|
fix: panic on completed run loop
|
4 years ago |
Sean McBride
|
58a38016b1
|
chore: sandbox member cache->sandbox context cache
|
4 years ago |
Sean McBride
|
5c4bd98f54
|
chore: Improve munmap error handling
|
4 years ago |
Sean McBride
|
f3c037475c
|
docs: fix incoherent comment
|
4 years ago |
Sean McBride
|
788ba6909b
|
docs: Replace printfs with debuglog
|
4 years ago |
Sean McBride
|
0465099cfb
|
docs: improve documentation
|
4 years ago |
Sean McBride
|
4742a86d39
|
chore: replace exists with panics
|
4 years ago |
Sean McBride
|
9eb5541afa
|
feat: propagate dequeue and remove return codes
|
4 years ago |
Sean McBride
|
d36b28bf21
|
chore: local_runqueue add cleanup
|
4 years ago |
Sean McBride
|
5ccf8bbd87
|
chore: organize preprocessor includes
|
4 years ago |
Sean McBride
|
f45b450360
|
chore: DRY up current_sandbox funcs
|
4 years ago |
Sean McBride
|
dfb1c65e93
|
fix: push PQ error handling to caller
|
4 years ago |
Sean McBride
|
7384b2de1e
|
fix: harden panic logic
|
4 years ago |
Sean McBride
|
50b4ab1b6c
|
fix: correct leak in error handling
|
4 years ago |
Sean McBride
|
68e91a8853
|
chore: combine thread locals into struct
|
4 years ago |
Sean McBride
|
b3c97462df
|
chore: fix no endline
|
4 years ago |
Sean McBride
|
1c2aa448cd
|
chore: rename scheduler interfaces and variants
|
4 years ago |
Sean McBride
|
f7e472a8d9
|
chore: rename get_priority to get_priority_fn
|
4 years ago |
Sean McBride
|
46881a0f26
|
chore: suffix fn typedefs with _fn_t
|
4 years ago |
Sean McBride
|
06180781f6
|
chore: refactor ternary statements
|
4 years ago |
Sean McBride
|
bfe19dce69
|
fix: assorted small priority queue fixes
|
4 years ago |
Sean McBride
|
2d03fe390b
|
chore: remove blank line to clarify unit
|
4 years ago |
Sean McBride
|
bd584b164c
|
chore: clean up ternary
|
4 years ago |
Sean McBride
|
3bfb3859c1
|
docs: Improved description of context switch
|
4 years ago |
Sean McBride
|
29201f737d
|
docs: Use style guide format for comments
|
4 years ago |
Sean McBride
|
da0588ea32
|
chore: make demo workloads more realistic
|
5 years ago |
Sean McBride
|
5327e6d18b
|
chore: rename module function
|
5 years ago |
Sean McBride
|
b8a0e28d11
|
chore: cleanup sandbox logic
|
5 years ago |
Sean McBride
|
ebfe8856bc
|
docs: minor comment improvements
|
5 years ago |
Sean McBride
|
c0d82db22b
|
fix: Correct memory leak and general cleanup
|
5 years ago |
Sean McBride
|
0e6c77d923
|
chore: align lifetimes for shortcuts
|
5 years ago |
Sean McBride
|
653af014a7
|
fix: cleanly handling preemption
|
5 years ago |
Sean McBride
|
218893ed3b
|
feat: Non-crashing demo state
|
5 years ago |
Sean McBride
|
3caecadefe
|
feat: Implement peek in ps
|
5 years ago |
Sean McBride
|
996c147928
|
fix: correct runqueue cleanup bug
|
5 years ago |
Sean McBride
|
83ee42e89b
|
chore: break up runtime and worker_thread
|
5 years ago |
Sean McBride
|
4d29585236
|
chore: demonstrate priority
|
5 years ago |
Sean McBride
|
61c7ccea0c
|
feat: implement PQ-based runqueue
|
5 years ago |
Sean McBride
|
f5f9c168c6
|
chore: Simplify worker scheduling
|
5 years ago |
Sean McBride
|
db2372f02f
|
chore: make signal handler more verbose
|
5 years ago |
Sean McBride
|
307f7c0d59
|
chore: encapsulte http_parser_settings
|
5 years ago |
Sean McBride
|
d08e3b7f54
|
chore: refactore flags to bools
|
5 years ago |
Sean McBride
|
321e26577d
|
chore: replace in_interrupt with bool
|
5 years ago |
Sean McBride
|
82f79b1ed4
|
chore: simplify event loop
|
5 years ago |
Sean McBride
|
d42370c357
|
chore: simplify sandbox_allocate
|
5 years ago |
Sean McBride
|
c2c6332bc1
|
chore: encapsulate completion queue
|
5 years ago |
Sean McBride
|
0de94ed7c2
|
chore: cleanup additional run_queue logic
|
5 years ago |
Sean McBride
|
dafa257273
|
chore: encapsulate current_sandbox
|
5 years ago |
Sean McBride
|
403b167a7e
|
chore: refactor out sandbox_run_queue
|
5 years ago |
Sean McBride
|
f8d74bdfed
|
chore: small refactors
|
5 years ago |
Sean McBride
|
828b368a7c
|
chore: remove zombie comment
|
5 years ago |
Sean McBride
|
1999a97c8f
|
feat: Implement basic ps for sandbox requests
|
5 years ago |
Sean McBride
|
6a7bbc2e97
|
feat: add deadline logic
|
5 years ago |
Sean McBride
|
6478ff9b84
|
feat: WIP ps
|
5 years ago |
Sean McBride
|
6eb5825b55
|
refactor: implement sandbox request interface
|
5 years ago |
Sean McBride
|
34d91cfa21
|
refactor: wrap existing request queue
|
5 years ago |
Sean McBride
|
13deee2531
|
chore: remove cycle time printf
|
5 years ago |
Sean McBride
|
0ace3119e6
|
chore: revert to __getcycles
|
5 years ago |
Sean McBride
|
a949cbebe3
|
chore: refactor double underscores
|
5 years ago |
phani
|
a72e702c77
|
update env.c to use ck api
|
5 years ago |
phani
|
37db945637
|
TODO: use CK? for env.c
|
5 years ago |
phani
|
7ff05b9d73
|
making it work for aarch64 - seem to work on RPi
* changes to be fully tested!
* cas etc needs to be implemented for aarch64
|
5 years ago |
Sean McBride
|
178bef818f
|
feat: add relative_deadline_us to json and module
|
5 years ago |
Sean McBride
|
0bd22a2e9c
|
chore: de-dunder module_database
|
5 years ago |
Sean McBride
|
a70a83326c
|
chore: de-dunder worker_thread
|
5 years ago |
Sean McBride
|
a771b78a92
|
chore: de-dunder software_interrupt
|
5 years ago |
Sean McBride
|
fefd80d6a9
|
chore: de-dunder sandbox
|
5 years ago |
Sean McBride
|
ba032a5905
|
chore: de-dunder runtime
|
5 years ago |
Sean McBride
|
4d660e666b
|
chore: de-dunder listener thrd, module, libuv cbs
|
5 years ago |
Sean McBride
|
3e90b26243
|
chore: de-dunder http_response
|
5 years ago |
Sean McBride
|
06de754885
|
chore: de-dunder current_sandbox
|
5 years ago |
Sean McBride
|
4615c4736d
|
chore: de-dunder http_parser_settings
|
5 years ago |
Sean McBride
|
d64ca75c4e
|
chore: de-dunder current_sandbox
|
5 years ago |
Sean McBride
|
0271f4a48d
|
chore: fix consistent delimiter in module_database
|
5 years ago |
Sean McBride
|
b5439ab922
|
chore: fix inadvertant double prefix
|
5 years ago |
Sean McBride
|
5694366c96
|
chore: align consecutive macros
|
5 years ago |
Sean McBride
|
9dfc740d05
|
chore: namespace macros and globals in main.c
|
5 years ago |
Sean McBride
|
3cbb7f0748
|
chore: rename nested namespaces pending refactor
|
5 years ago |
Sean McBride
|
2640f3a44f
|
chore: rename single_loop to be descriptive
|
5 years ago |
Sean McBride
|
25bdc18118
|
chore: rename sigint to signal_interrupt in files
|
5 years ago |
Sean McBride
|
7ba5a3acbe
|
chore: rename softint to software_interrupt
|
5 years ago |
Sean McBride
|
21d9cd11fe
|
chore: flatten http directory
|
5 years ago |
Sean McBride
|
46a2fcfbc4
|
chore: rename handles to be more descriptive
|
5 years ago |
Sean McBride
|
439bd523b8
|
chore: namespace runtime.h functions
|
5 years ago |
Sean McBride
|
346c391ece
|
feat: Improve wasm string null-termintor checks
|
5 years ago |
Sean McBride
|
c9b9a6553e
|
chore: run clang-format
|
5 years ago |
Sean McBride
|
2805934d49
|
docs: add warning to sandbox exit function
|
5 years ago |
Sean McBride
|
055d76e0ae
|
fix: correct rdtsc edits
|
5 years ago |
Sean McBride
|
07d2c8daaf
|
chore: sandbox.h cleanup
|
5 years ago |
Sean McBride
|
2d9a3925cd
|
chore: namespace runtime.c
|
5 years ago |
Sean McBride
|
70d87fcb51
|
chore: partial namespace of runtime
|
5 years ago |
Sean McBride
|
ef0056a511
|
chore: fix provide module_database includes
|
5 years ago |
Sean McBride
|
7f858d69dd
|
chore: namespace runtime state
|
5 years ago |
Sean McBride
|
3d96b0ed95
|
chore: namespace and comment softint stuff
|
5 years ago |
Sean McBride
|
d6c31f6728
|
chore: namespace rdtsc
|
5 years ago |
Sean McBride
|
08eb26e984
|
chore: move module json parsing to module
|
5 years ago |