mariadb/cmake
Daniel Black 402c7584a8 MDEV-13785: move defination HAVE_LARGE_PAGES -> HAVE_LINUX_LARGE_PAGES
HAVE_LARGE_PAGES was always Linux but now there is
HAVE_SOLARIS_LARGE_PAGES in the code base. Innodb was using HAVE_LINUX_LARGE_PAGES
so keep this consistent everywhere.

Test plan:

$ grep Hugepagesize: /proc/meminfo
Hugepagesize:       2048 kB

$ sudo sysctl vm.nr_hugepages=1024
vm.nr_hugepages = 1024
$ sudo sysctl  kernel.shmmax=$(( 2 * 1024 *1024 * 1024 ))
kernel.shmmax = 2147483648

No errors in ouput:
$ sql/mysqld --skip-networking --datadir=/tmp/datadir --log-bin=/tmp/datadir/mysqlbin --socket /tmp/s.sock --lc-messages-dir=${PWD}/sql/share --verbose --large-pages=1
2018-03-23 12:51:18 139697428129984 [Note] sql/mysqld (mysqld 10.2.14-MariaDB-log) starting as process 25406 ...
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Uses event mutexes
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Compressed tables use zlib 1.2.11
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Using Linux native AIO
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Number of pools: 1
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Using SSE2 crc32 instructions
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Completed initialization of buffer pool
2018-03-23 12:51:18 139696883590912 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Highest supported file format is Barracuda.
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: 128 out of 128 rollback segments are active.
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Creating shared tablespace for temporary tables
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: 5.7.21 started; log sequence number 1620099
2018-03-23 12:51:18 139696713733888 [Note] InnoDB: Loading buffer pool(s) from /tmp/datadir/ib_buffer_pool
2018-03-23 12:51:18 139696713733888 [Note] InnoDB: Buffer pool(s) load completed at 180323 12:51:18
2018-03-23 12:51:18 139697428129984 [Note] Plugin 'FEEDBACK' is disabled.
2018-03-23 12:51:18 139697428129984 [Note] Reading of all Master_info entries succeded
2018-03-23 12:51:18 139697428129984 [Note] Added new Master_info '' to hash table
2018-03-23 12:51:18 139697428129984 [Note] sql/mysqld: ready for connections.
Version: '10.2.14-MariaDB-log'  socket: '/tmp/s.sock'  port: 0  Source distribution

$ grep -i huge /proc/25406/smaps | grep -v ' 0 kB'
Private_Hugetlb:    8192 kB
Private_Hugetlb:    2048 kB
$ grep huge /proc/25406/numa_maps
7f0d74400000 default file=/SYSV00000000\040(deleted) huge
7f0dbd200000 default file=/SYSV00000000\040(deleted) huge dirty=4 N0=4 kernelpagesize_kB=2048
7f0dc5600000 default file=/SYSV00000000\040(deleted) huge
7f0dd1200000 default file=/SYSV00000000\040(deleted) huge dirty=1 N0=1 kernelpagesize_kB=2048

$ grep Huge  /proc/meminfo
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
HugePages_Total:     940
HugePages_Free:      935
HugePages_Rsvd:      177
HugePages_Surp:        0
Hugepagesize:       2048 kB

Ran again with --memlock
(note needs ulimit -l > size)

$ grep Huge  /proc/meminfo
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
HugePages_Total:     940
HugePages_Free:      758
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB

$ grep huge /proc/26020/numa_maps
7fe870400000 default file=/SYSV00000000\040(deleted) huge dirty=62 N0=62 kernelpagesize_kB=2048
7fe8b3a00000 default file=/SYSV00000000\040(deleted) huge dirty=66 N0=66 kernelpagesize_kB=2048
7fe8bd600000 default file=/SYSV00000000\040(deleted) huge dirty=53 N0=53 kernelpagesize_kB=2048
7fe8c8400000 default file=/SYSV00000000\040(deleted) huge dirty=1 N0=1 kernelpagesize_kB=2048

$ grep -i huge /proc/26020/smaps | grep -v ' 0 kB'
Private_Hugetlb:  126976 kB
Private_Hugetlb:  135168 kB
Private_Hugetlb:  108544 kB
Private_Hugetlb:    2048 kB
2018-03-29 18:55:18 +04:00
..
build_configurations Merge branch 'github/10.1' into 10.2 2018-02-06 14:50:50 +01:00
os MDEV-13785: move defination HAVE_LARGE_PAGES -> HAVE_LINUX_LARGE_PAGES 2018-03-29 18:55:18 +04:00
abi_check.cmake Merge tag 'mariadb-10.0.20' into 10.1 2015-06-27 20:35:26 +02:00
bison.cmake Add some hints for finding bison on its usual locations on Windows. 2018-02-14 17:01:07 +00:00
character_sets.cmake Merging utf16le from MySQL-5.6 2013-03-28 17:19:09 +04:00
check_compiler_flag.cmake Merge branch 'github/10.1' into 10.2 2018-02-06 14:50:50 +01:00
compile_flags.cmake Fix bunch of test failures and solaris build missing include. 2016-09-09 10:01:18 +03:00
configurable_file_content.in Updated/added copyright headers 2011-06-30 17:46:53 +02:00
configure.pl Fixes for using ssl with BUILD scripts. 2017-01-11 09:18:36 +02:00
cpack_deb.cmake simplify CMakeLists.txt for cassandra/connect engines 2013-09-25 19:32:14 +02:00
cpack_rpm.cmake Merge branch '10.1' into 10.2 2017-10-24 14:53:18 +02:00
cpack_source_ignore_files.cmake MDEV-7376 - Removal of the tool "mysql_zap" 2015-11-26 11:34:18 +04:00
CPackRPM.cmake fix RPM builds 2016-09-12 17:51:49 +02:00
cpu_info.cmake Merge 10.1 into 10.2 2017-04-28 12:22:32 +03:00
crc32-vpmsum.cmake MDEV-9872 - Add common optimized CRC32 function interface 2016-08-04 10:45:20 +04:00
create_initial_db.cmake.in One more attempt to fix dependencies with mysqld import/export libraries 2017-08-30 14:44:18 +00:00
ctest.cmake cmake: MYSQL_PARSE_ARGUMENTS -> CMAKE_PARSE_ARGUMENTS 2015-11-23 16:02:56 +01:00
do_abi_check.cmake MDEV-8052 abi detection incorrect with clang 2015-06-03 09:54:56 +02:00
dtrace.cmake Fix typo, and disable own dtrace proibes on Solaris, really. 2017-11-21 16:20:08 -05:00
dtrace_prelink.cmake Updated/added copyright headers 2011-06-30 17:46:53 +02:00
FindJava.cmake make CONNECT's finding Java and JNI less verbose 2016-09-12 17:46:35 +02:00
FindJNI.cmake copy-paste error fixed 2016-09-22 13:07:38 +02:00
FindLZ4.cmake RocksDB : Add lookup / compiling with optional compression libraries. 2017-02-09 16:55:02 +00:00
FindZSTD.cmake RocksDB : Add lookup / compiling with optional compression libraries. 2017-02-09 16:55:02 +00:00
for_clients.cmake MDEV-12938 Discrepancy between mysql_config and mariadb_config 2017-07-05 17:15:59 +02:00
info_bin.cmake Fix bug#42969 Please add a MANIFEST to each build 2011-02-11 15:55:25 +01:00
info_macros.cmake.in Merge branch '10.0' into 10.1 2015-03-07 13:21:02 +01:00
info_src.cmake Bug#20136840 REMOVE REMAINING REFERENCES TO BZR IN CMAKE SCRIPTS 2014-12-11 12:46:04 +01:00
install_layout.cmake Generate and install sysusers and tmpfiles configuration 2017-12-20 12:54:19 +02:00
install_macros.cmake Bug#26022865 BUILD FOR WINDOWS-S12-64BIT,ADVANCED IS FAILING ON PB2 MYSQL-5.6 2017-11-09 08:36:59 +01:00
jemalloc.cmake Merge branch '10.0' into 10.1 2016-02-23 21:35:05 +01:00
libutils.cmake Merge 10.1 into 10.2 2017-04-28 12:22:32 +03:00
maintainer.cmake cleanup: simplify maintainer.cmake 2018-02-06 02:33:56 +01:00
make_dist.cmake.in MDEV-12458: Variable and log records to indicate RocksDB version are missing 2017-12-31 21:58:50 +02:00
mariadb_connector_c.cmake MDEV-13836 mariadb_config & mysql_config output differ 2017-10-26 00:04:50 +02:00
merge_archives_unix.cmake.in Updated/added copyright headers 2011-06-30 17:46:53 +02:00
misc.cmake fix cmake MESSAGE_ONCE macro for multi-line messages 2016-09-12 17:46:35 +02:00
mysql_add_executable.cmake dos2unix cmake/mysql_add_executable.cmake 2017-11-09 08:45:45 +01:00
mysql_version.cmake MDEV-13836 mariadb_config & mysql_config output differ 2017-10-18 22:15:26 +02:00
numa.cmake MDEV-11195: Simplify enablement of NUMA in innodb/xtradb 2016-11-02 14:37:43 +11:00
package_name.cmake Merge branch '10.0-galera' into 10.1 2016-11-02 13:44:07 +01:00
pcre.cmake MDEV-13412 main.func_regexp_pcre fails in buildbot on ppc64le 2017-10-09 17:51:34 +02:00
plugin.cmake MDEV-9869 INSTALL SONAME 'ha_connect' 2017-12-25 12:00:52 +01:00
readline.cmake Merge branch '10.1' into 10.2 2016-12-29 13:23:18 +01:00
sign.cmake.in Build improvements and cleanups. 2017-09-08 18:22:15 +00:00
ssl.cmake Merge branch '10.1' into 10.2 2017-08-17 11:38:34 +02:00
stack_direction.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
submodules.cmake cleanup 2017-09-18 10:12:23 +02:00
systemd.cmake CMake : Do not use FindPkgConfig on Windows 2017-09-21 16:05:39 +00:00
tags.cmake
versioninfo.rc.in CRLF->LF 2015-06-02 22:07:47 +02:00
win_compatibility.manifest MDEV-12207 Include windows compatibility manifest into executable to make GetVersionEx work correctly 2017-03-08 11:20:03 +00:00
wsrep.cmake Merge branch '10.0-galera' into 10.1 2018-03-19 15:21:01 +02:00
zlib.cmake 10.0-base merge 2014-02-26 15:28:07 +01:00