Commit Graph

  • 92485032b2 Cache bin: improve comments. David Goldblatt 2020-03-07 15:56:49 -08:00
  • d701a085c2 Fast path: allow low-water mark changes. David Goldblatt 2020-03-04 08:58:42 -08:00
  • 397da03865 Cache bin: rewrite to track more state. David Goldblatt 2020-03-03 18:32:36 -08:00
  • fef0b1ffe4 Cache bin: Remove last internals accesses. David Goldblatt 2020-03-02 18:40:31 -08:00
  • 0a2fcfac01 Tcache: Hold cache bin allocation explicitly. David Goldblatt 2020-03-02 18:28:17 -08:00
  • d498a4bb08 Cache bin: Add an emptiness assertion. David Goldblatt 2020-03-02 18:14:19 -08:00
  • 6a7aa46ef7 Cache bin: Add a debug method for init checking. David Goldblatt 2020-03-02 18:07:19 -08:00
  • 370c1ea007 Cache bin: Write the unit test in terms of the API David Goldblatt 2020-03-02 14:14:08 -08:00
  • 7f5ebd211c Cache bin: set low-water internally. David Goldblatt 2020-02-29 15:07:38 -08:00
  • 60113dfe3b Cache bin: Move in initialization code. David Goldblatt 2020-02-29 14:41:47 -08:00
  • 44529da852 Cache-bin: Make flush modifications internal David Goldblatt 2020-02-29 10:48:59 -08:00
  • ff6acc6ed5 Cache bin: simplify names and argument ordering. David Goldblatt 2020-02-28 19:12:07 -08:00
  • e1dcc557d6 Cache bin: Only take the relevant cache_bin_info_t David Goldblatt 2020-02-28 18:55:33 -08:00
  • 1b00d808d7 cache_bin: Don't let arena see empty position. David Goldblatt 2020-02-27 10:22:46 -08:00
  • d303f30796 cache_bin nflush -> n. David Goldblatt 2020-02-26 17:39:55 -08:00
  • 74d36d78ef Cache bin: Make ncached_max a query on the info_t. David Goldblatt 2020-02-26 17:23:47 -08:00
  • b66c0973cc cache_bin: Don't allow direct internals access. David Goldblatt 2020-02-26 17:10:12 -08:00
  • da68f73296 Move percpu_arena_update. David Goldblatt 2020-02-25 12:18:51 -08:00
  • 909c501b07 Cache_bin: Shouldn't know about tcache. David Goldblatt 2020-02-25 12:14:48 -08:00
  • 79f1ee2fc0 Move junking out of arena/tcache code. David Goldblatt 2020-02-28 11:37:39 -08:00
  • b428dceeaf Config: Warn on void * pointer arithmetic. David Goldblatt 2020-02-29 16:53:00 -08:00
  • 22657a5e65 Extents: Silence the "potentially unused" warning. David Goldblatt 2020-03-01 09:36:09 -08:00
  • 4a78c6d81b Correct thread event unit test Yinan Zhang 2020-03-06 15:31:40 -08:00
  • 305b1f6d96 Correction on geometric sampling Yinan Zhang 2020-03-04 10:27:30 -08:00
  • 6c3491ad31 Tcache: Unify bin flush logic. David T. Goldblatt 2020-02-23 20:33:04 -08:00
  • 9f4fc27389 Ehooks: Fix a build warning. David T. Goldblatt 2020-02-25 07:47:04 -08:00
  • bc31041edb Cirrus-CI: test on new freebsd releases. Qi Wang 2020-02-21 11:05:57 -08:00
  • 51bd147422 Make use of assert_* in test/unit/thread_event.c Yinan Zhang 2020-02-06 10:57:47 -08:00
  • 9d2cc3b0fa Make use of assert_* in test/unit/prof_recent.c Yinan Zhang 2020-02-06 10:55:19 -08:00
  • a88d22ea11 Make use of assert_* in test/unit/inspect.c Yinan Zhang 2020-02-06 10:27:09 -08:00
  • 0ceb31184d Make use of assert_* in test/unit/buf_writer.c Yinan Zhang 2020-02-06 10:39:42 -08:00
  • fa61579382 Add assert_* functionality to tests Yinan Zhang 2020-02-06 10:10:10 -08:00
  • 21dfa4300d Change assert_* to expect_* in tests Yinan Zhang 2020-02-18 14:39:06 -08:00
  • 162c2bcf31 Background thread: take base as a parameter. David T. Goldblatt 2020-02-17 14:13:38 -08:00
  • 29436fa056 Break prof and tcache knowledge of b0. David T. Goldblatt 2020-02-17 14:09:29 -08:00
  • a0c1f4ac57 Rtree: take the base allocator as a parameter. David T. Goldblatt 2020-02-17 13:11:10 -08:00
  • 7013716aaa Emap: Take (and propagate) a zeroed parameter. David T. Goldblatt 2020-02-17 12:24:09 -08:00
  • 182192f83c Base: Pull into a single header. David T. Goldblatt 2020-02-17 12:00:57 -08:00
  • 34b7165fde Put szind_t, pszind_t in sz.h. David T. Goldblatt 2020-02-17 11:48:42 -08:00
  • 7e6c8a7286 Emap: Standardize naming. David Goldblatt 2020-02-06 13:45:04 -08:00
  • ac50c1e44b Emap: Remove direct access to emap internals. David Goldblatt 2020-02-06 13:16:07 -08:00
  • 06e42090f7 Make jemalloc.c use the emap interface. David Goldblatt 2020-02-06 10:59:48 -08:00
  • f7d9c6c42d Emap: Move in alloc_ctx lookup functionality. David Goldblatt 2020-02-05 18:58:19 -08:00
  • 65a54d7714 Emap: Move in szind and slab modifications. David Goldblatt 2020-02-05 17:17:15 -08:00
  • 9b5d105fc3 Emap: Move in iealloc. David Goldblatt 2020-02-05 14:50:34 -08:00
  • 1d449bd9a6 Emap: Internal rtree context setting. David Goldblatt 2020-02-05 13:51:05 -08:00
  • 08eb1e6c31 Emap: Comments and cleanup David Goldblatt 2020-02-05 12:16:30 -08:00
  • 231d1477e5 Rename emap_split_prepare_t -> emap_prepare_t. David Goldblatt 2020-02-03 14:21:48 -08:00
  • 0586a56f39 Emap: Move in merge functionality. David Goldblatt 2020-02-03 14:15:07 -08:00
  • 040eac77cc Tell edatas their creation arena immediately. David Goldblatt 2020-02-03 13:33:05 -08:00
  • 7c7b702064 Emap: Move over metadata splitting logic. David Goldblatt 2020-02-03 13:27:21 -08:00
  • 44f5f53605 Emap: Move over deregistration functions. David Goldblatt 2020-01-30 15:02:52 -08:00
  • 6513d9d923 Emap: Move over deregistration boundary functions. David Goldblatt 2020-01-30 14:55:36 -08:00
  • 9b5ca0b09d Emap: Move in slab interior registration. David Goldblatt 2020-01-30 13:32:38 -08:00
  • d05b61db4a Emap: Move extent boundary registration in. David Goldblatt 2020-01-30 12:40:07 -08:00
  • ca21ce4071 Emap: Move in write_acquired from extent. David Goldblatt 2020-01-30 12:31:19 -08:00
  • 01f255161c Add emap, for tracking extent locking. David Goldblatt 2020-01-27 13:55:46 -08:00
  • 0f686e82a3 Avoid variable length array with length 0. Qi Wang 2020-02-13 20:04:22 -08:00
  • 68e8ddcaff Add mallctl for dumping last-N profiling records Yinan Zhang 2020-02-04 16:05:11 -08:00
  • bc05ecebf6 Add const qualifier in assert_cmp() Yinan Zhang 2020-02-05 15:33:31 -08:00
  • ba0e35411c Rework the bin locking around tcache refill / flush. Qi Wang 2020-02-07 14:53:36 -08:00
  • 7fd22f7b2e Fix Undefined Behavior in hash.h Kamil Rytarowski 2020-02-13 14:49:32 +01:00
  • ca1f082251 Disallow merge across mmap regions to preserve SN / first-fit. Qi Wang 2019-12-30 17:14:44 -08:00
  • 7014f81e17 Add ASSURED_WRITE in mallctl Yinan Zhang 2020-02-04 16:36:02 -08:00
  • 2476889195 Add inspect.c to MSVC filters Yinan Zhang 2020-02-04 15:00:37 -08:00
  • 9cac3fa8f5 Encapsulate buffer allocation in buffered writer Yinan Zhang 2020-02-03 15:56:13 -08:00
  • bdc08b5158 Better naming buffered writer Yinan Zhang 2020-01-23 15:00:01 -08:00
  • c6bfe55857 Update the tsd description. Qi Wang 2020-02-03 23:59:31 -08:00
  • e896522616 Abbreviate thread-event to te. Qi Wang 2020-01-30 16:31:45 -08:00
  • 5e500523a0 Remove thread_event_boot(). Qi Wang 2020-01-29 20:29:05 -08:00
  • 97dd79db6c Implement deallocation events. Qi Wang 2020-01-28 21:12:06 -08:00
  • 536ea6858e NetBSD specific changes: - NetBSD overcommits - When mapping pages, use the maximum of the alignment requested and the compiled-in PAGE constant which might be greater than the current kernel pagesize, since we compile binaries with the maximum page size supported by the architecture (so that they work with all kernels). zoulasc 2020-02-03 15:35:08 -05:00
  • 974222c626 Add safety check on sdallocx slow / sampled path. Qi Wang 2020-01-30 14:35:54 -08:00
  • 88d9eca848 Enforce page alignment for sampled allocations. Qi Wang 2020-01-28 17:32:45 -08:00
  • 0f552ed673 Don't purge huge extents when decay is off. Qi Wang 2020-01-13 16:18:32 -08:00
  • 38a48e5741 Set reentrancy to 1 for tsd_state_purgatory. Qi Wang 2020-01-16 13:00:35 -08:00
  • 88b0e03a4e Implement opt.stats_interval and the _opts options. Qi Wang 2020-01-13 22:29:17 -08:00
  • d71a145ec1 Chagne prof_accum_t to counter_accum_t for general purpose. Qi Wang 2020-01-23 13:18:04 -08:00
  • ea351a7b52 Fix syntax errors in doc for thread.idle. Qi Wang 2020-01-23 16:05:37 -08:00
  • d92f0175c7 Introduce NEITHER_READ_NOR_WRITE in ctl. David Goldblatt 2020-01-22 14:59:28 -08:00
  • 6a622867ca Add "thread.idle" mallctl. David Goldblatt 2020-01-22 11:13:26 -08:00
  • f81341a48b Fallback to unbuffered printing if OOM Yinan Zhang 2020-01-13 14:23:10 -08:00
  • cd6e908241 Add stress test for last-N profiling mode Yinan Zhang 2020-01-14 16:01:45 -08:00
  • 84b28c6a13 Properly handle tdata deletion race Yinan Zhang 2020-01-16 20:38:46 -08:00
  • d331208560 Get rid of redundant logic in prof Yinan Zhang 2020-01-16 20:43:45 -08:00
  • a72ea0db60 Restructure and correct sleep utility for testing Yinan Zhang 2020-01-15 07:25:59 -08:00
  • 7b67ed0b5a Get rid of lock overlap in prof_recent_alloc_reset Yinan Zhang 2020-01-14 16:10:23 -08:00
  • bd3be8e0b1 Remove commit parameter to ecache functions. David Goldblatt 2020-01-16 13:28:27 -08:00
  • b8df719d5c No tdata creation for backtracing on dying thread Yinan Zhang 2020-01-14 11:23:32 -08:00
  • dab81bd315 Rework and fix the assertions on malloc fastpath. Qi Wang 2020-01-13 23:28:09 -08:00
  • ad3f3fc561 Fetch time after tctx and only for samples Yinan Zhang 2020-01-14 11:12:18 -08:00
  • a5d3dd4059 Fix an assertion on extent head state with dss. Qi Wang 2020-01-02 11:19:14 -08:00
  • 2b604a3016 Record request size in prof recent entries Yinan Zhang 2020-01-09 10:20:34 -08:00
  • 40a391408c Define constructor for buffered writer argument Yinan Zhang 2020-01-09 16:50:09 -08:00
  • 6d8e616902 Make buffered writer an independent module Yinan Zhang 2020-01-09 16:36:09 -08:00
  • 6b6b4709b3 Unify buffered writer naming Yinan Zhang 2020-01-09 09:59:17 -08:00
  • 9a60cf54ec Last-N profiling mode Yinan Zhang 2019-12-18 13:38:14 -08:00
  • 7a27a05940 Delete tdata states used for cleanup Yinan Zhang 2019-12-26 15:28:04 -08:00
  • e98ddf7987 Fix unlikely condition in arena_prof_info_get() Yinan Zhang 2019-12-24 11:30:23 -08:00
  • 3fa142cf39 Remove _externs from prof internal header names Yinan Zhang 2019-12-22 20:02:28 -08:00