mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 15:54:37 +01:00
c314b3f1df
With recent changes in the performance schema default sizing parameters, the memory used by a mysqld binary increased accordingly. This negatively affects the MTR test suite, because running several tests in parallel now consumes more ressources. The fix is to leave the default production values unchanged, and to configure the MTR environment to limit memory used when running tests in the test suite, which is ok because only a few objects are typically used within a test script. This fix: - changed the default configuration in MTR to use less memory - adjusted the performance schema tests accordingly Note that 1,000 mutex instances was too short and caused test failures in the past in team trees, so the default used is now 10,000 in MTR. The amount of memory used by the performance schema itself can be observed with the statement SHOW ENGINE PERFORMANCE_SCHEMA STATUS
53 lines
1.9 KiB
INI
53 lines
1.9 KiB
INI
# Copyright (C) 2009 Sun Microsystems, Inc
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; version 2 of the License.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
# Default values that applies to all MySQL Servers
|
|
[mysqld]
|
|
open-files-limit= 1024
|
|
local-infile
|
|
character-set-server= latin1
|
|
|
|
# Increase default connect_timeout to avoid intermittent
|
|
# disconnects when test servers are put under load see BUG#28359
|
|
connect-timeout= 60
|
|
|
|
log-bin-trust-function-creators=1
|
|
key_buffer_size= 1M
|
|
sort_buffer= 256K
|
|
max_heap_table_size= 1M
|
|
|
|
loose-innodb_data_file_path= ibdata1:10M:autoextend
|
|
loose-innodb_buffer_pool_size= 8M
|
|
loose-innodb_write_io_threads= 2
|
|
loose-innodb_read_io_threads= 2
|
|
loose-innodb_log_buffer_size= 1M
|
|
loose-innodb_log_file_size= 5M
|
|
loose-innodb_additional_mem_pool_size= 1M
|
|
loose-innodb_log_files_in_group= 2
|
|
|
|
slave-net-timeout=120
|
|
|
|
log-bin=mysqld-bin
|
|
|
|
# Run tests with the performance schema instrumentation
|
|
loose-enable-performance-schema
|
|
# Run tests with a small number of instrumented objects
|
|
# to limit memory consumption with MTR
|
|
loose-performance-schema-max-mutex-instances=10000
|
|
loose-performance-schema-max-rwlock-instances=10000
|
|
loose-performance-schema-max-table-instances=500
|
|
loose-performance-schema-max-table-handles=1000
|
|
|
|
binlog-direct-non-transactional-updates
|