Commit Graph

672 Commits

Author SHA1 Message Date
Joe Bryan
c96705e755 vere: bumps urbit version to v0.10.8 2020-07-23 18:15:35 -07:00
Joe Bryan
1953e4e2b3
Merge pull request #3099 from urbit/philip/compact
Memory compaction
2020-07-23 14:53:52 -07:00
Joe Bryan
72cadc2b0a u3: note that u3a_rewrit* doesn't yet support south roads 2020-07-23 00:01:04 -07:00
Joe Bryan
eb2350c785 serf: tweaks |pack and |mass printfs 2020-07-22 22:43:28 -07:00
Joe Bryan
d8db01a57b u3: moves u3a_compact to u3m_pack, refactors internals 2020-07-22 22:20:03 -07:00
Joe Bryan
bbf0c51201 u3: refactors u3m_reclaim() into noun modules, works on any road 2020-07-22 21:52:42 -07:00
Joe Bryan
a580f96416 serf: adds subcommands to urbit-worker 2020-07-21 17:15:11 -07:00
Joe Bryan
7d243771c0 serf: restores autopack in response to memory pressure 2020-07-21 14:23:21 -07:00
Joe Bryan
2994e0e44e vere: wires |pack to new compaction; renames old |pack to |cram 2020-07-21 14:10:15 -07:00
Joe Bryan
69eeb6309e vere: fixes driver exit in u3_pier_bail() 2020-07-21 14:10:15 -07:00
Joe Bryan
7701b17995 Merge branch 'release/next-vere' into ipc-redux
* release/next-vere:
  noun: don't add identical values to song_x_cape's hashtable
  nix: fix boot-ship.nix
  release: urbit-os-v1.0.28
  vere: more readable http server status
  release: urbit-os-v1.0.27
  chat-store: don't trim on %messages, either
2020-07-20 13:22:20 -07:00
Joe Bryan
4136ab4329 vere: replaces "irrelevant" uses of strncpy 2020-07-17 18:05:50 -07:00
Brendan Hay
6fb743bb4c serf: fix format-truncation errors in GCC 8 2020-07-17 12:39:21 -07:00
Brendan Hay
4794029b9c u3: fix format-truncation errors in GCC 8 2020-07-17 12:23:37 -07:00
Brendan Hay
dc518607d9 build: add pthread dependency to LDFLAGS
libuv has a dependency on pthread which doesn't seem to get picked
up through any other configure steps. The errors returned during
linking are:

libuv.a(libuv_la-thread.o): undefined reference to symbol 'pthread_rwlock_trywrlock@@GLIBC_2.2.5'
libpthread.so.0: error adding symbols: DSO missing from command line
2020-07-17 12:22:50 -07:00
Joe Bryan
406c865689 serf: fix incorrect structure in %peek response 2020-07-16 14:39:47 -07:00
Philip Monk
eef2b988ac
Merge pull request #3131 from urbit/philip/sing
noun: don't add identical values to _song_x_cape's hashtable
2020-07-16 14:14:57 -07:00
Philip Monk
7ded3f127c
noun: don't add identical values to song_x_cape's hashtable
We were unconditionally adding equal items to the hashtable of
already-compared pointers.  This table exists so that if we've already
determined two non-pointer-equal nouns are value-equal, we don't have to
check them again.  However, atoms (especially direct) ended up in this
hashtable even though we don't look those up.  This makes sure we don't
add items to the hashtable if they're "pointer"-equal (which for direct
atoms is value-equal).

The impact of this inefficiency was greatly magnified by the issue with
+mug where (mug a a) = (mug b b) for all a, b.  For this reason, these
identical pairs added to the hashtable always had the same mug, so they
were added to the same bucket, which meant adding to that list required
linearly traversing the entire bucket.

This was the first barrier that was causing |pack to take a long time on
ships which distribute OTAs, but it isn't a complete solution for |pack.
2020-07-15 12:33:54 -07:00
Philip Monk
c184752f8d
noun: clean up memory compaction 2020-07-06 23:19:04 -07:00
Philip Monk
e8a307ae67
noun: first pass at memory compaction 2020-07-06 21:35:41 -07:00
Fang
da25fc22be
vere: more readable http server status
Not touching the proxy message because that seems gone on ipc-redux.
2020-07-03 13:52:03 +02:00
Joe Bryan
04353f95cf Merge branch 'master' into release/next-vere
* master:
  vere: bump version to 0.10.7
  libsigsegv: disable stack vma check
  vere: bump version to 0.10.6
  ci: add travis as trusted user
  jets: use appropriate macro
  noun: add -C to control memo cache size
  jets: restore fond/play/peek hooks
  jam: add commented-out functionality to count size of atom
  jets: cap memo cache and remove peek, play, and fond jets
  noun: add functions to count size of noun
2020-06-29 01:44:42 -07:00
Joe Bryan
6e8a914791 vere: refactor %behn's retries of failed events 2020-06-29 01:41:00 -07:00
Joe Bryan
a5a148e66d vere: remove stale function declarations 2020-06-27 22:32:52 -07:00
Joe Bryan
3969e78612 vere: retry behn timer failures 2020-06-27 01:15:32 -07:00
Joe Bryan
49444e86c5 vere: refactors ovum and callbacks to support retry 2020-06-27 01:13:06 -07:00
Joe Bryan
b6a0487d7a vere: corrects all uses of [vod_p] to [ptr_v] 2020-06-27 01:04:03 -07:00
Joe Bryan
3965b261d1 vere: refactors ovum scheduling api 2020-06-27 00:59:31 -07:00
Joe Bryan
b4ff9888b5 vere: refactors %ames packet failure callback 2020-06-27 00:50:11 -07:00
Joe Bryan
7c245aa85c vere: retry %behn %born event failures 2020-06-27 00:49:43 -07:00
Fang
b3cb7453cc vere: rename behn.c's alm -> alm_o
To adhere to the naming conventions.
2020-06-27 00:33:40 -07:00
Joe Bryan
a53f688d01 vere/serf/king: support timeouts and error response in %peek 2020-06-27 00:12:53 -07:00
Joe Bryan
1d7c361b06 vere: adds/improves error messages for term syscall retry loops 2020-06-26 16:24:43 -07:00
Joe Bryan
7f61b5a491 Revert "Merge pull request #3050 from urbit/m/behn-improvements"
This reverts commit ed808614aa, reversing
changes made to a6db3add83.
2020-06-26 16:24:43 -07:00
Joe Bryan
6fa194d527 Merge branch 'master' into jb/ipc-redux
* master: (147 commits)
  vere: bump version to 0.10.7
  libsigsegv: disable stack vma check
  vere: bump version to 0.10.6
  ci: add travis as trusted user
  jets: use appropriate macro
  noun: add -C to control memo cache size
  jets: restore fond/play/peek hooks
  jam: add commented-out functionality to count size of atom
  jets: cap memo cache and remove peek, play, and fond jets
  noun: add functions to count size of noun
  release: urbit-os-v1.0.23
  interface/config: fix production build
  soto: run +on-load migration once
  publish, links: restore full height
  sh/build-interface: amend for SPA
  interface/CONTRIBUTING: amend for SPA / webpack
  solid: update pill
  hood + apps: fix OTA process for feat/SPA
  hood: add version %6 for %file-server upgrade
  chat: equally size both code + s3 buttons
  ...
2020-06-26 13:33:00 -07:00
Joe Bryan
db9472dbe2 vere/king: tweaks serf startup args (unconditionally send all) 2020-06-26 12:29:18 -07:00
Joe Bryan
ac42ce09c5 Merge branch 'ipc-redux' into jb/ipc-redux
* ipc-redux:
  behn: optimize bounded timers scry
  vere: support saving scry jam to directory
  vere: u3_nul in place of c3__null
  vere: if behn scry fails, don't try again
  vere: rename behn.c's alm -> alm_o
  vere: scry out next behn timer for backstop
  vere: warn on invalid behn doze
  behn: improve scry interface
  arvo: allow the empty desk (%$) in scries
  vere: add -X flag for running a scry
2020-06-26 11:56:56 -07:00
Fang
02450fe380
Merge pull request #3049 from urbit/m/scry-command
vere: add -X flag for running a scry
2020-06-26 20:47:32 +02:00
Joe Bryan
55dd1e2cf7 vere: fixes re-entrancy bug in term.c write() wrapper 2020-06-26 11:32:04 -07:00
Joe Bryan
6148c87525 vere: restores arbitrary event injection with -I 2020-06-26 11:31:42 -07:00
Joe Bryan
49bea37049 vere: adds pending ipc message to lord status printfs 2020-06-26 11:20:08 -07:00
Philip Monk
271abcd3e7
vere: bump version to 0.10.7 2020-06-26 11:17:02 -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
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