Hello, I'm more familiar with Solaris (2.51-11) & Linux (Redhat since 95) web systems. Last time I touched FreeBSD was over a decade ago.
I have a FreeBSD 14.1 box running MySQL 8.0.39 it's on a small VPS (2GB) for testing. I'm migrating a Rocky 8 Linux box to FreeBSD 14.1.
For the system values I get:
Which look good. However, when I start the MySQL service I get the following Warnings with values requested above
I thought it interesting that MySQL is requesting 32,786 whereas 32,768 is a known common numerical value.
I know it's only a warning, but I'd like to know what's going on here and why it can't request the full amount even at the requested limit.
My MySQL my.cnf could use some tweaking still.
This setup though is running on a similar 2gb Linux system without any file limit errors.
Thanks for any insight I maybe missing here!
-William
I have a FreeBSD 14.1 box running MySQL 8.0.39 it's on a small VPS (2GB) for testing. I'm migrating a Rocky 8 Linux box to FreeBSD 14.1.
For the system values I get:
Code:
# sysctl kern.maxfiles kern.maxfilesperproc kern.openfiles
kern.maxfiles: 64175
kern.maxfilesperproc: 57753
kern.openfiles: 141
Which look good. However, when I start the MySQL service I get the following Warnings with values requested above
Code:
2024-10-30T14:27:59.667683Z 0 [Warning] [MY-010140] [Server] Could not increase number of max_open_files to more than 32768 (request: 32786)
2024-10-30T14:27:59.667687Z 0 [Warning] [MY-010142] [Server] Changed limits: table_open_cache: 16375 (requested 16384)
I thought it interesting that MySQL is requesting 32,786 whereas 32,768 is a known common numerical value.
I know it's only a warning, but I'd like to know what's going on here and why it can't request the full amount even at the requested limit.
My MySQL my.cnf could use some tweaking still.
This setup though is running on a similar 2gb Linux system without any file limit errors.
Thanks for any insight I maybe missing here!
-William
Code:
[mysqld]
performance_schema = 0
user = mysql
port = 3306
socket = /tmp/mysql.sock
bind-address = 127.0.0.1
basedir = /usr/local
datadir = /var/db/mysql
tmpdir = /var/db/mysql_tmpdir
replica-load-tmpdir = /var/db/mysql_tmpdir
secure-file-priv = /var/db/mysql_secure
open_files_limit = 32768
table_open_cache = 16384
log-bin = mysql-bin
log-output = TABLE
relay-log-recovery = 1
slow_query_log = OFF
long_query_time = 0
log_slow_admin_statements = OFF
log_slow_replica_statements = OFF
server-id = 1
sync_binlog = 1
sync_relay_log = 1
binlog_cache_size = 16M
max_binlog_size = 100M
binlog_expire_logs_seconds = 2592000
default_password_lifetime = 0
enforce-gtid-consistency = 1
gtid-mode = ON
safe-user-create = 1
lower_case_table_names = 1
explicit-defaults-for-timestamp = 1
myisam-recover-options = BACKUP,FORCE
table_definition_cache = 8192
net_retry_count = 16384
key_buffer_size = 256M
max_allowed_packet = 32M
max_connections = 8
long_query_time = 0.5
innodb_buffer_pool_size = 50M
innodb_data_home_dir = /var/db/mysql
innodb_log_group_home_dir = /var/db/mysql
innodb_data_file_path = ibdata1:128M:autoextend
innodb_temp_data_file_path = ibtmp1:128M:autoextend
innodb_flush_method = O_DIRECT
#innodb_redo_log_capacity = 512M
innodb_log_buffer_size = 16M
innodb_write_io_threads = 8
innodb_read_io_threads = 8
innodb_autoinc_lock_mode = 2