Sergey Vojtovich
22811a1c60
Fixed build failure
2020-04-05 17:32:06 +04:00
Daniel Black
113e227e26
my_largepage.c: cleanup
...
Order to avoid prototypes:
my_get_large_page_sizes
my_next_large_page
my_init_large_pages
my_large_malloc
my_large_free
2020-04-05 17:20:50 +04:00
Daniel Black
9bf3a3a47a
HAVE_LARGE_PAGES no longer global
2020-04-05 17:20:50 +04:00
Daniel Black
71337a4452
my_large_malloc/free fall back to my_{malloc|free}_lock
...
For platforms != Windows and without MMAP.
2020-04-05 17:20:50 +04:00
Daniel Black
2a18e783ca
my_large_page: more verbose errors on allocation fallback/failure
2020-04-05 17:20:50 +04:00
Daniel Black
d5568e7591
my_large_malloc_int consolidated into my_large_malloc
...
Consolidated single page size implementations by populating
my_large_page_sizes with a single page size.
2020-04-05 17:20:50 +04:00
Daniel Black
472d2d0492
my_large_free_int merge into my_large_free
2020-04-05 17:20:50 +04:00
Sergey Vojtovich
2e2138baa5
Simplified away my_get_large_page_size()
2020-04-04 14:55:51 +04:00
Sergey Vojtovich
30379b487f
HAVE_LARGE_PAGE_OPTION to HAVE_LARGE_PAGES
...
It isn't an "option" anymore.
2020-04-04 14:55:51 +04:00
Sergey Vojtovich
4338bb8a75
Coding style fixes
2020-04-04 14:55:51 +04:00
Sergey Vojtovich
e4a960780f
my_next_large_page_size() cleanup
...
Make it static, coding style cleanup, declare consistently with all
callers (same ifdefs).
2020-04-04 14:55:51 +04:00
Sergey Vojtovich
fc6e8b4b1b
Cleanup HAVE_MMAP_ALIGNED: one cmake check less
2020-04-04 14:55:51 +04:00
Daniel Black
e8351934b6
Merge pull request #1221 from grooverdan/10.4-MDEV-18851-multiple-sized-large-page-support
...
MDEV-18851: multiple sized large page support (linux)
2020-04-02 23:54:08 +04:00
Sergei Golubchik
0afccbf7b8
restore stack traces that were broken by ebfe8c4e0e
2020-03-16 01:13:01 +01:00
Oleksandr Byelkin
fad47df995
Merge branch '10.4' into 10.5
2020-03-11 17:52:49 +01:00
Oleksandr Byelkin
b7362d5fbc
Merge branch '10.3' into 10.4
2020-03-11 14:28:24 +01:00
Oleksandr Byelkin
b8c0e49670
Merge commit '10.3' into 10.4
2020-03-11 13:27:10 +01:00
Oleksandr Byelkin
91ba789aaf
fix for VALGRIND build
2020-03-10 20:36:18 +01:00
Sergei Golubchik
cbede21d0d
cleanup: pass trxid by value
2020-03-10 19:24:23 +01:00
Sergei Golubchik
211421d5cc
cleanup: remove unused argument
2020-03-10 19:24:23 +01:00
Sergei Golubchik
c1c5222cae
cleanup: PSI key is *always* the first argument
2020-03-10 19:24:23 +01:00
Sergei Golubchik
7af733a5a2
perfschema compilation, test and misc fixes
2020-03-10 19:24:23 +01:00
Sergei Golubchik
22b6d8487a
perfschema file instrumentation related changes
2020-03-10 19:24:22 +01:00
Sergei Golubchik
7c58e97bf6
perfschema memory related instrumentation changes
2020-03-10 19:24:22 +01:00
Sergei Golubchik
2ac3121af2
perfschema - various collateral cleanups and small changes
2020-03-10 19:24:22 +01:00
Jon Olav Hauglid
52d7980753
Bug#18913935: REMOVE SUPPORT FOR LINUXTHREADS
...
This patch removes support for LinuxThreads.
It was superseded by NPTL in Linux 2.6 (2003).
2020-03-10 19:24:21 +01:00
Vicențiu Ciorbaru
1d99e4d674
Merge branch '10.2' into 10.3
2020-03-08 11:02:55 +02:00
Vicențiu Ciorbaru
d7f74150e5
Check for CPU_COUNT macro within my_getncpus
...
* Small refactor of my_getncpus function to compile for very old glibc < 2.6.
* Cleanup code to eliminate duplication.
2020-03-08 10:48:09 +02:00
Oleksandr Byelkin
440452628d
Merge branch '10.2' into 10.3
2020-03-06 23:28:26 +01:00
Oleksandr Byelkin
75d286c2cc
Merge branch '10.1' into 10.2
2020-03-06 15:42:45 +01:00
Oleksandr Byelkin
345aaca14c
Merge branch '5.5' into 10.1
2020-03-06 11:06:48 +01:00
Vicențiu Ciorbaru
da10c6f448
Merge branch '10.1' into 10.2
2020-03-05 10:52:43 +02:00
Daniel Black
f6b9a29820
MDEV-16662: cmake remove empty INSTALL_DEBUG_TARGET
...
No adverse effects since this was made a null function in
6b53f9d781
.
This function had the last remaining cmake CMP0026 violation.
2020-02-25 08:11:20 +01:00
Anel Husakovic
b9689712e0
MDEV-21374: When "--help --verbose" prints out configuration file paths, the --defaults-file option is not considered
...
* `--defaults-file` option is showed only in `--help --verbose` if
applied
* `--default-extra-file` is showing correctly now in `--help --verbose`,
previously it was treated as a directory with appended `my.cnf`
2020-02-22 22:46:58 +01:00
Daniel Black
fb01cc3766
my_getncpus based on threads available
...
Detecting the cpus based on sysconf of the online CPUs can significantly
over estimate the number of cpus available.
Wheither via numactl, cgroups, taskset, systemd constraints, docker
containers and probably other mechanisms, the number of threads mysqld
can be run on can be quite less.
As such we use the pthread_getaffinity_np function on Linux and FreeBSD
(identical API) to get the number of CPUs.
The number of CPUs is the default for the thread_pool_size and a too
high default will resulting in large memory usage and high context
switching overhead.
Closes PR #922
2020-02-20 08:44:20 +01:00
Daniel Black
8eb0384556
mysys: remove windac my_security_attr_create ( #1391 )
...
No longer used.
2020-02-14 10:32:45 +01:00
Vicențiu Ciorbaru
8bbcaab160
MDEV-18650: Options deprecated in previous versions - thread_concurrency
...
thread_concurrency was ignored since 5.5. Remove it.
2020-02-13 13:42:01 +02:00
Oleksandr Byelkin
be77fa914c
MDEV-21646: Failure to compile my_addr_resolve.c with binutils-2.34
...
Emulate older API
2020-02-12 15:39:36 +01:00
Marko Mäkelä
8b6cfda631
Merge 10.4 into 10.5
2020-02-07 08:51:20 +02:00
Sergey Vojtovich
daaa881cfe
libpmem cmake macros
...
Also added support for MAP_SYNC. It allows to achieve decent performance
with DAX devices even when libpmem is unavailable.
Fixed Windows version of my_msync(): according to manual FlushViewOfFile()
may return before flush is actually completed. It is advised to issue
FlushFileBuffers() after FlushViewOfFile().
2020-02-04 23:23:50 +04:00
Marko Mäkelä
4b291588bb
MDEV-19845: Make my_cpu.h self-contained
...
Fix up commit f5c080c735
2020-02-01 14:56:05 +02:00
Alexander Barkov
f1e13fdc8d
MDEV-21581 Helper functions and methods for CHARSET_INFO
2020-01-28 12:29:23 +04:00
Sergei Golubchik
744d545fd7
restore support for --defaults-file=<(...)
...
if my_realpath() fails, don't return the error code, get_defaults_options()
returns a number of options consumed, not 0=ok/1=error.
instead, ignore the error from my_realpath. If it fails it internally
falls back to my_load_path, which restores 10.4- behavior
2020-01-17 17:19:23 +01:00
Sergei Golubchik
8bcbdaf730
cleanup: remove unused arguments
2020-01-17 17:19:23 +01:00
Aleksey Midenkov
8ed646f071
Merge 10.4 into 10.5
2019-12-02 13:35:54 +03:00
Aleksey Midenkov
0b8b11b0b1
Merge 10.3 into 10.4
2019-12-02 12:51:53 +03:00
Vladislav Vaintroub
ba95c303e3
MDEV-21167 LF_PINS::stack_ends_here inaccurate, leading to alloca() larger than stack
...
Use my_thread_var::stack_ends_here inside lf_pinbox_real_free() for address
where thread stack ends.
Remove LF_PINS::stack_ends_here.
It is not safe to assume that mysys_var that was used during pin allocation,
remains correct during free. E.g with binlog group commit in Innodb,
that frees pins for multiple Innodb transactions, it does not work
correctly.
2019-11-28 10:48:09 +01:00
Marko Mäkelä
a9846f3299
Merge 10.4 into 10.5
2019-11-19 10:45:28 +08:00
Vladislav Vaintroub
ad17c98dd5
MDEV-16264 - prerequisite patch, periodic thr_timer
...
Threadpool will need a functionality for periodic thr_timer
(the threadpool maintainence task is a timer that runs periodically).
Also increase the stack size for the timer thread, 8k won't be enough.
2019-11-15 16:50:22 +01:00
Vladislav Vaintroub
6df0bb7d38
MDEV-21062 Buildbot, Windows - sporadically missing lines from mtr's "exec"
...
Provide own version of popen/pclose, in attempt to workaround
sporadic erratic behavior of UCRT's one.
2019-11-15 15:39:31 +01:00