diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-01-13 19:52:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-13 19:52:55 +0200 |
commit | 68658fc1e0a0902343bb165b7ed12b6fba1f2202 (patch) | |
tree | b4b15043880ca48d146f8d8c09a039db42d69d71 /database/engine/rrdengine.h | |
parent | 6f587f5aced38d7f55a95fe815bb59499552345d (diff) |
DBENGINE v2 - improvements 2 (#14257)
* allow extents to be merged for as long as possible
* do not block the event loop while recalculating retention due to datafile rotation
* buffers are incrementally cleaned up, every second, by just 1 entry
* fix order of commands
* remove newline
* measure cancelled extent read requests
* count all cancelled extent requests
* do not double count failed pages
* fixed cancelled name
* Fix error and warnings when compiling with --disable-dbengine
* when the timeframe is outside retention and whole query should fail
* do not mark as failed pages that have been loaded but have been skipped
* added chart to show cache memory calculation variables
* LONG_MAX for 32-bit compatibility
* fix cache size calculation on 32-bit
* fix cache size calculation on 32-bit - use unsinged long long
* fix compilation warnings on 32-bits
* fix another compilation warning on 32-bits
* fix compilation warnings on older 32-bit compilers
* fix compilation warnings on older 32-bit compilers - more of them
* disable ML threads joining
Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
Diffstat (limited to 'database/engine/rrdengine.h')
-rw-r--r-- | database/engine/rrdengine.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/database/engine/rrdengine.h b/database/engine/rrdengine.h index dc519395e6..facc4c2d44 100644 --- a/database/engine/rrdengine.h +++ b/database/engine/rrdengine.h @@ -88,20 +88,19 @@ typedef enum __attribute__ ((__packed__)) { // worker related statuses PDC_PAGE_FAILED_INVALID_EXTENT = (1 << 9), - PDC_PAGE_FAILED_UUID_NOT_IN_EXTENT = (1 << 10), + PDC_PAGE_FAILED_NOT_IN_EXTENT = (1 << 10), PDC_PAGE_FAILED_TO_MAP_EXTENT = (1 << 11), PDC_PAGE_FAILED_TO_ACQUIRE_DATAFILE= (1 << 12), - PDC_PAGE_LOADED_FROM_EXTENT_CACHE = (1 << 13), - PDC_PAGE_LOADED_FROM_DISK = (1 << 14), + PDC_PAGE_EXTENT_FROM_CACHE = (1 << 13), + PDC_PAGE_EXTENT_FROM_DISK = (1 << 14), - PDC_PAGE_PRELOADED_PASS1 = (1 << 15), - PDC_PAGE_PRELOADED_PASS4 = (1 << 16), - PDC_PAGE_PRELOADED_WORKER = (1 << 17), + PDC_PAGE_CANCELLED = (1 << 15), // the query thread had left when we try to load the page - PDC_PAGE_SOURCE_MAIN_CACHE = (1 << 19), - PDC_PAGE_SOURCE_OPEN_CACHE = (1 << 19), - PDC_PAGE_SOURCE_JOURNAL_V2 = (1 << 20), + PDC_PAGE_SOURCE_MAIN_CACHE = (1 << 16), + PDC_PAGE_SOURCE_OPEN_CACHE = (1 << 17), + PDC_PAGE_SOURCE_JOURNAL_V2 = (1 << 18), + PDC_PAGE_PRELOADED_PASS4 = (1 << 19), // datafile acquired PDC_PAGE_DATAFILE_ACQUIRED = (1 << 30), |