The MariaDB is very slow and at times it is unresponsive., while working on Database Encryption.
After updated below MariaDB encryption variables , initiated the mariadb service. while few tables are getting auto encrypted there are errors in mariadb error log file
plugin_dir=<MariaDB_Bin>/lib/plugin
plugin_load_add=file_key_management.so
file_key_management_filename=/<PATH>/keyfile.enc
file_key_management_filekey=FILE:/<PATH>/keyfile.passwd
file_key_management_encryption_algorithm=aes_cbc
encrypt_binlog=ON
innodb_encrypt_log=ON
innodb_encryption_threads=7
innodb_encrypt_tables=FORCE
innodb_encrypt_temporary_tables=ON
encrypt_tmp_disk_tables=ON
encrypt_tmp_files=ON
aria_encrypt_tables=ON
innodb_encryption_rotate_key_age=1024
innodb_encryption_rotation_iops=1024
=== MariaDb Error Log ============
2024-03-12 9:57:58 0 [Note] /data/HCL/mariadb/bin/mariadbd: ready for connections.
Version: '10.5.9-MariaDB-log' socket: '/tmp/mysql.sock' port: 3306 MariaDB Server
2024-03-12 10:23:03 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 10:24:55 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 10:26:27 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 10:27:15 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 10:31:06 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 10:31:46 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 2 pending operations
2024-03-12 10:32:22 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 10:33:21 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 10:33:44 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 10:34:16 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 10:35:17 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 2 pending operations
2024-03-12 10:39:15 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 10:50:21 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 10:51:47 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 10:58:09 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 11:11:22 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 11:11:43 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 11:24:04 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 11:31:38 4 [Note] InnoDB: Cannot close file ./platform/usm_opt_lock.ibd because of 1 pending operations
2024-03-12 11:35:43 0 [Warning] InnoDB: A long semaphore wait:
--Thread 139894688810752 has waited at srv0srv.cc line 1554 for 245.00 seconds the semaphore:
X-lock on RW-latch at 0x55d36855e338 created in file dict0dict.cc line 1041
a writer (thread id 139906278823680) has reserved it in mode exclusive
number of readers 0, waiters flag 1, lock_word: 0
Last time write locked in file handler0alter.cc line 6255
2024-03-12 11:35:43 0 [Note] InnoDB: A semaphore wait:
{"report":{"fcp":2907.5999999046326,"ttfb":788.5,"pageVisibility":"visible","entityId":128328,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"15d40b7b-78bb-4db8-85f2-bc05e8b65048","navigationType":0,"readyForUser":3052.4000000953674,"redirectCount":0,"resourceLoadedEnd":2396.2999999523163,"resourceLoadedStart":793.7000000476837,"resourceTiming":[{"duration":245.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":793.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":793.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1039.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":245.89999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":793.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":793.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1039.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":1007.8999998569489,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":794.2000000476837,"connectEnd":1053.7999999523163,"connectStart":1053.7999999523163,"domainLookupEnd":1053.7999999523163,"domainLookupStart":1053.7999999523163,"fetchStart":794.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1065.5999999046326,"responseEnd":1802.0999999046326,"responseStart":1100.9000000953674,"secureConnectionStart":1053.7999999523163},{"duration":1562.8999998569489,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":794.4000000953674,"connectEnd":794.4000000953674,"connectStart":794.4000000953674,"domainLookupEnd":794.4000000953674,"domainLookupStart":794.4000000953674,"fetchStart":794.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1066.0999999046326,"responseEnd":2357.2999999523163,"responseStart":1106,"secureConnectionStart":794.4000000953674},{"duration":322.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":794.5999999046326,"connectEnd":794.5999999046326,"connectStart":794.5999999046326,"domainLookupEnd":794.5999999046326,"domainLookupStart":794.5999999046326,"fetchStart":794.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1066.5999999046326,"responseEnd":1117.5,"responseStart":1113.5999999046326,"secureConnectionStart":794.5999999046326},{"duration":317.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":794.7000000476837,"connectEnd":794.7000000476837,"connectStart":794.7000000476837,"domainLookupEnd":794.7000000476837,"domainLookupStart":794.7000000476837,"fetchStart":794.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1066.7999999523163,"responseEnd":1112.5,"responseStart":1104.2999999523163,"secureConnectionStart":794.7000000476837},{"duration":317.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":794.9000000953674,"connectEnd":794.9000000953674,"connectStart":794.9000000953674,"domainLookupEnd":794.9000000953674,"domainLookupStart":794.9000000953674,"fetchStart":794.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1066.9000000953674,"responseEnd":1112.0999999046326,"responseStart":1102.7999999523163,"secureConnectionStart":794.9000000953674},{"duration":267.2000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":795.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":795.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1062.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":359.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":795.2000000476837,"connectEnd":795.2000000476837,"connectStart":795.2000000476837,"domainLookupEnd":795.2000000476837,"domainLookupStart":795.2000000476837,"fetchStart":795.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1076.4000000953674,"responseEnd":1154.9000000953674,"responseStart":1125,"secureConnectionStart":795.2000000476837},{"duration":267.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":795.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":795.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1063.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":349.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":805.2999999523163,"connectEnd":805.2999999523163,"connectStart":805.2999999523163,"domainLookupEnd":805.2999999523163,"domainLookupStart":805.2999999523163,"fetchStart":805.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1077,"responseEnd":1154.5999999046326,"responseStart":1118,"secureConnectionStart":805.2999999523163},{"duration":1589.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":806.4000000953674,"connectEnd":806.4000000953674,"connectStart":806.4000000953674,"domainLookupEnd":806.4000000953674,"domainLookupStart":806.4000000953674,"fetchStart":806.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":2376.7999999523163,"responseEnd":2396.2000000476837,"responseStart":2395.0999999046326,"secureConnectionStart":806.4000000953674},{"duration":1589.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":806.5,"connectEnd":806.5,"connectStart":806.5,"domainLookupEnd":806.5,"domainLookupStart":806.5,"fetchStart":806.5,"redirectEnd":0,"redirectStart":0,"requestStart":2377.2000000476837,"responseEnd":2396.2999999523163,"responseStart":2395.7999999523163,"secureConnectionStart":806.5},{"duration":529.2000000476837,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1968,"connectEnd":1968,"connectStart":1968,"domainLookupEnd":1968,"domainLookupStart":1968,"fetchStart":1968,"redirectEnd":0,"redirectStart":0,"requestStart":2455.4000000953674,"responseEnd":2497.2000000476837,"responseStart":2495.5,"secureConnectionStart":1968}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":602,"responseStart":788,"responseEnd":812,"domLoading":792,"domInteractive":3190,"domContentLoadedEventStart":3190,"domContentLoadedEventEnd":3253,"domComplete":4663,"loadEventStart":4663,"loadEventEnd":4663,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":3150.2999999523163},{"name":"bigPipe.sidebar-id.end","time":3151.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":3151.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":3153.7000000476837},{"name":"activityTabFullyLoaded","time":3274.2000000476837}],"measures":[],"correlationId":"27820f67ab192","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":117,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The page flushing was last revised in
MDEV-26055. Also MDEV-32977 has been filed for similar symptoms.MariaDB Server 10.5.9 was released 3 years ago. Can you try to upgrade to a later version?