It seems MariaDB 10.2.[7,8] does not use hugepages, but MariaDB 10.1.x,the same configuration, can use hugepages.
Thank you.
|
$ cat /etc/sysctl.conf
|
kernel.shmmax = 2705817600
|
kernel.shmall = 660600
|
vm.nr_hugepages = 500
|
vm.hugetlb_shm_group = 2001
|
|
$ id mysql
|
uid=2001(mysql) gid=2001(mysql) groups=2001(mysql)
|
|
$ cat /etc/security/limits.conf
|
mysql soft nproc 131072
|
mysql hard nproc 131072
|
mysql soft nofile 131072
|
mysql hard nofile 131072
|
mysql soft core unlimited
|
mysql hard core unlimited
|
mysql soft memlock unlimited
|
mysql hard memlock unlimited
|
|
$ free -h
|
total used free shared buff/cache available
|
Mem: 2.8G 1.1G 250M 2.2M 1.5G 1.5G
|
Swap: 1.5G 50M 1.5G
|
|
$ cat /proc/meminfo | grep -i huge
|
AnonHugePages: 2048 kB
|
HugePages_Total: 500
|
HugePages_Free: 500
|
HugePages_Rsvd: 0
|
HugePages_Surp: 0
|
Hugepagesize: 2048 kB
|
|
$ cat /etc/my.cnf | grep large-pages
|
large-pages
|
|
$ mysqld_safe &
|
[1] 67750
|
170909 01:34:39 mysqld_safe Logging to '/MGC/datadg/log/alert_MGC.log'.
|
170909 01:34:40 mysqld_safe Starting mysqld daemon with databases from /MGC/datadg/db
|
|
$ cat /MGC/datadg/log/alert_MGC.log | grep -i "Warning: Using conventional memory pool"
|
|
$ cat /proc/meminfo | grep -i huge
|
AnonHugePages: 88064 kB
|
HugePages_Total: 500
|
HugePages_Free: 499
|
HugePages_Rsvd: 115
|
HugePages_Surp: 0
|
Hugepagesize: 2048 kB
|
|
|
01:36:47 (root@localhost) [(none)]> select version();
|
+--------------------+
|
| version() |
|
+--------------------+
|
| 10.2.7-MariaDB-log |
|
+--------------------+
|
1 row in set (0.00 sec)
|
|
01:37:29 (root@localhost) [(none)]> select count(*) from test.a;
|
+----------+
|
| count(*) |
|
+----------+
|
| 3263442 |
|
+----------+
|
1 row in set (2.44 sec)
|
|
|
$ cat /proc/meminfo | grep -i huge
|
AnonHugePages: 167936 kB
|
HugePages_Total: 500
|
HugePages_Free: 499
|
HugePages_Rsvd: 115
|
HugePages_Surp: 0
|
Hugepagesize: 2048 kB
|
|
$ free -h
|
total used free shared buff/cache available
|
Mem: 2.8G 1.2G 76M 2.2M 1.4G 1.3G
|
Swap: 1.5G 50M 1.5G
|
|
$ ll -h
|
total 109M
|
-rw-rw---- 1 mysql mysql 432 Sep 8 23:34 a.frm
|
-rw-rw---- 1 mysql mysql 108M Sep 8 23:36 a.ibd
|
|
> show global variables like '%buffer%';
|
+-------------------------------------+----------------+
|
| Variable_name | Value |
|
+-------------------------------------+----------------+
|
| aria_pagecache_buffer_size | 134217728 |
|
| aria_sort_buffer_size | 268434432 |
|
| bulk_insert_buffer_size | 8388608 |
|
| innodb_buffer_pool_chunk_size | 134217728 |
|
| innodb_buffer_pool_dump_at_shutdown | ON |
|
| innodb_buffer_pool_dump_now | OFF |
|
| innodb_buffer_pool_dump_pct | 25 |
|
| innodb_buffer_pool_filename | ib_buffer_pool |
|
| innodb_buffer_pool_instances | 1 |
|
| innodb_buffer_pool_load_abort | OFF |
|
| innodb_buffer_pool_load_at_startup | ON |
|
| innodb_buffer_pool_load_now | OFF |
|
| innodb_buffer_pool_populate | OFF |
|
| innodb_buffer_pool_size | 134217728 |
|
| innodb_change_buffer_max_size | 25 |
|
| innodb_change_buffering | all |
|
| innodb_log_buffer_size | 16777216 |
|
| innodb_sort_buffer_size | 1048576 |
|
| join_buffer_size | 262144 |
|
| join_buffer_space_limit | 2097152 |
|
| key_buffer_size | 134217728 |
|
| mrr_buffer_size | 262144 |
|
| myisam_sort_buffer_size | 134216704 |
|
| net_buffer_length | 16384 |
|
| preload_buffer_size | 32768 |
|
| read_buffer_size | 131072 |
|
| read_rnd_buffer_size | 262144 |
|
| sort_buffer_size | 2097152 |
|
| sql_buffer_result | OFF |
|
+-------------------------------------+----------------+
|
|
Transition |
Time In Source Status |
Execution Times |
Open |
|
Confirmed |
|
19d 3h 50m
|
1
|
Confirmed |
|
Closed |
|
179d 1h 53m
|
1
|
{"report":{"fcp":871.2999999523163,"ttfb":203.5,"pageVisibility":"visible","entityId":63100,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"ccfa35dc-7a64-4d2f-9ae2-fe3744042dc3","navigationType":0,"readyForUser":1036.5,"redirectCount":0,"resourceLoadedEnd":878.5,"resourceLoadedStart":208.69999992847443,"resourceTiming":[{"duration":151,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":208.69999992847443,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":359.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":150.60000002384186,"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":209.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":360,"responseStart":0,"secureConnectionStart":0},{"duration":159.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":209.59999990463257,"connectEnd":209.59999990463257,"connectStart":209.59999990463257,"domainLookupEnd":209.59999990463257,"domainLookupStart":209.59999990463257,"fetchStart":209.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":209.59999990463257,"responseEnd":368.7999999523163,"responseStart":368.6999999284744,"secureConnectionStart":209.59999990463257},{"duration":195.39999997615814,"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":210,"connectEnd":210,"connectStart":210,"domainLookupEnd":210,"domainLookupStart":210,"fetchStart":210,"redirectEnd":0,"redirectStart":0,"requestStart":210,"responseEnd":405.39999997615814,"responseStart":405.39999997615814,"secureConnectionStart":210},{"duration":198.89999997615814,"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":210.19999992847443,"connectEnd":210.19999992847443,"connectStart":210.19999992847443,"domainLookupEnd":210.19999992847443,"domainLookupStart":210.19999992847443,"fetchStart":210.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":210.19999992847443,"responseEnd":409.09999990463257,"responseStart":409.09999990463257,"secureConnectionStart":210.19999992847443},{"duration":199.29999995231628,"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":210.29999995231628,"connectEnd":210.29999995231628,"connectStart":210.29999995231628,"domainLookupEnd":210.29999995231628,"domainLookupStart":210.29999995231628,"fetchStart":210.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":210.29999995231628,"responseEnd":409.59999990463257,"responseStart":409.59999990463257,"secureConnectionStart":210.29999995231628},{"duration":199.30000007152557,"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":210.59999990463257,"connectEnd":210.59999990463257,"connectStart":210.59999990463257,"domainLookupEnd":210.59999990463257,"domainLookupStart":210.59999990463257,"fetchStart":210.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":210.59999990463257,"responseEnd":409.89999997615814,"responseStart":409.89999997615814,"secureConnectionStart":210.59999990463257},{"duration":317.2000000476837,"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":210.69999992847443,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":210.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":527.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":199.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":210.89999997615814,"connectEnd":210.89999997615814,"connectStart":210.89999997615814,"domainLookupEnd":210.89999997615814,"domainLookupStart":210.89999997615814,"fetchStart":210.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":210.89999997615814,"responseEnd":410.39999997615814,"responseStart":410.39999997615814,"secureConnectionStart":210.89999997615814},{"duration":317.1999999284744,"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":211,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":211,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":528.1999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":199.89999997615814,"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":211.19999992847443,"connectEnd":211.19999992847443,"connectStart":211.19999992847443,"domainLookupEnd":211.19999992847443,"domainLookupStart":211.19999992847443,"fetchStart":211.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":211.19999992847443,"responseEnd":411.09999990463257,"responseStart":411,"secureConnectionStart":211.19999992847443},{"duration":360.59999990463257,"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":220,"connectEnd":220,"connectStart":220,"domainLookupEnd":220,"domainLookupStart":220,"fetchStart":220,"redirectEnd":0,"redirectStart":0,"requestStart":220,"responseEnd":580.5999999046326,"responseStart":580.5999999046326,"secureConnectionStart":220},{"duration":465.39999997615814,"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":220,"connectEnd":220,"connectStart":220,"domainLookupEnd":220,"domainLookupStart":220,"fetchStart":220,"redirectEnd":0,"redirectStart":0,"requestStart":220,"responseEnd":685.3999999761581,"responseStart":685.3999999761581,"secureConnectionStart":220},{"duration":82.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":562.6999999284744,"connectEnd":562.6999999284744,"connectStart":562.6999999284744,"domainLookupEnd":562.6999999284744,"domainLookupStart":562.6999999284744,"fetchStart":562.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":562.6999999284744,"responseEnd":644.8999999761581,"responseStart":644.8999999761581,"secureConnectionStart":562.6999999284744},{"duration":63,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&slack-enabled=true","startTime":815.5,"connectEnd":815.5,"connectStart":815.5,"domainLookupEnd":815.5,"domainLookupStart":815.5,"fetchStart":815.5,"redirectEnd":0,"redirectStart":0,"requestStart":815.5,"responseEnd":878.5,"responseStart":878.5,"secureConnectionStart":815.5},{"duration":320.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":864.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":864.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1185.1999999284744,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":16,"responseStart":204,"responseEnd":215,"domLoading":207,"domInteractive":1126,"domContentLoadedEventStart":1126,"domContentLoadedEventEnd":1181,"domComplete":1500,"loadEventStart":1500,"loadEventEnd":1500,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1097.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1098.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1098.6999999284744},{"name":"bigPipe.activity-panel-pipe-id.end","time":1099.7999999523163},{"name":"activityTabFullyLoaded","time":1195.6999999284744}],"measures":[],"correlationId":"8049cb00c5815f","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":16,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}