Commit Graph

3929 Commits

Author SHA1 Message Date
Joe Bryan
49bea37049 vere: adds pending ipc message to lord status printfs 2020-06-26 11:20:08 -07:00
Joe Bryan
57967b35fb vere: tweaks pier/lord info printfs 2020-06-26 10:25:24 -07:00
Joe Bryan
0f54d25d8e vere: silence ames errors unless -v, prints stats every 1k 2020-06-26 00:54:29 -07:00
Joe Bryan
5a3dbde218 vere: factors common _mcut functions into ward 2020-06-26 00:54:29 -07:00
Joe Bryan
9177b3ea87 vere: initialize king timer early (for reliable early-exit) 2020-06-26 00:54:29 -07:00
Joe Bryan
1762412162 vere: handle partial writes and retry in the terminal 2020-06-26 00:54:29 -07:00
Joe Bryan
48add92ca5 vere: skip SIGINFO on linux (unavailable) 2020-06-26 00:54:29 -07:00
Joe Bryan
6e9f8ec34b king: fixes --serf worker-path cli parser 2020-06-26 00:54:29 -07:00
Joe Bryan
81ff98c5d4 vere/king/serf: adds and enables event timeouts 2020-06-26 00:54:29 -07:00
Joe Bryan
078b274491 vere: completes daemon->king re-renaming 2020-06-26 00:54:29 -07:00
Joe Bryan
b860e8cd63 vere: adds basic info printfs on SIGINFO/SIGUSR1 2020-06-26 00:54:29 -07:00
Joe Bryan
d96a05e387 vere: fix use-after-free on exit in cttp 2020-06-26 00:54:24 -07:00
Joe Bryan
46f3a17658 vere: free pier on graceful shutdown 2020-06-23 16:55:38 -07:00
Joe Bryan
a3ae21ea5b vere: removes SIGQUIT handler
we were turning these into SIGABRT in order to catch them and
unmap the lmdb database, but that's neither safe nor reliable.
2020-06-23 16:25:03 -07:00
Joe Bryan
dcdd1e4be9 vere: removes now-unused sniproxy dependency 2020-06-23 16:04:40 -07:00
Joe Bryan
cc93aed354 vere: fixes doubly-linked list handling in u3_auto_drop 2020-06-22 16:35:15 -07:00
Joe Bryan
3330c3eaac vere: disable core dumps in king
lmdb size makes these impractical, and unmapping on SIGABRT
requires canceling threads, which is undefined
2020-06-22 15:47:36 -07:00
Joe Bryan
76cd934864 pier: further limit activity in emergency exit (SIGABRT) 2020-06-22 14:00:17 -07:00
Joe Bryan
e7a95f6d6b ames: count dropped packets (and print every 1k with -v) 2020-06-22 13:50:37 -07:00
Joe Bryan
9816434890 vere: cleans up i/o driver shutdown 2020-06-22 12:58:48 -07:00
Joe Bryan
37cf2135bc term: ignore SIGWINCH if there's no active terminal driver 2020-06-22 12:55:55 -07:00
Joe Bryan
4a48e16f41 vere: refactors king/pier/lord shutdown 2020-06-22 12:55:55 -07:00
Joe Bryan
98040ffa2d newt: adds stop/dispose functions for read and write 2020-06-20 22:21:37 -07:00
Joe Bryan
71d6793943 vere: renames "daemon" to king, removes command socket 2020-06-20 22:21:37 -07:00
Joe Bryan
b75d42c335 vere: adds u3_ovum init/dispose to ward.c 2020-06-20 22:21:24 -07:00
Joe Bryan
5d71e0a804 vere: properly dispose disk resources on exit 2020-06-20 22:18:16 -07:00
Joe Bryan
df7cd2a673 vere: adds common structure management in ward.c 2020-06-20 22:15:58 -07:00
Joe Bryan
8497cd65c6 vere: switch lmdb back to the u3 prefix
c3 is intended for language-level functionality.
a prefix that communicates a lack of dependence
on u3 remains desirable.
2020-06-17 17:35:45 -07:00
Joe Bryan
d23d518f48 vere: moves i/o drivers 2020-06-17 16:31:09 -07:00
Joe Bryan
e297458e74 vere: stop leaking effects 2020-06-17 16:20:33 -07:00
Joe Bryan
5c9252e986 vere: fixes u3_auto_drop list-unlink implementation 2020-06-16 18:52:16 -07:00
Joe Bryan
42213269ce ames: fix null-deref in capped queue 2020-06-16 18:47:12 -07:00
Joe Bryan
1dc809662e Merge branch 'release/next-vere' into ipc-redux
* release/next-vere:
  vere: increase LMDB mapsize to 1TB on macOS, linux
  noun: road-size printfs on u3m_fall
2020-06-16 18:06:25 -07:00
Joe Bryan
5e9b90f5a3 serf: disables incomplete "static grab" on boot 2020-06-16 18:01:09 -07:00
Joe Bryan
82e06c31eb ames: cap ovum queue at 1k, dropping oldest packets first 2020-06-16 15:42:58 -07:00
Joe Bryan
755b2f1347 vere: track ovum queue depth per i/o driver 2020-06-16 15:42:41 -07:00
Philip Monk
41537a7467
Merge pull request #3012 from urbit/philip/road-size
noun: road-size printfs on u3m_fall
2020-06-15 19:41:24 -07:00
Jared Tobin
6e0cd4ef1a
vere: increase LMDB mapsize to 1TB on macOS, linux
Many ships have been observed bumping up against the existing mapsize
limits.  This results in a Vere crash via LMDB, which necessitates
compiling a new binary with a higher mapsize if one wants to relaunch.

There doesn't seem to be any serious penalty to setting this
somewhere in the terabyte range, though. [1]  In cases where the mapsize
exceeds the size of the disk, I infer from the LMDB docs that the
database may simply be permitted to grow until it runs up against the
disk limitations, which feels acceptable.

I've tested this on macOS and Linux and the binary runs without issue,
despite the mapsize being set far in excess of the disks I'm running on.

[1]: https://lmdb.readthedocs.io/en/release/
2020-06-13 10:08:12 +04:00
Philip Monk
eaa926a086
noun: road-size printfs on u3m_fall 2020-06-12 21:55:51 -07:00
~siprel
c523c90bf9 urbit-termsize: Change test executable name. 2020-06-12 18:33:10 +00:00
~siprel
57ef4254e4 Merge branch 'khrc' of https://github.com/urbit/urbit into siprel/sigwinch 2020-06-12 18:27:25 +00:00
~siprel
e8e46ee8c4 Merge branch 'master' of https://github.com/urbit/urbit into siprel/sigwinch 2020-06-12 18:19:51 +00:00
Joe Bryan
8fac63661f vere: removes ncurses dependency 2020-06-11 20:25:46 -07:00
Joe Bryan
6ea2acea86 term: bypass terminfo, use direct ANSI escape sequences 2020-06-11 20:24:38 -07:00
Joe Bryan
c3557e0836 Merge branch 'master' into ipc-redux-kh
* master: (25 commits)
  travis: Fix resource exhaustion error in test build.
  travis: Separate job for Haskell on Linux + bump nix version
  gall: properly handle empty outstanding ack queue
  vere: bump version to 0.10.5
  dawn: switch default eth node
  jets: patch cleanup
  Update os1-bug-report.md
  jets: switch openssl to the loom allocator.
  serf: disable automatic |pack
  release: urbit-os-v1.0.20
  behn: fix +unset-timer
  jael: send breach notifications in order
  jael: don't notify breach on initial update to ship
  jael: look for correct wire
  vere: handle failed cue of private key file
  u3: switches GMP import assert to conditional
  u3: fixes rock:load size printf
  vere: bypass terminal logging on lmdb worker thread
  vere: prevents term.c from retrying tcsetattr() indefinitely
  jets: jet decryption of aes-siv mode.
  ...
2020-06-11 19:07:13 -07:00
Joe Bryan
19da74d146 serf: disables auto |pack, refactors loading from rock (-r) 2020-06-11 16:28:17 -07:00
Joe Bryan
f48dd41ca8 serf: refactors %work $writ handling 2020-06-11 16:27:01 -07:00
Joe Bryan
00fefce334 serf: plugs leak of error-notification event 2020-06-11 16:27:00 -07:00
Joe Bryan
8ef8987b54 newt: adds synchronous read, used in serf with blocking writes 2020-06-11 16:27:00 -07:00
Joe Bryan
3f26140cf4 newt: delivers inbound messages asynchronously 2020-06-11 16:27:00 -07:00