0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 23:40:57 +01:00
Commit graph

5035 commits

Author SHA1 Message Date
Jason Volk
774cd6c7c2 ircd::db: Split allocator related into unit. 2020-06-04 15:38:38 -07:00
Jason Volk
277d809ff4 ircd::info: Remove redundant debuglog output; replace w/ relevant rlimit. 2020-06-04 14:41:39 -07:00
Jason Volk
e12774595c ircd::db: Disable cache lock feature when valgrinding. 2020-06-04 00:25:43 -07:00
Jason Volk
a70a6164be ircd::net: Convey ALPN selection to socket instance. 2020-05-30 23:19:03 -07:00
Jason Volk
47d1ac40c3 ircd::net::acceptor: Carry pointer to our socket instance in ssl opaque. 2020-05-30 22:47:03 -07:00
Jason Volk
5fa1e524a4 ircd::openssl: Add interface wrapping get/set app_data. 2020-05-30 22:17:11 -07:00
Jason Volk
4d72b673a7 ircd::allocator::je: Add thp to our default options. 2020-05-30 19:28:39 -07:00
Jason Volk
9d06af1dbe ircd::client: Minor rename. 2020-05-30 19:28:39 -07:00
Jason Volk
635cccdb9d ircd::db: Fix integer literal for comparison. 2020-05-30 18:15:03 -07:00
Jason Volk
cdd1fc2a9c ircd::fs::aio: Relax assertion. 2020-05-30 17:36:47 -07:00
Jason Volk
23b0674051 ircd::fs::aio: Fix request object semantics and immobility guarantees. 2020-05-30 16:50:38 -07:00
Jason Volk
1a0ee0ece4 ircd::db: Add missing #ifdefs covering rocksdb 5.x (thanks @grinapo). 2020-05-30 03:59:10 -07:00
Jason Volk
6b3ab64aae ircd::db: Remove unused cache_arena handle. (related 77b0fc9e1e) 2020-05-30 03:55:41 -07:00
Jason Volk
60b28ade71 ircd::cbor: Use non-reference value for shift integer. (fixes #154) 2020-05-30 00:16:46 -07:00
Jason Volk
a61a67961a ircd::db: Lock database cache extents in RAM if possible. (closes #144) 2020-05-29 23:40:24 -07:00
Jason Volk
489cf7a560 ircd::allocator: Add a graceful getter/setter for RLIMIT_MEMLOCK. 2020-05-29 23:40:24 -07:00
Jason Volk
77b0fc9e1e ircd::db: Elaborate all extent hooks; move cache_arena to database::allocator. 2020-05-29 23:40:24 -07:00
Jason Volk
67ddcf074a ircd::db: Add a global cache arena w/ lifetime of subsystem. 2020-05-29 23:40:24 -07:00
Jason Volk
085b1acfe9 ircd::db: Add jemalloc arena and flags support to allocators. 2020-05-29 23:40:24 -07:00
Jason Volk
2e5a4daf76 ircd::allocator::je: Ensure truncation of mallctl results. 2020-05-29 23:40:24 -07:00
Jason Volk
6beb93b1c1 ircd::spirit: Improve pseudo-buffering; generator state and interface related. 2020-05-28 20:09:14 -07:00
Jason Volk
d9f8e0d0ab ircd::json: Eliminate bool return for printer call. 2020-05-27 20:03:03 -07:00
Jason Volk
8b3760b57f ircd::spirit: Minor rename error buffer. 2020-05-27 20:03:02 -07:00
Jason Volk
d58921f756 ircd::spirit: Add exceptions; move epsilon into generate abstraction; minor cleanup. 2020-05-27 20:03:02 -07:00
Jason Volk
112185c213 ircd::rfc3986: Use generator template for encode(). 2020-05-26 04:54:52 -07:00
Jason Volk
1aa83a22fb ircd::fmt: Use generate template for fmt grammars. 2020-05-26 04:54:52 -07:00
Jason Volk
b698f80067 ircd::spirit: Abstract common generator call into template. 2020-05-26 04:54:52 -07:00
Jason Volk
210dc94521 ircd::json: Add parenthesis around comparison. 2020-05-26 00:28:15 -07:00
Jason Volk
188e9b1c81 ircd::json: Rearrange branch blocks. 2020-05-26 00:04:09 -07:00
Jason Volk
f2f3e9a8a5 ircd::json: Workaround buffer_sink action. 2020-05-26 00:04:04 -07:00
Jason Volk
53b304cb7a ircd::json:🖨️ Make return an lvalue for leeward access. 2020-05-25 01:39:15 -07:00
Jason Volk
acd0b71ccc ircd::allocator: Implement profile counters in mock handlers. 2020-05-25 00:27:31 -07:00
Jason Volk
626df7a4df ircd::allocator: Update profiling operator delete w/ noexcept. 2020-05-25 00:26:40 -07:00
Jason Volk
4b7dcd48a6 ircd::json: Optimize sequential alternative for individual characters. 2020-05-24 22:06:18 -07:00
Jason Volk
d00392b90c ircd::ctx: Call any interruption handler even if interrupts disabled. 2020-05-24 20:34:44 -07:00
Jason Volk
e5517735c3 ircd::json: Replace phrase_parse in type suite.
ircd::json: Tweak whitespace rules in type suite grammar.
2020-05-24 19:33:32 -07:00
Jason Volk
31dfedbcd7 ircd::json: Add suite for type optimized type query; refactor grammars. 2020-05-24 19:03:00 -07:00
Jason Volk
b137f59c5e ircd::json: Move type determination grammars out of primary input grammar. 2020-05-24 18:33:20 -07:00
Jason Volk
e938081404 ircd::ctx: Add watchdog log facility. 2020-05-24 17:42:32 -07:00
Jason Volk
ac42d4df13 ircd::ctx: Measure and report epoch span for slice_usage_warning. 2020-05-24 17:14:02 -07:00
Jason Volk
f070e3b706 ircd::ctx: Condition on RB_DEBUG rather than NDEBUG for slice_usage_warning tool. 2020-05-24 17:14:02 -07:00
Jason Volk
4ca481a5fc ircd::json: Use switch statement over enumeration in character_dfa. (related 24d73428c8) 2020-05-24 16:33:38 -07:00
Jason Volk
24d73428c8 ircd::json: Fix overzealous escape cases. (fixes #152) (fixes #17) 2020-05-24 15:32:40 -07:00
Jason Volk
d434c69755 ircd::fs: Improve correctness of fixes; isolate timer. (related 56219f9ea) 2020-05-24 15:32:40 -07:00
Jason Volk
ba3f3fc09a ircd::client: Assert socket finish state during wait_all(). 2020-05-24 15:32:40 -07:00
Jason Volk
9189bf4af9 ircd::log: Add coarse ready condition for static init issues; minor cleanup. 2020-05-22 20:30:52 -07:00
Jason Volk
c7b473485b ircd::allocator: Add argument for options string to info() interface. 2020-05-22 16:37:05 -07:00
Jason Volk
f069cdfca0 ircd::allocator::je: Add noexcept for stats callback. 2020-05-22 16:37:05 -07:00
Jason Volk
6d14758a8a ircd: Elide static destructor emissions w/ clang. 2020-05-22 16:37:05 -07:00
Jason Volk
4d5c006003 ircd::fs: Simplify read suite overloads. 2020-05-20 20:40:48 -07:00
Jason Volk
a1de7e8e08 ircd::fs::fd: Replace open(2) with openat(2); additional constructor. 2020-05-20 20:40:48 -07:00
Jason Volk
56219f9eaa ircd::fs::fd: Fix constructor exception safety; cleanup. 2020-05-20 18:28:42 -07:00
Jason Volk
24707647b5 ircd::fs: Improve internal posix flag translation utils. 2020-05-20 18:28:42 -07:00
Jason Volk
82485b9aa9 ircd::fs: Minor cleanup. 2020-05-20 18:28:42 -07:00
Jason Volk
875b8a01f1 ircd::json: Minor cleanup. 2020-05-20 17:16:23 -07:00
Jason Volk
8c2b203426 ircd::json: Simplify grammar instantiations. 2020-05-19 16:12:08 -07:00
Jason Volk
ec0471934a ircd::json: Minor simplifications.
ircd::rfc3986: Minor simplifications.

ircd::fmt: Minor cleanup.
2020-05-19 15:55:18 -07:00
Jason Volk
9213d31f1d ircd::ctx: Inline interruptible(ctx, ...) manipulators. 2020-05-19 15:55:18 -07:00
Jason Volk
3c96120e72 ircd::ctx: Add some noexcept; minor comment justification. 2020-05-18 19:57:54 -07:00
Jason Volk
00fe4baa2a ircd::ctx: Add direct flags reference accessor to interface. 2020-05-18 19:57:54 -07:00
Jason Volk
92a4322f3a ircd::json: Assertions on iterator increments. 2020-05-18 18:13:41 -07:00
Jason Volk
bb52cbd2d1 ircd::rfc3986: Move port number extraction grammars out of function static. 2020-05-18 18:12:34 -07:00
Jason Volk
0cb7378793 ircd::rfc3986: Move static host grammars outsdie of function. 2020-05-18 18:12:34 -07:00
Jason Volk
6e89ee4289 ircd::json: Consolidate validation grammars; optimize for boolean rule. 2020-05-18 18:12:34 -07:00
Jason Volk
005d1226b2 ircd::json: Consolidate type grammars; move outside functions; apply visibility. 2020-05-18 18:12:34 -07:00
Jason Volk
648d6e42b4 ircd::json: Inline vector::const_iterator related. 2020-05-18 18:12:34 -07:00
Jason Volk
d870385e6c ircd::json: Move vector static grammars outside function; apply visibility. 2020-05-18 18:12:34 -07:00
Jason Volk
1b90964630 ircd::json: Move array static grammars outside functions; apply visibility; remove branch. 2020-05-18 16:51:50 -07:00
Jason Volk
021e875b29 ircd::json: Reorg object grammars; fix visibility attribute; remove branch on begin(). 2020-05-18 15:28:35 -07:00
Jason Volk
f4fe10ba38 ircd::rfc3986: Add expectations for host and port parsers. 2020-05-14 11:05:42 -07:00
Jason Volk
a2f6acd73f ircd::json: Reduce branch mispredictions in linear_any alternative parser. 2020-05-13 05:01:22 -07:00
Jason Volk
8bc371d7fb ircd::db::txn: Fix has() queries. 2020-05-12 22:27:53 -07:00
Jason Volk
fde100bb93 ircd::db: Move callback into handler; fixes errors from reference member. 2020-05-12 22:27:53 -07:00
Jason Volk
db4e0af8a9 ircd::tokens: Modernize all remaining interface delims to string_view. 2020-05-11 16:31:48 -07:00
Jason Volk
5e0d5237a9 ircd::tokens: Alter behavior of string delimiter tokens() definitions. 2020-05-11 16:31:48 -07:00
Jason Volk
890dc6f003 ircd::tokens: Add a string separator functor. 2020-05-11 16:31:48 -07:00
Jason Volk
109c30a76c ircd: Apply devirtualization optimizations for clang.
matrix: Apply devirtualization optimizations for clang.
2020-05-11 01:58:25 -07:00
Jason Volk
226c8702e9 ircd::json: Additional internal visibilities. 2020-05-11 01:56:47 -07:00
Jason Volk
aae7f7e545 ircd::allocator::je: Add runtime query for linked library at initialization. 2020-05-10 18:53:45 -07:00
Jason Volk
708bba4bf9 ircd::allocator::je: Create and move relevant into actual allocator::je namespace. 2020-05-10 18:53:45 -07:00
Jason Volk
bab494cafd ircd::allocator::je: Simplify definition #ifdef related. 2020-05-10 18:53:45 -07:00
Jason Volk
5a1868f9eb ircd::fs: Remove incorrect brace array initialization. 2020-05-10 17:47:09 -07:00
Jason Volk
fe3c051f8a ircd::db: Fix missing #ifdefs for cache allocator. 2020-05-10 03:02:25 -07:00
Jason Volk
ca18ea1c17 construct: Redirect error propagation and startup failure. 2020-05-10 03:02:25 -07:00
Jason Volk
90bd13a0fe ircd::db::database::env: Use advise fd open option; remove direct call. 2020-05-09 18:48:21 -07:00
Jason Volk
8c15247efc ircd::fs: Add options to fadvise() on fd open(). 2020-05-09 18:42:05 -07:00
Jason Volk
88fe138d12 ircd::prof: Add symbol definition for psi::supported=false on non-linux platforms. 2020-05-09 17:28:34 -07:00
Jason Volk
32192bf439 ircd::prof::psi: Additional state relative to last refresh. 2020-05-09 17:28:34 -07:00
Jason Volk
19f4917d9f ircd::prof::psi: Add threshold triggering mechanism to interface. 2020-05-09 17:28:34 -07:00
Jason Volk
05e384d315 ircd::prof::psi: Add interface to poll for PSI linux>=5.2. (#144) 2020-05-09 17:28:34 -07:00
Jason Volk
a0476b8a9c ircd::fs: Add a select()'ish multi-fd yielding device. 2020-05-09 17:28:34 -07:00
Jason Volk
1720aea7e2 ircd::fs: Add derror log msg w/ path on fd open system_error. 2020-05-09 17:28:34 -07:00
Jason Volk
1c11e6b2c1 ircd::db: Minor cleanup. 2020-05-08 14:12:19 -07:00
Jason Volk
47800ba094 ircd::allocator: Add interface to fetch some resource limits. 2020-05-08 00:44:13 -07:00
Jason Volk
516d7e8ad7 ircd::db::database::allocator: Support aligned allocations.
ircd::db::database::allocator: Implement callback for true allocated size hint.
2020-05-08 00:05:46 -07:00
Jason Volk
f77f36904e ircd::db::database::cache: Fix construction of the proxy w/ custom allocator. 2020-05-07 21:06:08 -07:00
Jason Volk
214c2e1b4f ircd::db::database::cache: Remove shared_from_this. 2020-05-07 19:43:37 -07:00
Jason Volk
15cd10f843 ircd::db::database: Use scoped tag; fix allocator passed to cache; LRUCacheOptions; final override. 2020-05-07 17:58:38 -07:00
Jason Volk
2c7f81d1e1 ircd:;db: Disambiguate KeyMaxExist() overload for rocksdb 6.10.0. 2020-05-07 17:05:12 -07:00
Jason Volk
efdd49ed3a ircd::db::fixes: Fix missing condition for older interposed definition. 2020-05-07 17:01:50 -07:00
Jason Volk
2c10024900 rocksdb::port: Zero-initialize to the real width. 2020-05-07 04:08:35 -07:00
Jason Volk
ddc404d217 ircd: Interpose rocksdb::DeleteDBFile() good thru RocksDB v6.8.1. 2020-05-07 04:08:35 -07:00
Jason Volk
0e84f4cb86 ircd: Use granular __has_includes() for db_fixes; support latter rocksdb reorg. 2020-05-07 04:08:34 -07:00
Jason Volk
fb7a18e0dd ircd::ctx::posix: Add macro to build mocks; distribute near definitions; minor reorg. 2020-05-07 00:28:27 -07:00
Jason Volk
e7ff7e0568 ircd::db::env: Implement rocksdb MultiRead() environment backend. 2020-05-07 00:28:27 -07:00
Jason Volk
aaa5e785aa ircd::fs: Implement synchronous parallel-read interface. 2020-05-07 00:28:27 -07:00
Jason Volk
c683365341 ircd::fs::aio: No default zero initialization for aio::request used in array. 2020-05-06 19:13:14 -07:00
Jason Volk
fd1db1b208 ircd::fs::aio: Pointer to dock rather than instance per request; split request::operator(). 2020-05-06 15:46:54 -07:00
Jason Volk
6d77e99a03 ircd::fs::aio: Minor reorder request arguments; missing constness; consistent return values. 2020-05-06 14:04:14 -07:00
Jason Volk
fd127472b9 ircd::db: Use some symbols in the library for ABI string info for now. 2020-05-05 22:52:00 -07:00
Jason Volk
86bacdfcb5 ircd::db: RocksDB >= 6.0.0 CompactionFilter::IgnoreSnapshots() must always be true. 2020-05-05 22:24:25 -07:00
Jason Volk
598bbc45cc ircd::ctx::posix: Reduce decisionals to static util; minor cleanup. 2020-05-05 20:57:59 -07:00
Jason Volk
72ae3073d3 ircd::ctx::posix: Wrap pthread_timedjoin_np(). 2020-05-05 20:57:59 -07:00
Jason Volk
6a9dbf310a ircd::ctx::posix: Weak alias fallbacks for when --wrap is not effective. 2020-05-05 20:57:59 -07:00
Jason Volk
883a230830 ircd::ctx::posix: Wrap pthread_setname_np(). 2020-05-05 19:58:37 -07:00
Jason Volk
dfb91d4c20 ircd::ctx::posix: Relax assertion. 2020-05-05 19:58:37 -07:00
Jason Volk
b448156da4 ircd::db: Interface to get the charge value of cache entry. 2020-05-05 19:58:37 -07:00
Jason Volk
1eaf52d2eb ircd::db: Reflect ColumnFamilyDropped (6.3.6). 2020-05-05 19:58:37 -07:00
Jason Volk
572396f5f4 ircd::db: Add Env::Priority:USER (6.1.1). 2020-05-05 19:58:37 -07:00
Jason Volk
5fbcc5b982 ircd::db: Reflect kPeriodicCompaction (6.6.2). 2020-05-05 19:58:37 -07:00
Jason Volk
3ebc8f8a33 ircd::db: Reflect kErrorRecovery (5.17.2). 2020-05-05 19:58:37 -07:00
Jason Volk
36a0394184 ircd::db::database: Add custom allocator stub; apply per-cache allocators. 2020-05-05 19:58:37 -07:00
Jason Volk
9f2bdd3ca2 Upgrade to RocksDB 6.6.4.
ircd::db::database::cache: Remove deprecated interface override.

ircd::db::database::cache: Add new GetCharge() abstract virtual override.

ircd::db: Use set_stats_level() for privated member.
2020-05-05 19:58:37 -07:00
Jason Volk
cb7e90fc0f ircd::http: Use unsigned 64bit; add sanity ceiling for content-length. 2020-05-05 17:40:50 -07:00
Jason Volk
63e0543175 ircd::http: Use unsigned 32bit type for chunk size. 2020-05-05 17:32:41 -07:00
Jason Volk
85fb1804be rocksdb::port: Simplify assertion.
ircd::ctx::posix: Fix erroneous comment.

ircd::ctx::posix: Relax assertion.
2020-05-04 19:09:32 -07:00
Jason Volk
36d9dbf0af ircd::ctx::posix: Add linker hooks for specific pthread functions. 2020-05-04 16:09:39 -07:00
Jason Volk
b3dbf0cd01 ircd::ctx: Start an interpositionable posix thread interface. 2020-05-04 16:09:39 -07:00
Jason Volk
18f215d3f0 ircd: Move main_thread assertion related to ctx; adjust condition. 2020-05-04 16:09:39 -07:00
Jason Volk
05638f9e77 ircd::db: Additional comments for fixes; minor reorg. 2020-05-04 13:15:45 -07:00
Jason Volk
d72124f7c6 ircd::ctx: Bring condition_variable up to parity with ctx::dock. 2020-05-04 13:15:45 -07:00
Jason Volk
51cb09c31a ircd::mods::ldso: Add strtab lookup convenience. 2020-05-02 23:57:53 -07:00
Jason Volk
747bc99987 ircd::mods::ldso: Add util for base addr from link map. 2020-05-02 23:57:53 -07:00
Jason Volk
6f3e051563 ircd::mods::ldso: Add wrapper for dlinfo(3). 2020-05-02 23:57:53 -07:00
Jason Volk
9962d80c6e ircd::backtrace: Increase constness. 2020-05-02 23:57:53 -07:00
Jason Volk
8f827fd4b7 ircd::backtrace: Disable workaround for stack global in clang. 2020-05-02 23:57:53 -07:00
Jason Volk
7df29b7ebe ircd::db: Minor cleanup. 2020-05-02 23:57:53 -07:00
Jason Volk
50a67b1ae3 ircd::net::dns::resolver: Improve default configured rates. 2020-04-30 14:54:09 -07:00
Jason Volk
e6d71d1ab0 ircd::db: Cleanup and relax interpositions; also reverts a416481e1b. 2020-04-30 14:02:17 -07:00
Jason Volk
f7d6a00acb ircd::allocator: Weaken the extern hook declarations. 2020-04-30 05:36:07 -07:00
Jason Volk
a416481e1b ircd::db: Use #error rather than #warning when RocksDB fixes cannot be interposed. 2020-04-29 15:27:06 -07:00
Jason Volk
693d3c72bb ircd::db: Supply our own created SstFileManager instance. 2020-04-29 03:37:35 -07:00
Jason Volk
b3b7385511 ircd::db: Interpose mitigations for rocksdb::DeleteScheduler etc. 2020-04-29 03:37:35 -07:00
Jason Volk
9d7c1096e8 ircd::db: Consolidate rocksdb interpositions into db_fixes unit; minor cleanup. 2020-04-29 03:37:35 -07:00
Jason Volk
398fb026b0 ircd::info: Additional execution specific; reorg hardware/system related.
ircd::info: Sample hardware cache characteristics.
2020-04-28 20:18:48 -07:00
Jason Volk
c7f633a62d ircd::net::dns::resolver: Even less aggressive default rate. 2020-04-27 16:06:28 -07:00
Jason Volk
9bbc5834af ircd: Add missing globular_imatch. 2020-04-26 17:02:21 -07:00
Jason Volk
3c69f85e66 ircd::net::dns::resolver: Less aggressive conf defaults. 2020-04-26 16:32:47 -07:00
Jason Volk
4960912848 ircd::server: Additional convenience query for linked peers. 2020-04-25 19:30:21 -07:00
Jason Volk
2556a18cdf ircd::net::dns: Improve cache waiting dup check. 2020-04-25 00:28:39 -07:00