summaryrefslogtreecommitdiffstats
path: root/include/framework
Commit message (Collapse)AuthorAgeFilesLines
...
* ExtensionStructure: fixed incorrect constructor args in clone()Douglas B. Rumbaugh2023-10-311-2/+2
|
* FIFOScheduler: fixed a few synchronization issuesDouglas B. Rumbaugh2023-10-311-8/+5
|
* SerialScheduler: added a single-threaded schedulerDouglas B. Rumbaugh2023-10-312-0/+69
| | | | | | Added a new scheduler for ensuring single-threaded operation. Additionally, added a static assert to (at least for now) restrict the use of tagging to this single threaded scheduler.
* DynamicExtension: fixed some Epoch-related bugsDouglas B. Rumbaugh2023-10-311-6/+6
| | | | | | | | | The epochs must be released in the destructor prior to releasing the buffers and structures, as otherwise there are references remaining to these objects and their destructors will fail. Additionally, fixed a bug in the constructor resulting in a memory leak due to allocating an extra starting version and buffer.
* Epoch: Creating an epoch now takes references on buffers + versionsDouglas B. Rumbaugh2023-10-311-0/+2
| | | | | | | | | | When an epoch is created using the constructor Epoch(Structure, Buffer), it will call take_reference() on both. This was necessary to ensure that the destructor doesn't fail, as it releases references and fails if the refcnt is 0. It releases the user of the object from the burden of manually taking references in this situation.
* DynamicExtension: added a way to block on merge completionDouglas B. Rumbaugh2023-10-311-3/+31
| | | | | This is mostly just for testing purposes at the moment, though I'd imagine it may be useful for other reasons too.
* General Comment + Consistency updatesDouglas Rumbaugh2023-10-3015-252/+89
|
* DynamicExtension: comment cleanup/adjustmentsDouglas Rumbaugh2023-10-301-11/+14
|
* Epoch/DynamicExtension: added cv to epoch retirement checkDouglas Rumbaugh2023-10-302-4/+36
| | | | | | Instead of busy waiting on the active job count, a condition variable is now used to wait for all active jobs to finish before freeing an epoch's resources.
* FIFOScheduler: correctly protect m_cv with a lockDouglas Rumbaugh2023-10-301-0/+5
|
* DynamicExtension: adjusted a few operations to ensure conistencyDouglas Rumbaugh2023-10-302-15/+37
| | | | | | | | | | | | get_memory_usage, get_aux_memory_usage, get_record_count, get_tombstone_count, and create_static_structure have been adjusted to ensure that they pull from a consistent epoch, even if a change-over occurs midway through the function. These functions also now register with the epoch as a job, to ensure that the epoch they are operating own isn't retired midway through the function. Probably not a big issue for the accessors, but I could see it being very important for create_static_structure.
* Concurrency updates + fixes for compile errorsDouglas Rumbaugh2023-10-305-93/+98
|
* Began moving to an explicit epoch-based systemDouglas Rumbaugh2023-10-239-103/+481
| | | | | | | I started moving over to an explicit Epoch based system, which has necessitated a ton of changes throughout the code base. This will ultimately allow for a much cleaner set of abstractions for managing concurrency.
* BugfixesDouglas Rumbaugh2023-10-233-1/+7
|
* Initial pass w/ new scheduler setupDouglas Rumbaugh2023-10-207-341/+196
| | | | currently there's a race condition of some type to sort out.
* Checkpointing workDouglas Rumbaugh2023-10-202-33/+84
| | | | I'll probably throw all this out, but I want to stash it just in case.
* Re-structuring Project + scheduling updatesDouglas Rumbaugh2023-09-2513-45/+365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a big one--probably should have split it apart, but I'm feeling lazy this morning. * Organized the mess of header files in include/framework by splitting them out into their own subdirectories, and renaming a few files to remove redundancies introduced by the directory structure. * Introduced a new framework/ShardRequirements.h header file for simpler shard development. This header simply contains the necessary includes from framework/* for creating shard files. This should help to remove structural dependencies from the framework file structure and shards, as well as centralizing the necessary framework files to make shard development easier. * Created a (currently dummy) SchedulerInterface, and make the scheduler implementation a template parameter of the dynamic extension for easier testing of various scheduling policies. There's still more work to be done to fully integrate the scheduler (queries, multiple buffers), but some more of the necessary framework code for this has been added as well. * Adjusted the Task interface setup for the scheduler. The task structures have been removed from ExtensionStructure and placed in their own header file. Additionally, I started experimenting with using std::variant, as opposed to inheritence, to implement subtype polymorphism on the Merge and Query tasks. The scheduler now has a general task queue that contains both, and std::variant, std::visit, and std::get are used to manipulate them without virtual functions. * Removed Alex.h, as it can't build anyway. There's a branch out there containing the Alex implementation stripped of the C++20 stuff. So there's no need to keep it here.
* Bugfixes for tieringDouglas Rumbaugh2023-09-203-4/+9
| | | | | | | | | | | | Fixed a few issues that manifested during the tiering tests, 1) When a version is copied, it now contains copies of the levels, not just pointers (the levels themselves still hold pointers to the shards, though). 2) Ensure that tasks are scheduled with the correct timestamp, they were originally being scheduled backwards. The get_merge_tasks() method already returns them in the correct order, so reversing them again put it in the wrong order.
* The scheduler now spawns a seperate merge threadDouglas Rumbaugh2023-09-184-58/+221
| | | | | | | | | | | Merges are now executed from a seperate thread within the scheduler that wakes up via condition variables when new merge tasks are scheduled. In addition, tombstone limits are now enforced by the scheduler, with new merges being scheduled as needed. There are still a few tests failing, notably the zero tombstones in the last run invarient is not holding under tiering with tombstones. Need to look into that yet.
* Moved individual merge task execution into the schedulerDouglas Rumbaugh2023-09-183-35/+98
| | | | | | | | | | | | | | | | | | | | This change is made in anticipation of scheduling each task using a specific thread, and required some modification to the interface of ExtensionStructure. Namely, 1. ExtensionStructure now supports a get_merge_tasks() interface, which returns a list of the individual level merges that would need to be performed to complete a buffer flush of specified size. 2. merge_levels and merge_buffer have been promoted to the public interface, to allow their use within the scheduler. 3. merge_buffer has been modified to assume that the structure already can support a direct flush of the buffer into L0, it is now the responsibility of the caller to ensure that the necessary merges have already been completed prior to calling this method. Currently, preemptive tombstone compactions are non-functional, so some unit tests are failing. This will be fixed when the thread scheduling system is set up.
* General bugfixesDouglas Rumbaugh2023-09-182-1/+5
|
* Began re-architecting the project for concurrency supportDouglas Rumbaugh2023-09-137-308/+645
| | | | | The project is now in a state where it builds, but it probably has a lot of bugs still.
* Migrated over to using psudb-common utilities/headersDouglas Rumbaugh2023-08-243-12/+12
|
* Expanded query interfaceDouglas Rumbaugh2023-07-272-8/+43
| | | | | Query interface now enables skipping of delete processing and stopping query processing when first match is found.
* Alex shard progressDouglas Rumbaugh2023-07-261-0/+7
|
* VPTree: fixed knn queryDouglas Rumbaugh2023-07-241-2/+8
|
* Cosine Similarity TypeDouglas Rumbaugh2023-07-241-4/+48
|
* Added the parameter argument to query merge routineDouglas Rumbaugh2023-07-171-1/+1
| | | | | This is necessary for KNN, but it unused for all currently implemented query types.
* PriorityQueue: generalized priority queue comparison operationDouglas Rumbaugh2023-07-171-0/+11
| | | | | Generalized the comparison used for the priority queue to enable its use within the KNN query code.
* VPTree: changed Point format to a D-dimensional point.Douglas Rumbaugh2023-07-171-6/+24
|
* VPTree: use a secondary hash-table for point lookupsDouglas Rumbaugh2023-07-171-0/+9
|
* Initial commit of VPTree-related codeDouglas Rumbaugh2023-07-131-11/+36
| | | | | | Point lookups are currently broken; I suspect that there is something wrong with tree construction, although the quickselect implementation seems to be fine.
* Fixed query errorsDouglas Rumbaugh2023-07-031-1/+1
|
* Fixed bug(s) in tagging-based deletesDouglas B. Rumbaugh2023-06-092-1/+2
|
* Build changes and interface cleanupDouglas B. Rumbaugh2023-06-092-6/+6
| | | | | | | | | | Renamed the get_record_cnt() functions to get_record_count() for consistency, dropped references to SSIs, and added openmp build flags for PGM related targets. Also adjusted dynamic_extension_tests.inc to fail when an erase fails during the static structure testing as part of debugging a delete cancellation problem under leveling.
* General header/file cleanupDouglas Rumbaugh2023-06-071-2/+0
|
* Interface adjustmentsDouglas Rumbaugh2023-06-072-33/+10
| | | | | | Layout and Delete Policies are now specified via template parameters, and rejection sampling has been removed as an argument to the mutable buffer constructor.
* Added a pre-query hook for processing statesDouglas Rumbaugh2023-06-071-1/+3
| | | | | This is used for setting up the query alias structure stuff for sampling queries.
* InternalLevel: bugfix when building under taggingDouglas Rumbaugh2023-06-071-1/+1
|
* Fixed uninitialized record header issueDouglas Rumbaugh2023-05-301-0/+1
|
* Framework query bugfixesDouglas Rumbaugh2023-05-291-1/+1
|
* Framework-level query testing + fixesDouglas Rumbaugh2023-05-291-9/+11
|
* WIRS Query tests + fixesDouglas Rumbaugh2023-05-291-0/+4
|
* Fixed InternalLevel memory leakDouglas Rumbaugh2023-05-292-41/+61
|
* Adjusted the way that Wrapping records works to clean up interfacesDouglas Rumbaugh2023-05-294-71/+58
|
* Tests and bugfixes for frameworkDouglas Rumbaugh2023-05-295-53/+62
|
* More updates/restructuringDouglas Rumbaugh2023-05-225-40/+180
|
* Progress towards generalization of shard interfaceDouglas Rumbaugh2023-05-225-486/+215
|
* Started implementing shard interface (not finished yet)Douglas Rumbaugh2023-05-173-34/+67
|
* Removed unncessary tagging paramter from shards and levelsDouglas Rumbaugh2023-05-172-30/+26
|