shrub/nix
Philip Monk 2713083386
libsigsegv: disable stack vma check
This patches libsigsegv to not check the stack vma on Linux, since that
involves reading procfs, and we make very heavy use of sigsegv.  This
eliminates most of urbit's performance discrepancy between Linux and
MacOS.  These are the benchmarks used; note this is a local MBP vs a
cloud Linux server, and the MBP is almost certainly faster hardware.

We take two benchmarks, one of which decrements 10 million times and the
other simply allocates 125MB of memory.  These are the results:

cpu-heavy ==  =/ n 10.000.000 |-(?~(n n $(n (dec n))))
mem-heavy == =a (bex 1.000.000.008)

macos, cpu-heavy: 6 seconds
macos, mem-heavy: 1 second

linux-before, cpu-heavy: 30 seconds
linux-before, mem-heavy: 160 seconds

linux-after, cpu-heavy 9 seconds
linux-after, mem-heavy 1.3 seconds

This represents a 3x speedup for the cpu-heavy operation and a 120x
speedup for the memory-heavy operation.

This check was used to try to distinguish stack overflow from other
forms of segmentation fault.  In the comments in src/handler-unix.c, it
describes three heuristics it uses, depending on what's available from
the OS.  In the linux-i386 case, all three are availble, so we simply
disable the slow one.  This correctly recognizes stack overflow if you
simply alloca(10000000000).
2020-06-26 11:15:01 -07:00
..
cachix Get cross-compilation ready for release. (#1263) 2019-05-02 13:13:48 -07:00
deps nix: removes unnecessary use of cat in ivory-header build 2019-12-04 22:57:07 -08:00
nixcrpkgs libsigsegv: disable stack vma check 2020-06-26 11:15:01 -07:00
ops travis: Fix resource exhaustion error in test build. 2020-06-11 14:54:34 -07:00
pkgs libsigsegv: disable stack vma check 2020-06-26 11:15:01 -07:00
crossdeps.nix moves ca-bundle header generation into a separate nix derivation 2019-08-02 13:57:34 -07:00
deps-env.nix moves ca-bundle header generation into a separate nix derivation 2019-08-02 13:57:34 -07:00
nixcrpkgs.nix Finish cc-release cross-compilation. (#1202) 2019-04-23 19:50:38 -07:00
nixpkgs.nix Nix Build + Monorepo Structure (#1196) 2019-03-04 16:43:53 -08:00
release.nix aes_siv: vendors libaes_siv since it isn't in nix. 2020-05-20 13:51:59 -07:00