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 |
|
+-------------------------------------+----------------+
|
|
{"report":{"fcp":981.5999999940395,"ttfb":198.59999999403954,"pageVisibility":"visible","entityId":63100,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"0874d792-a2e9-4e06-93d2-66fbde335375","navigationType":0,"readyForUser":1095.5999999940395,"redirectCount":0,"resourceLoadedEnd":930.5999999940395,"resourceLoadedStart":204.80000001192093,"resourceTiming":[{"duration":282.2999999821186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":204.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":204.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":487.09999999403954,"responseStart":0,"secureConnectionStart":0},{"duration":282.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":205,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":205,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":487.5,"responseStart":0,"secureConnectionStart":0},{"duration":309.7000000178814,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":205.19999998807907,"connectEnd":205.19999998807907,"connectStart":205.19999998807907,"domainLookupEnd":205.19999998807907,"domainLookupStart":205.19999998807907,"fetchStart":205.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":205.19999998807907,"responseEnd":514.9000000059605,"responseStart":514.9000000059605,"secureConnectionStart":205.19999998807907},{"duration":351.7999999821186,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":205.40000000596046,"connectEnd":205.40000000596046,"connectStart":205.40000000596046,"domainLookupEnd":205.40000000596046,"domainLookupStart":205.40000000596046,"fetchStart":205.40000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":205.40000000596046,"responseEnd":557.1999999880791,"responseStart":557.1999999880791,"secureConnectionStart":205.40000000596046},{"duration":355.40000000596046,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":205.59999999403954,"connectEnd":205.59999999403954,"connectStart":205.59999999403954,"domainLookupEnd":205.59999999403954,"domainLookupStart":205.59999999403954,"fetchStart":205.59999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":205.59999999403954,"responseEnd":561,"responseStart":561,"secureConnectionStart":205.59999999403954},{"duration":355.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":205.80000001192093,"connectEnd":205.80000001192093,"connectStart":205.80000001192093,"domainLookupEnd":205.80000001192093,"domainLookupStart":205.80000001192093,"fetchStart":205.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":205.80000001192093,"responseEnd":561.6999999880791,"responseStart":561.6999999880791,"secureConnectionStart":205.80000001192093},{"duration":356.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":206.09999999403954,"connectEnd":206.09999999403954,"connectStart":206.09999999403954,"domainLookupEnd":206.09999999403954,"domainLookupStart":206.09999999403954,"fetchStart":206.09999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":206.09999999403954,"responseEnd":562.4000000059605,"responseStart":562.4000000059605,"secureConnectionStart":206.09999999403954},{"duration":455.10000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":206.19999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":206.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":661.3000000119209,"responseStart":0,"secureConnectionStart":0},{"duration":356.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":206.40000000596046,"connectEnd":206.40000000596046,"connectStart":206.40000000596046,"domainLookupEnd":206.40000000596046,"domainLookupStart":206.40000000596046,"fetchStart":206.40000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":206.40000000596046,"responseEnd":563.0999999940395,"responseStart":563.0999999940395,"secureConnectionStart":206.40000000596046},{"duration":454.80000001192093,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":206.59999999403954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":206.59999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":661.4000000059605,"responseStart":0,"secureConnectionStart":0},{"duration":357.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":206.69999998807907,"connectEnd":206.69999998807907,"connectStart":206.69999998807907,"domainLookupEnd":206.69999998807907,"domainLookupStart":206.69999998807907,"fetchStart":206.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":206.69999998807907,"responseEnd":564,"responseStart":564,"secureConnectionStart":206.69999998807907},{"duration":501.59999999403954,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":212.5,"connectEnd":212.5,"connectStart":212.5,"domainLookupEnd":212.5,"domainLookupStart":212.5,"fetchStart":212.5,"redirectEnd":0,"redirectStart":0,"requestStart":212.5,"responseEnd":714.0999999940395,"responseStart":714.0999999940395,"secureConnectionStart":212.5},{"duration":718,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":212.59999999403954,"connectEnd":212.59999999403954,"connectStart":212.59999999403954,"domainLookupEnd":212.59999999403954,"domainLookupStart":212.59999999403954,"fetchStart":212.59999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":212.59999999403954,"responseEnd":930.5999999940395,"responseStart":930.5999999940395,"secureConnectionStart":212.59999999403954},{"duration":147.09999999403954,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":689,"connectEnd":689,"connectStart":689,"domainLookupEnd":689,"domainLookupStart":689,"fetchStart":689,"redirectEnd":0,"redirectStart":0,"requestStart":689,"responseEnd":836.0999999940395,"responseStart":836.0999999940395,"secureConnectionStart":689}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":16,"responseStart":199,"responseEnd":205,"domLoading":203,"domInteractive":1175,"domContentLoadedEventStart":1175,"domContentLoadedEventEnd":1240,"domComplete":1898,"loadEventStart":1898,"loadEventEnd":1900,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1154},{"name":"bigPipe.sidebar-id.end","time":1154.9000000059605},{"name":"bigPipe.activity-panel-pipe-id.start","time":1155},{"name":"bigPipe.activity-panel-pipe-id.end","time":1157.800000011921},{"name":"activityTabFullyLoaded","time":1248.4000000059605}],"measures":[],"correlationId":"9726ebc7beb0bd","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":20,"dbConnsTimeInMs":27,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}