summaryrefslogtreecommitdiffstats
path: root/include/framework/structure
Commit message (Collapse)AuthorAgeFilesLines
* ProgressDouglas Rumbaugh2025-01-171-11/+10
|
* Additional layout policies + more flexibility in buffer flushingDouglas Rumbaugh2025-01-162-29/+85
|
* Continued developmentDouglas B. Rumbaugh2024-12-223-39/+74
|
* Began overhauling reconstruction mechanismDouglas B. Rumbaugh2024-12-222-624/+91
|
* Warning fixesDouglas B. Rumbaugh2024-12-061-4/+5
|
* Interface update (#5)Douglas B. Rumbaugh2024-12-064-1117/+1124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Query Interface Adjustments/Refactoring Began the process of adjusting the query interface (and also the shard interface, to a lesser degree) to better accommodate the user. In particular the following changes have been made, 1. The number of necessary template arguments for the query type has been drastically reduced, while also removing the void pointers and manual delete functions from the interface. This was accomplished by requiring many of the sub-types associated with a query (parameters, etc.) to be nested inside the main query class, and by forcing the SHARD type to expose its associated record type. 2. User-defined query return types are now supported. Queries no longer are required to return strictly sets of records. Instead, the query now has LocalResultType and ResultType template parameters (which can be defaulted using a typedef in the Query type itself), allowing much more flexibility. Note that, at least for the short term, the LocalResultType must still expose the same is_deleted/is_tombstone interface as a Wrapped<R> used to, as this is currently needed for delete filtering. A better approach to this is, hopefully, forthcoming. 3. Updated the ISAMTree.h shard and rangequery.h query to use the new interfaces, and adjusted the associated unit tests as well. 4. Dropped the unnecessary "get_data()" function from the ShardInterface concept. 5. Dropped the need to specify a record type in the ShardInterface concept. This is now handled using a required Shard::RECORD member of the Shard class itself, which should expose the name of the record type. * Updates to framework to support new Query/Shard interfaces Pretty extensive adjustments to the framework, particularly to the templates themselves, along with some type-renaming work, to support the new query and shard interfaces. Adjusted the external query interface to take an rvalue reference, rather than a pointer, to the query parameters. * Removed framework-level delete filtering This was causing some issues with the new query interface, and should probably be reworked anyway, so I'm temporarily (TM) removing the feature. * Updated benchmarks + remaining code for new interface
* Fixed arithmetic bugDouglas Rumbaugh2024-05-091-1/+1
|
* TSParmsweep: enabled forcing a full buffer scanDouglas Rumbaugh2024-05-081-1/+5
|
* Added a Bentley-Saxe layout policyDouglas Rumbaugh2024-05-012-4/+75
|
* Removed debug print statementsDouglas Rumbaugh2024-04-191-2/+0
|
* Benchmark updatesDouglas Rumbaugh2024-04-191-0/+2
|
* Updates for build on OpenBSDDouglas B. Rumbaugh2024-03-251-1/+1
| | | | | | | | | Necessary updates to get the codebase building under OpenBSD 7.5 with clang. This is a minimal set of changes to get building to work, which includes disabling several things that aren't directly compatable. More work will be necessary to get full functionality. In particular, Triespline, PGM, and the reference M-tree do not currently build on OpenBSD with clang due to GNU dependencies or other gcc specific features.
* MutableBuffer: added visibility flag to records and refactored timestampDouglas Rumbaugh2024-03-221-1/+5
|
* Disabled lookahead for paper revisionDouglas Rumbaugh2024-03-221-1/+1
|
* Updates/progress towards succinct trie supportDouglas Rumbaugh2024-03-201-2/+3
|
* ExtensionStructure: first basic test of lookahead task stealingDouglas Rumbaugh2024-02-121-1/+10
|
* ExtensionStructure: Added simulated reconstruction lookaheadDouglas Rumbaugh2024-02-121-28/+88
| | | | | The reconstruction task procedure can now simulate future reconstructions to a specified depth.
* MutableBuffer: Allow hwm to equal lwmDouglas Rumbaugh2024-02-121-1/+1
| | | | | The high watermark and low watermark can now be equal, to allow for blocking reconstruction without requiring odd buffer sizes.
* Refactored Reconstruction TasksDouglas Rumbaugh2024-02-121-15/+8
| | | | | Added a ReconVector type to make it easier to do load balancing by shifting tasks around, and clean up a few interfaces.
* Added structure state vector w/ scratch version for reconstructionDouglas Rumbaugh2024-02-121-55/+89
| | | | | | | | | | | | | This approach should allow us to "simulate" a reconstruction to monitor the future state of the structure. The idea being that we can then add pre-emptive reconstructions to load balance and further smooth the tail latency curve. If a given reconstruction is significantly smaller than the next one will be, we can move some of the next one's work preemptively into the current one. The next phase is to do the simulation within the scratch_vector and then do a second pass examining the state of that reconstruction. In principle, we could look arbitrarily far ahead using this technique.
* Comment updates/fixesDouglas Rumbaugh2024-02-093-29/+42
|
* Updated VPTree to new shard/query interfacesDouglas Rumbaugh2024-02-081-3/+0
|
* Fully realized shard concept interfaceDouglas Rumbaugh2024-02-072-3/+3
|
* Fully implemented Query concept and adjusted queries to use itDouglas Rumbaugh2024-02-072-3/+3
|
* BufferView: Adjusted BV to avoid repeated modulus operationsDouglas Rumbaugh2024-02-052-15/+48
|
* Insert throughput benchmarkDouglas Rumbaugh2024-01-311-1/+1
|
* Multiple concurrency bug fixesDouglas Rumbaugh2024-01-173-36/+50
| | | | | | | | 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-151-1/+9
|
* Use 16-byte CAS to control buffer headDouglas B. Rumbaugh2024-01-151-61/+59
|
* Various single-threaded bug fixesDouglas B. Rumbaugh2024-01-152-8/+36
|
* Initial integration of new buffering scheme into frameworkDouglas Rumbaugh2024-01-122-29/+16
| | | | | 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.
* 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.
* 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-133-98/+120
|
* Tombstone Compaction: re-enabled tombstone compactionDouglas Rumbaugh2023-11-132-1/+52
| | | | | | | 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-131-0/+1
| | | | | | | | | | | | 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.
* Comment and License updatesDouglas Rumbaugh2023-11-074-4/+4
|
* InternalLevel: switched to std::sharedptr for shard memory managementDouglas Rumbaugh2023-11-061-52/+29
|
* 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.
* Fixes for various bugs under SerialSchedulerDouglas B. Rumbaugh2023-10-311-1/+4
|
* MutableBuffer: removed most concurrency control stuffDouglas B. Rumbaugh2023-10-312-52/+13
| | | | | | The buffer isn't responsible for a lot of CC anymore (just the append operation), so this code was no longer necessary. Also removed the only calls to some of these CC operations within the rest of the framework.
* ExtensionStructure: fixed incorrect constructor args in clone()Douglas B. Rumbaugh2023-10-311-2/+2
|
* General Comment + Consistency updatesDouglas Rumbaugh2023-10-304-7/+7
|