summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Possibly fixed epoch retirement sync errorDouglas Rumbaugh2024-01-311-1/+5
|
* Insert throughput benchmarkDouglas Rumbaugh2024-01-311-1/+1
|
* Query/Insert intermix benchmarksDouglas Rumbaugh2024-01-311-3/+4
|
* Temporary thread affinity for reconstructionDouglas Rumbaugh2024-01-312-1/+33
|
* TrieSpline + testsDouglas Rumbaugh2024-01-301-61/+90
|
* Benchmarking updatesDouglas Rumbaugh2024-01-301-6/+23
|
* DynamicExtension: Fixed reconstruction trigger data raceDouglas Rumbaugh2024-01-241-4/+7
| | | | | Tweak the reconstruction trigger code to ensure that multiple reconstructions won't be triggered at the same time.
* Adjusted recon_benchmark and properly shutdown FIFOSchedulerDouglas Rumbaugh2024-01-221-0/+1
|
* FIFOScheduler: added automake wakeupDouglas Rumbaugh2024-01-221-1/+12
| | | | | | | | | | | | Sometimes, when the max thread count is exceeded, it is possible for the scheduler to lock up. This is because the scheduler is only run when a new job is put into the queue, and so it is possible for a job to be blocked by thread limitations and be left sitting in the queue. If the main program is waiting on this job to finish before scheduling a new one, then the system deadlocks. I added a second background thread to the scheduler that wakes the scheduler up every 20us to resolve this and prevent these deadlocks.
* Added RangeCount queryDouglas Rumbaugh2024-01-221-0/+169
|
* Initial rough-out of internal statistics trackerDouglas Rumbaugh2024-01-196-35/+157
| | | | | | Need to figure out the best way to do the detailed tracking in a concurrent manner. I was thinking just an event log, with parsing routines for extracting statistics. But that'll be pretty slow.
* Multiple concurrency bug fixesDouglas Rumbaugh2024-01-178-143/+130
| | | | | | | | A poorly organized commit with fixes for a variety of bugs that were causing missing records. The core problems all appear to be fixed, though there is an outstanding problem with tombstones not being completely canceled. A very small number are appearing in the wrong order during the static structure test.
* Concurrency testing and bug fixesDouglas B. Rumbaugh2024-01-152-7/+24
|
* Use 16-byte CAS to control buffer headDouglas B. Rumbaugh2024-01-151-61/+59
|
* Various single-threaded bug fixesDouglas B. Rumbaugh2024-01-154-15/+55
|
* Initial integration of new buffering scheme into frameworkDouglas Rumbaugh2024-01-128-277/+142
| | | | | It isn't working right now (lotsa test failures), but we're to the debugging phase now.
* BufferView.h: Hopefully the last necessary tweak to the move semantics stuffDouglas Rumbaugh2024-01-121-24/+2
| | | | | | | | You can't move assign an std::Bind, but you can move construct it. So I had to disable the move assignment operator. This means that when you change the BufferView ownership over to, say, a QueryBufferState object, you need to do it by passing std::move(buffview) into a constructor call only--you cannot assign it.
* InternalLevel update and testsDouglas Rumbaugh2024-01-112-16/+39
| | | | | Plus some assorted fixes for move semantics stuff in BufferView that accompanied these changes.
* Ported ISAMTree over to new buffer setupDouglas Rumbaugh2024-01-111-60/+65
| | | | | I may still play with the shard from shards constructor, and queries need some work yet too.
* BufferView: enforce move semanticsDouglas Rumbaugh2024-01-111-2/+19
| | | | | | Because a BufferView's lifetime is so tightly linked to the lifetime of regions of the buffer, it can't be copied without potentially breaking things.
* Fixed some potential buffer-related concurrency bugsDouglas Rumbaugh2024-01-112-57/+94
|
* MutableBuffer: multithreaded insert test + bugfixesDouglas Rumbaugh2024-01-101-4/+9
|
* MutableBuffer+View: Implementation with unit testsDouglas Rumbaugh2024-01-102-49/+116
|
* Initial update of buffer to new specificationsDouglas B. Rumbaugh2024-01-092-152/+62
| | | | | | | | | | | | | | | | | | | There are a few minor issues that this introduces, however. Global tracking of a lot of secondary information, such as weights for WIRS/WSS, or the exact number of tombstones will need to be approached differently than they have been historically with this new approach. I've also removed most of the tombstone capacity related code. We had decided not to bother enforcing this at the buffer level anyway, and it would greatly increase the complexity of the problem of predicting when the next compaction will be. On the whole this new approach seems like it'll simplify a lot. This commit actually removes significantly more code than it adds. One minor issue: the currently implementation will have problems in the circular array indexes once more than 2^64 records have been inserted. This doesn't seem like a realistic problem at the moment.
* DynamicExtension: comments/reorganizationDouglas Rumbaugh2023-12-211-7/+19
| | | | | Clarified the reasoning for a few things in comments that just tripped me up during debugging.
* InternalLevel: appending an empty level is a no-opDouglas Rumbaugh2023-12-211-0/+7
| | | | | | | | The existing reconstruction logic will occasionally attempt to append an empty level to another empty level, for some reason. While the underlying cause of this needs to be looked into, this special case should prevent shard constructors being called with a shard count of 0 under tiering, reducing the error handling overhead of shard code.
* ExtensionStructure: adjusted leveling logic to avoid unneeded copiesDouglas Rumbaugh2023-12-211-5/+14
| | | | | | | | This also reduces the special-case overhead on shards. As it was, shards would need to handle a special case when constructing from other shards where the first of the two provided shards was a nullptr, which caused a number of subtle issues (or outright crashes in some cases) with existing shard implementations.
* Refactoring: corrected a number of names and added more commentsDouglas Rumbaugh2023-12-137-140/+163
|
* Lock protect Epoch during retirement to avoid use-after-free errorsDouglas Rumbaugh2023-11-151-11/+16
|
* Tombstone Compaction: re-enabled tombstone compactionDouglas Rumbaugh2023-11-134-3/+106
| | | | | | | Currently, proactive buffer tombstone compaction is disabled by forcing the buffer tombstone capacity to match its record capacity. It isn't clear how to best handle proactive buffer compactions in an environment where new buffers are spawned anyway.
* Fixed merge logic bug in tieringDouglas Rumbaugh2023-11-132-1/+3
| | | | | | | | | | | | In InternalLevel::clone(), the m_shard_cnt variable was not being set appropriately in the clone, resulting in the record counts reported for a multi-shard level to be reported incorrectly. In DynamicExtension::merge(), the merges were being performed in the wrong order, resulting in multi-level merges deleting records. The leveling tests all passed even with this bug for some reason, but it caused tiering tests to fail. It isn't clear _why_ leveling appeared to work, but the bug is now fixed, so that's largely irrelevant I suppose.
* Fixed various concurrency bugsDouglas Rumbaugh2023-11-093-21/+84
| | | | | | | | | | 1. The system should now cleanly shutdown when the DynamicExtension object is destroyed. Before now, this would lead to use-after-frees and/or deadlocks. 2. Improved synchronization on mutable buffer structure management to fix the issue of the framework losing track of buffers during Epoch changeovers.
* Comment and License updatesDouglas Rumbaugh2023-11-0729-34/+68
|
* DynamicExtension: revised the way uneeded buffers/structures are releasedDouglas Rumbaugh2023-11-071-8/+15
|
* Merge branch 'query-refactor'Douglas Rumbaugh2023-11-0712-1647/+1271
|\
| * DynamicExtension::create_static_structure: fixed heap overflowDouglas Rumbaugh2023-11-071-1/+1
| |
| * Converted WIRS to the new interfaceDouglas Rumbaugh2023-11-072-287/+304
| |
| * Alias shard fixesDouglas Rumbaugh2023-11-072-16/+25
| |
| * Refactoring progressDouglas Rumbaugh2023-11-068-690/+249
| |
| * started refactoring queries interfaceDouglas B. Rumbaugh2023-11-025-361/+400
| |
* | DynamicExtension: fixed race in get_active_epoch_protectedDouglas Rumbaugh2023-11-061-2/+11
| | | | | | | | | | | | | | | | This function wasn't ensuring that that the epoch pinned and the epoch returned were the same epoch in the situation where the epoch was advanced in the middle of the call. This is now resolved, and further the function will return the newer epoch, rather than the older one, in such a situation.
* | InternalLevel: switched to std::sharedptr for shard memory managementDouglas Rumbaugh2023-11-061-52/+29
| |
* | DynamicExtension: internal_append fixesDouglas Rumbaugh2023-11-062-10/+55
| | | | | | | | | | | | Fixed a few bugs with concurrent operation of internal_append, as well as enabled the spawning of multiple empty buffers while merges are currently active.
* | DynamicExtension: mutex bug fixDouglas Rumbaugh2023-11-061-2/+2
| | | | | | | | Fixed an incorrectly initialized lock guard
* | Epoch: Adjusted add empty buffer behaviorDouglas Rumbaugh2023-11-062-4/+26
| | | | | | | | | | | | | | | | Add empty buffer now supports a CAS-like operation, where it will only add a buffer if the currently active one is still the same as when the decision to add a buffer was made. This is to support adding new buffers on insert outside of the merge-lock, so that multiple concurrent threads cannot add multiple new empty buffers.
* | DynamicExtension::create_static_structure: fixed heap overflowDouglas Rumbaugh2023-11-061-1/+1
| |
* | MutableBuffer: added explicit tail variableDouglas Rumbaugh2023-11-061-5/+12
| | | | | | | | | | | | | | Use an explicit m_tail variable for insertion, rather than using m_reccnt. This ensures that the record count doesn't increase despite new records being inserted, and allows for the m_tail variable to be decremented on failure without causing the record count to momentarily change.
* | DynamicExtension: fixed some use-after free bugsDouglas Rumbaugh2023-11-061-5/+13
| | | | | | | | | | Reordered some code in internal_append() to avoid use-after frees on the mutable buffer reference used for insertion.
* | Scheduling: Switched over to a thread pool modelDouglas Rumbaugh2023-11-063-5/+12
|/
* Fixes for various bugs under SerialSchedulerDouglas B. Rumbaugh2023-10-313-17/+54
|