I use mariadb purely for a local sql database (via LibreOffice Base). There are no other users.
Periodically the mysql process (still called that) take 37% (sometimes more) of the total available cpu, even though I am not doing anything at all, and the local database is not being used. If I restart the service the usage drops to 0%. I have not found any specific trigger for this behaviour.
mysql.txt attached is the result of 'show engine innodb status;'
my.cnf is the configuration file. Note that I use encryption for some tables - the key is itself encrypted and held in a part of my user space which is itself encrypted (I had to allow the service to access this in the mysql.service file). I then only start the mariadb/mysql service when I decrypt that part of my user space, so that it can get the key it needs. All this works without trouble.
The conf.d file mariadb.cnf only contain character set info.
{"report":{"fcp":894.6000000238419,"ttfb":217.10000002384186,"pageVisibility":"visible","entityId":59720,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"c544f7d5-d262-4331-8c03-b9c87ca2311b","navigationType":0,"readyForUser":976,"redirectCount":0,"resourceLoadedEnd":849.1999999880791,"resourceLoadedStart":223.30000001192093,"resourceTiming":[{"duration":197.30000001192093,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":223.30000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":223.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":420.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":197.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":223.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":223.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":420.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":211.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":223.80000001192093,"connectEnd":223.80000001192093,"connectStart":223.80000001192093,"domainLookupEnd":223.80000001192093,"domainLookupStart":223.80000001192093,"fetchStart":223.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":223.80000001192093,"responseEnd":435.69999998807907,"responseStart":435.69999998807907,"secureConnectionStart":223.80000001192093},{"duration":281.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":223.89999997615814,"connectEnd":223.89999997615814,"connectStart":223.89999997615814,"domainLookupEnd":223.89999997615814,"domainLookupStart":223.89999997615814,"fetchStart":223.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":223.89999997615814,"responseEnd":505.39999997615814,"responseStart":505.39999997615814,"secureConnectionStart":223.89999997615814},{"duration":285.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":224.10000002384186,"connectEnd":224.10000002384186,"connectStart":224.10000002384186,"domainLookupEnd":224.10000002384186,"domainLookupStart":224.10000002384186,"fetchStart":224.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":224.10000002384186,"responseEnd":509.60000002384186,"responseStart":509.60000002384186,"secureConnectionStart":224.10000002384186},{"duration":287.19999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":224.30000001192093,"connectEnd":224.30000001192093,"connectStart":224.30000001192093,"domainLookupEnd":224.30000001192093,"domainLookupStart":224.30000001192093,"fetchStart":224.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":224.30000001192093,"responseEnd":511.5,"responseStart":511.5,"secureConnectionStart":224.30000001192093},{"duration":288.80000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":224.5,"connectEnd":224.5,"connectStart":224.5,"domainLookupEnd":224.5,"domainLookupStart":224.5,"fetchStart":224.5,"redirectEnd":0,"redirectStart":0,"requestStart":224.5,"responseEnd":513.3000000119209,"responseStart":513.3000000119209,"secureConnectionStart":224.5},{"duration":352.60000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":224.69999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":224.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":577.3000000119209,"responseStart":0,"secureConnectionStart":0},{"duration":290,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":224.80000001192093,"connectEnd":224.80000001192093,"connectStart":224.80000001192093,"domainLookupEnd":224.80000001192093,"domainLookupStart":224.80000001192093,"fetchStart":224.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":224.80000001192093,"responseEnd":514.8000000119209,"responseStart":514.8000000119209,"secureConnectionStart":224.80000001192093},{"duration":352.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":225,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":225,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":577.5,"responseStart":0,"secureConnectionStart":0},{"duration":291.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":225.10000002384186,"connectEnd":225.10000002384186,"connectStart":225.10000002384186,"domainLookupEnd":225.10000002384186,"domainLookupStart":225.10000002384186,"fetchStart":225.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":225.10000002384186,"responseEnd":516.5,"responseStart":516.5,"secureConnectionStart":225.10000002384186},{"duration":417.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":226.69999998807907,"connectEnd":226.69999998807907,"connectStart":226.69999998807907,"domainLookupEnd":226.69999998807907,"domainLookupStart":226.69999998807907,"fetchStart":226.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":226.69999998807907,"responseEnd":644.1999999880791,"responseStart":644.1999999880791,"secureConnectionStart":226.69999998807907},{"duration":533.6000000238419,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":230.89999997615814,"connectEnd":230.89999997615814,"connectStart":230.89999997615814,"domainLookupEnd":230.89999997615814,"domainLookupStart":230.89999997615814,"fetchStart":230.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":230.89999997615814,"responseEnd":764.5,"responseStart":764.5,"secureConnectionStart":230.89999997615814},{"duration":57.19999998807907,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":588.8000000119209,"connectEnd":588.8000000119209,"connectStart":588.8000000119209,"domainLookupEnd":588.8000000119209,"domainLookupStart":588.8000000119209,"fetchStart":588.8000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":588.8000000119209,"responseEnd":646,"responseStart":646,"secureConnectionStart":588.8000000119209},{"duration":198.39999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":650.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":650.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":848.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":198.19999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2bu7/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":849.1999999880791,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":25,"responseStart":217,"responseEnd":226,"domLoading":220,"domInteractive":1077,"domContentLoadedEventStart":1077,"domContentLoadedEventEnd":1129,"domComplete":1305,"loadEventStart":1305,"loadEventEnd":1305,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1016.8999999761581},{"name":"bigPipe.sidebar-id.end","time":1017.6000000238419},{"name":"bigPipe.activity-panel-pipe-id.start","time":1017.6999999880791},{"name":"bigPipe.activity-panel-pipe-id.end","time":1019.3999999761581},{"name":"activityTabFullyLoaded","time":1146}],"measures":[],"correlationId":"73953f1e01442b","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":133,"dbReadsTimeInMs":28,"dbConnsTimeInMs":38,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Do you need me, as one of the reporters and an 'ordinary' user, to test this? I assume that if I reset innodb-encryption-threads to, say, 4, I should be able to see that the problem doesn't re-occur. Let me know and I'll give a whirl.
I just did an ubuntu update and mariadb is now 10.1.22, but that's not the latest as I understand it, so I'll need to find the latest one if you want me to test it.