4 ms·
The ZFS file system supports running Lua programs in Kernel mode. It supports setting a limit on the number of instructions run and the amount of memory used:
by MarkSweep 5y ago
The ZFS file system supports running Lua programs in Kernel mode. It supports setting a limit on the number of instructions run and the amount of memory used:
https://www.delphix.com/blog/delphix-engineering/zfs-channel-programs https://www.delphix.com/blog/delphix-engineering/zfs-channel...
So it’s been done before. I think traditional BPF programs were really short and ran in performance critical contexts. Disallowing backwards branches and limiting size was preferred to slowing down these code paths with instruction counting.