We haven't seen any noticeable speed improvements from building the server with jemalloc. And we did have user complains about inability to use other memory allocators with MariaDB. But TokuDB (and, possibly, RockDB) need jemalloc for a good performance.
A solution could be:
do not build with jemalloc
add malloc-liib=jemalloc to tokudb.cnf and manually add a jemalloc dependency to TokuDB packages
something similar should be done for systemd too
as TokuDB will now introduce an additional dependency that the server itself does not need, it will go into a separate rpm/deb package
This way
the server will not be built with jemalloc, won't require or run with it
when a TokuDB package is installed, it will automatically bring in jemalloc as a dependency and will make the server use it — just as before
the user can always override it and use another memory allocator, if desired
Attachments
Issue Links
relates to
MDEV-18012Supplied jemalloc results in immediate MariaDB Segfault on aarch64
Done: TokuDB is in a separate rpm package (in deb it already was). Server isn't linked with jemalloc.
But TokuDB is still linked with jemalloc, I didn't use malloc-liib=jemalloc approach, because it doesn't work very well with systemd.
Sergei Golubchik
added a comment - Done: TokuDB is in a separate rpm package (in deb it already was). Server isn't linked with jemalloc.
But TokuDB is still linked with jemalloc, I didn't use malloc-liib=jemalloc approach, because it doesn't work very well with systemd.
People
Sergei Golubchik
Sergei Golubchik
Votes:
0Vote for this issue
Watchers:
6Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1154.9000000953674,"ttfb":225.10000038146973,"pageVisibility":"visible","entityId":58501,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"28b4b021-3363-47bd-898a-496550afee51","navigationType":0,"readyForUser":1289.3000001907349,"redirectCount":0,"resourceLoadedEnd":1019.5,"resourceLoadedStart":234.5,"resourceTiming":[{"duration":85.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":234.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":234.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":320,"responseStart":0,"secureConnectionStart":0},{"duration":90.59999990463257,"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":234.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":234.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":325.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":265.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":235,"connectEnd":327,"connectStart":327,"domainLookupEnd":327,"domainLookupStart":327,"fetchStart":235,"redirectEnd":0,"redirectStart":0,"requestStart":328.1000003814697,"responseEnd":500.2000002861023,"responseStart":343.30000019073486,"secureConnectionStart":327},{"duration":541.0999999046326,"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":235.2000002861023,"connectEnd":235.2000002861023,"connectStart":235.2000002861023,"domainLookupEnd":235.2000002861023,"domainLookupStart":235.2000002861023,"fetchStart":235.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":328.40000009536743,"responseEnd":776.3000001907349,"responseStart":346.90000009536743,"secureConnectionStart":235.2000002861023},{"duration":107.5,"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":235.30000019073486,"connectEnd":235.30000019073486,"connectStart":235.30000019073486,"domainLookupEnd":235.30000019073486,"domainLookupStart":235.30000019073486,"fetchStart":235.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":328.6000003814697,"responseEnd":342.80000019073486,"responseStart":340,"secureConnectionStart":235.30000019073486},{"duration":111.30000019073486,"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":235.5,"connectEnd":235.5,"connectStart":235.5,"domainLookupEnd":235.5,"domainLookupStart":235.5,"fetchStart":235.5,"redirectEnd":0,"redirectStart":0,"requestStart":330.7000002861023,"responseEnd":346.80000019073486,"responseStart":345.90000009536743,"secureConnectionStart":235.5},{"duration":118.5,"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":235.60000038146973,"connectEnd":235.60000038146973,"connectStart":235.60000038146973,"domainLookupEnd":235.60000038146973,"domainLookupStart":235.60000038146973,"fetchStart":235.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":331,"responseEnd":354.1000003814697,"responseStart":353.40000009536743,"secureConnectionStart":235.60000038146973},{"duration":93.40000009536743,"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":235.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":235.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":329.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":133.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":236,"connectEnd":236,"connectStart":236,"domainLookupEnd":236,"domainLookupStart":236,"fetchStart":236,"redirectEnd":0,"redirectStart":0,"requestStart":343,"responseEnd":369.7000002861023,"responseStart":366,"secureConnectionStart":236},{"duration":104.90000009536743,"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":236.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":236.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":341.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":134.59999990463257,"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":236.30000019073486,"connectEnd":236.30000019073486,"connectStart":236.30000019073486,"domainLookupEnd":236.30000019073486,"domainLookupStart":236.30000019073486,"fetchStart":236.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":344.7000002861023,"responseEnd":370.90000009536743,"responseStart":368.80000019073486,"secureConnectionStart":236.30000019073486},{"duration":627.5999999046326,"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":237.2000002861023,"connectEnd":237.2000002861023,"connectStart":237.2000002861023,"domainLookupEnd":237.2000002861023,"domainLookupStart":237.2000002861023,"fetchStart":237.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":617.4000000953674,"responseEnd":864.8000001907349,"responseStart":854.5,"secureConnectionStart":237.2000002861023},{"duration":751.0999999046326,"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":268.40000009536743,"connectEnd":268.40000009536743,"connectStart":268.40000009536743,"domainLookupEnd":268.40000009536743,"domainLookupStart":268.40000009536743,"fetchStart":268.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":1007.2000002861023,"responseEnd":1019.5,"responseStart":1018.3000001907349,"secureConnectionStart":268.40000009536743},{"duration":423.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":639.9000000953674,"connectEnd":639.9000000953674,"connectStart":639.9000000953674,"domainLookupEnd":639.9000000953674,"domainLookupStart":639.9000000953674,"fetchStart":639.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1023,"responseEnd":1063.8000001907349,"responseStart":1062.5,"secureConnectionStart":639.9000000953674},{"duration":325.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1086.8000001907349,"connectEnd":1086.8000001907349,"connectStart":1086.8000001907349,"domainLookupEnd":1086.8000001907349,"domainLookupStart":1086.8000001907349,"fetchStart":1086.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1376.6000003814697,"responseEnd":1411.9000000953674,"responseStart":1411.3000001907349,"secureConnectionStart":1086.8000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":38,"responseStart":225,"responseEnd":242,"domLoading":232,"domInteractive":1426,"domContentLoadedEventStart":1426,"domContentLoadedEventEnd":1485,"domComplete":2145,"loadEventStart":2145,"loadEventEnd":2146,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1388.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1389.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1389.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1390.5},{"name":"activityTabFullyLoaded","time":1502.8000001907349}],"measures":[],"correlationId":"2e3df8115449dc","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":96,"dbReadsTimeInMs":10,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
If we want to do it, we probably need to do it before GA.