Possibly useful information regarding my mysql setup:

mysql> show variables;
+---------------------------------+----------------------------+
| Variable_name                   | Value                      |
+---------------------------------+----------------------------+
| back_log                        | 50                         |
| basedir                         | /                          |
| binlog_cache_size               | 32768                      |
| bulk_insert_buffer_size         | 8388608                    |
| character_set_client            | latin1                     |
| character_set_connection        | latin1                     |
| character_set_database          | latin1                     |
| character_set_results           | latin1                     |
| character_set_server            | latin1                     |
| character_set_system            | utf8                       |
| character_sets_dir              | /usr/share/mysql/charsets/ |
| collation_connection            | latin1_swedish_ci          |
| collation_database              | latin1_swedish_ci          |
| collation_server                | latin1_swedish_ci          |
| concurrent_insert               | ON                         |
| connect_timeout                 | 5                          |
| datadir                         | /var/lib/mysql/            |
| date_format                     | %Y-%m-%d                   |
| datetime_format                 | %Y-%m-%d %H:%i:%s          |
| default_week_format             | 0                          |
| delay_key_write                 | ON                         |
| delayed_insert_limit            | 100                        |
| delayed_insert_timeout          | 300                        |
| delayed_queue_size              | 1000                       |
| expire_logs_days                | 0                          |
| flush                           | OFF                        |
| flush_time                      | 0                          |
| ft_boolean_syntax               | + -><()~*:""&|             |
| ft_max_word_len                 | 84                         |
| ft_min_word_len                 | 4                          |
| ft_query_expansion_limit        | 20                         |
| ft_stopword_file                | (built-in)                 |
| group_concat_max_len            | 1024                       |
| have_archive                    | NO                         |
| have_bdb                        | NO                         |
| have_compress                   | YES                        |
| have_crypt                      | YES                        |
| have_csv                        | NO                         |
| have_example_engine             | NO                         |
| have_geometry                   | YES                        |
| have_innodb                     | YES                        |
| have_isam                       | NO                         |
| have_ndbcluster                 | NO                         |
| have_openssl                    | NO                         |
| have_query_cache                | YES                        |
| have_raid                       | NO                         |
| have_rtree_keys                 | YES                        |
| have_symlink                    | YES                        |
| init_connect                    |                            |
| init_file                       |                            |
| init_slave                      |                            |
| innodb_additional_mem_pool_size | 1048576                    |
| innodb_autoextend_increment     | 8                          |
| innodb_buffer_pool_awe_mem_mb   | 0                          |
| innodb_buffer_pool_size         | 8388608                    |
| innodb_data_file_path           | ibdata1:10M:autoextend     |
| innodb_data_home_dir            |                            |
| innodb_fast_shutdown            | ON                         |
| innodb_file_io_threads          | 4                          |
| innodb_file_per_table           | OFF                        |
| innodb_locks_unsafe_for_binlog  | OFF                        |
| innodb_flush_log_at_trx_commit  | 1                          |
| innodb_flush_method             |                            |
| innodb_force_recovery           | 0                          |
| innodb_lock_wait_timeout        | 50                         |
| innodb_log_arch_dir             |                            |
| innodb_log_archive              | OFF                        |
| innodb_log_buffer_size          | 1048576                    |
| innodb_log_file_size            | 5242880                    |
| innodb_log_files_in_group       | 2                          |
| innodb_log_group_home_dir       | ./                         |
| innodb_max_dirty_pages_pct      | 90                         |
| innodb_table_locks              | ON                         |
| innodb_max_purge_lag            | 0                          |
| innodb_mirrored_log_groups      | 1                          |
| innodb_open_files               | 300                        |
| innodb_thread_concurrency       | 8                          |
| interactive_timeout             | 28800                      |
| join_buffer_size                | 131072                     |
| key_buffer_size                 | 402653184                  |
| key_cache_age_threshold         | 300                        |
| key_cache_block_size            | 1024                       |
| key_cache_division_limit        | 100                        |
| language                        | /usr/share/mysql/english/  |
| large_files_support             | ON                         |
| license                         | GPL                        |
| local_infile                    | ON                         |
| locked_in_memory                | OFF                        |
| log                             | OFF                        |
| log_bin                         | ON                         |
| log_error                       |                            |
| log_slave_updates               | OFF                        |
| log_slow_queries                | ON                         |
| log_update                      | OFF                        |
| log_warnings                    | 2                          |
| long_query_time                 | 2                          |
| low_priority_updates            | OFF                        |
| lower_case_file_system          | OFF                        |
| lower_case_table_names          | 0                          |
| max_allowed_packet              | 33553408                   |
| max_binlog_cache_size           | 4294967295                 |
| max_binlog_size                 | 1073741824                 |
| max_connect_errors              | 10                         |
| max_connections                 | 512                        |
| max_delayed_threads             | 20                         |
| max_error_count                 | 64                         |
| max_heap_table_size             | 16777216                   |
| max_insert_delayed_threads      | 20                         |
| max_join_size                   | 4294967295                 |
| max_length_for_sort_data        | 1024                       |
| max_relay_log_size              | 0                          |
| max_seeks_for_key               | 4294967295                 |
| max_sort_length                 | 1024                       |
| max_tmp_tables                  | 32                         |
| max_user_connections            | 0                          |
| max_write_lock_count            | 4294967295                 |
| myisam_data_pointer_size        | 4                          |
| myisam_max_extra_sort_file_size | 2147483648                 |
| myisam_max_sort_file_size       | 2147483647                 |
| myisam_recover_options          | OFF                        |
| myisam_repair_threads           | 1                          |
| myisam_sort_buffer_size         | 67108864                   |
| net_buffer_length               | 16384                      |
| net_read_timeout                | 30                         |
| net_retry_count                 | 10                         |
| net_write_timeout               | 60                         |
| new                             | OFF                        |
| old_passwords                   | OFF                        |
| open_files_limit                | 2570                       |
| pid_file                        | /var/lib/mysql/cortex.pid  |
| port                            | 3306                       |
| preload_buffer_size             | 32768                      |
| protocol_version                | 10                         |
| query_alloc_block_size          | 8192                       |
| query_cache_limit               | 1048576                    |
| query_cache_min_res_unit        | 4096                       |
| query_cache_size                | 67108864                   |
| query_cache_type                | ON                         |
| query_cache_wlock_invalidate    | OFF                        |
| query_prealloc_size             | 8192                       |
| range_alloc_block_size          | 2048                       |
| read_buffer_size                | 2093056                    |
| read_only                       | OFF                        |
| read_rnd_buffer_size            | 8384512                    |
| relay_log_purge                 | ON                         |
| rpl_recovery_rank               | 0                          |
| secure_auth                     | OFF                        |
| server_id                       | 1                          |
| skip_external_locking           | ON                         |
| skip_networking                 | OFF                        |
| skip_show_database              | OFF                        |
| slave_net_timeout               | 3600                       |
| slow_launch_time                | 2                          |
| socket                          | /var/lib/mysql/mysql.sock  |
| sort_buffer_size                | 2097144                    |
| sql_mode                        |                            |
| storage_engine                  | MyISAM                     |
| sync_binlog                     | 0                          |
| sync_frm                        | ON                         |
| system_time_zone                | MST                        |
| table_cache                     | 1024                       |
| table_type                      | MyISAM                     |
| thread_cache_size               | 8                          |
| thread_stack                    | 131072                     |
| time_format                     | %H:%i:%s                   |
| time_zone                       | SYSTEM                     |
| tmp_table_size                  | 33554432                   |
| tmpdir                          |                            |
| transaction_alloc_block_size    | 8192                       |
| transaction_prealloc_size       | 4096                       |
| tx_isolation                    | REPEATABLE-READ            |
| version                         | 4.1.7-standard-log         |
| version_comment                 | Official MySQL RPM         |
| version_compile_machine         | i686                       |
| version_compile_os              | pc-linux                   |
| wait_timeout                    | 28800                      |
+---------------------------------+----------------------------+
176 rows in set (0.01 sec)

mysql> show status;
+--------------------------+------------+
| Variable_name            | Value      |
+--------------------------+------------+
| Aborted_clients          | 608        |
| Aborted_connects         | 0          |
| Binlog_cache_disk_use    | 0          |
| Binlog_cache_use         | 0          |
| Bytes_received           | 143550320  |
| Bytes_sent               | 2187388200 |
| Com_admin_commands       | 5193       |
| Com_alter_db             | 0          |
| Com_alter_table          | 0          |
| Com_analyze              | 0          |
| Com_backup_table         | 0          |
| Com_begin                | 0          |
| Com_change_db            | 5287       |
| Com_change_master        | 0          |
| Com_check                | 0          |
| Com_checksum             | 0          |
| Com_commit               | 0          |
| Com_create_db            | 0          |
| Com_create_function      | 0          |
| Com_create_index         | 0          |
| Com_create_table         | 1632       |
| Com_dealloc_sql          | 0          |
| Com_delete               | 167796     |
| Com_delete_multi         | 92         |
| Com_do                   | 0          |
| Com_drop_db              | 0          |
| Com_drop_function        | 0          |
| Com_drop_index           | 0          |
| Com_drop_table           | 0          |
| Com_drop_user            | 0          |
| Com_execute_sql          | 0          |
| Com_flush                | 0          |
| Com_grant                | 0          |
| Com_ha_close             | 0          |
| Com_ha_open              | 0          |
| Com_ha_read              | 0          |
| Com_help                 | 0          |
| Com_insert               | 94450      |
| Com_insert_select        | 16         |
| Com_kill                 | 0          |
| Com_load                 | 0          |
| Com_load_master_data     | 0          |
| Com_load_master_table    | 0          |
| Com_lock_tables          | 3          |
| Com_optimize             | 0          |
| Com_preload_keys         | 0          |
| Com_prepare_sql          | 0          |
| Com_purge                | 0          |
| Com_purge_before_date    | 0          |
| Com_rename_table         | 0          |
| Com_repair               | 0          |
| Com_replace              | 0          |
| Com_replace_select       | 0          |
| Com_reset                | 0          |
| Com_restore_table        | 0          |
| Com_revoke               | 0          |
| Com_revoke_all           | 0          |
| Com_rollback             | 0          |
| Com_savepoint            | 0          |
| Com_select               | 90409      |
| Com_set_option           | 893        |
| Com_show_binlog_events   | 0          |
| Com_show_binlogs         | 0          |
| Com_show_charsets        | 0          |
| Com_show_collations      | 0          |
| Com_show_column_types    | 0          |
| Com_show_create_db       | 0          |
| Com_show_create_table    | 890        |
| Com_show_databases       | 0          |
| Com_show_errors          | 0          |
| Com_show_fields          | 2742       |
| Com_show_grants          | 0          |
| Com_show_innodb_status   | 0          |
| Com_show_keys            | 0          |
| Com_show_logs            | 0          |
| Com_show_master_status   | 27         |
| Com_show_new_master      | 0          |
| Com_show_open_tables     | 0          |
| Com_show_privileges      | 0          |
| Com_show_processlist     | 27         |
| Com_show_slave_hosts     | 0          |
| Com_show_slave_status    | 0          |
| Com_show_status          | 33         |
| Com_show_storage_engines | 0          |
| Com_show_tables          | 1710       |
| Com_show_variables       | 17         |
| Com_show_warnings        | 0          |
| Com_slave_start          | 0          |
| Com_slave_stop           | 0          |
| Com_truncate             | 0          |
| Com_unlock_tables        | 2          |
| Com_update               | 21984      |
| Com_update_multi         | 1          |
| Connections              | 465        |
| Created_tmp_disk_tables  | 9580       |
| Created_tmp_files        | 2857       |
| Created_tmp_tables       | 14421      |
| Delayed_errors           | 0          |
| Delayed_insert_threads   | 0          |
| Delayed_writes           | 0          |
| Flush_commands           | 1          |
| Handler_commit           | 2          |
| Handler_delete           | 34621      |
| Handler_discover         | 0          |
| Handler_read_first       | 21968      |
| Handler_read_key         | 2262195    |
| Handler_read_next        | 45830546   |
| Handler_read_prev        | 0          |
| Handler_read_rnd         | 40652      |
| Handler_read_rnd_next    | 191551453  |
| Handler_rollback         | 380        |
| Handler_update           | 61977      |
| Handler_write            | 1162203    |
| Key_blocks_not_flushed   | 0          |
| Key_blocks_unused        | 321193     |
| Key_blocks_used          | 27709      |
| Key_read_requests        | 12089652   |
| Key_reads                | 30593      |
| Key_write_requests       | 926575     |
| Key_writes               | 817381     |
| Max_used_connections     | 25         |
| Not_flushed_delayed_rows | 0          |
| Open_files               | 167        |
| Open_streams             | 0          |
| Open_tables              | 1024       |
| Opened_tables            | 1219       |
| Qcache_free_blocks       | 3349       |
| Qcache_free_memory       | 40534616   |
| Qcache_hits              | 687176     |
| Qcache_inserts           | 83014      |
| Qcache_lowmem_prunes     | 0          |
| Qcache_not_cached        | 7452       |
| Qcache_queries_in_cache  | 15558      |
| Qcache_total_blocks      | 34795      |
| Questions                | 1075371    |
| Rpl_status               | NULL       |
| Select_full_join         | 1121       |
| Select_full_range_join   | 104        |
| Select_range             | 2964       |
| Select_range_check       | 0          |
| Select_scan              | 15503      |
| Slave_open_temp_tables   | 0          |
| Slave_running            | OFF        |
| Slow_launch_threads      | 0          |
| Slow_queries             | 64         |
| Sort_merge_passes        | 0          |
| Sort_range               | 4274       |
| Sort_rows                | 262906     |
| Sort_scan                | 9475       |
| Table_locks_immediate    | 444410     |
| Table_locks_waited       | 73         |
| Threads_cached           | 0          |
| Threads_connected        | 25         |
| Threads_created          | 27         |
| Threads_running          | 10         |
| Uptime                   | 4787       |
+--------------------------+------------+
156 rows in set (0.00 sec)

#ps -aux

root     30641  0.0  0.0  4252    4 pts/1    S    12:34   0:00 /bin/sh
/usr/bin/mysqld_safe --datadir=/var/lib/mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31445  0.0  5.3 537372 109640 pts/1 S    13:02   0:00
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31446  0.0  5.3 537372 109640 pts/1 S    13:02   0:00
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31447  0.0  5.3 537372 109640 pts/1 S    13:02   0:00
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31448  0.0  5.3 537372 109640 pts/1 S    13:02   0:00
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31449  6.1  5.3 537372 109640 pts/1 S    13:02   5:05
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31450  0.0  5.3 537372 109640 pts/1 S    13:02   0:02
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31451  0.0  5.3 537372 109640 pts/1 S    13:02   0:01
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31452  0.0  5.3 537372 109640 pts/1 S    13:02   0:00
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31453  0.0  5.3 537372 109640 pts/1 S    13:02   0:03
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31454  0.0  5.3 537372 109640 pts/1 S    13:02   0:00
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31456  0.0  5.3 537372 109640 pts/1 S    13:02   0:00
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31457  0.0  5.3 537372 109640 pts/1 S    13:02   0:01
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31458  0.0  5.3 537372 109640 pts/1 S    13:02   0:01
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31461  0.9  5.3 537372 109640 pts/1 S    13:02   0:48
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31462  1.2  5.3 537372 109640 pts/1 S    13:02   1:02
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31463  0.7  5.3 537372 109640 pts/1 S    13:02   0:39
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31464  0.6  5.3 537372 109640 pts/1 S    13:02   0:30
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31465  1.3  5.3 537372 109640 pts/1 S    13:02   1:07
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31466  0.0  5.3 537372 109640 pts/1 S    13:02   0:02
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31467  1.0  5.3 537372 109640 pts/1 S    13:02   0:51
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31536  0.0  5.3 537372 109640 pts/1 S    13:03   0:00
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31537  0.0  5.3 537372 109640 pts/1 S    13:04   0:00
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31538  0.0  5.3 537372 109640 pts/1 S    13:04   0:00
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31539  0.8  5.3 537372 109640 pts/1 S    13:05   0:39
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31540  0.9  5.3 537372 109640 pts/1 S    13:05   0:44
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31541  2.2  5.3 537372 109640 pts/1 S    13:05   1:48
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31651  1.2  5.3 537372 109640 pts/1 S    13:08   0:55
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31675  1.4  5.3 537372 109640 pts/1 S    13:08   1:06
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    31676  1.2  5.3 537372 109640 pts/1 S    13:08   0:55
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    32040  1.4  5.3 537372 109640 pts/1 S    13:23   0:54
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    32041  1.2  5.3 537372 109640 pts/1 S    13:23   0:46
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql    32539  4.7  5.3 537372 109640 pts/1 S    13:42   1:59
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql      668  1.5  5.3 537372 109640 pts/1 S    14:05   0:17
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql     1132  0.5  5.3 537372 109640 pts/1 S    14:22   0:00
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql     1133  0.1  5.3 537372 109640 pts/1 S    14:22   0:00
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql     1134  0.2  5.3 537372 109640 pts/1 S    14:22   0:00
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql     1135  1.2  5.3 537372 109640 pts/1 S    14:22   0:02
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid
mysql     1136  0.6  5.3 537372 109640 pts/1 S    14:22   0:01
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/lib/mysql/cortex.pid

Should I simply run "export LD_ASSUME_KERNEL=2.4.1" and then "service
mysql restart" to get the NPTL threads disabled?

ideas?

Ryan

p.s Thanks Sasha!


> Ryan:
>
> There are a good number of ways to make MySQL cause high swap usage. It
> would be  difficult to know where to start without seeing your SHOW
> STATUS/SHOW VARIABLES  and the query log. Also, what happens with the
> memory footprint of the mysqld  process?
>
> Before going any further, I would also recommend export
> LD_ASSUME_KERNEL=2.4.1  in mysqld_safe to turn off NPTL threads.
>
>
> --
> Sasha Pachev
> AskSasha Linux Consulting
> http://www.asksasha.com
>
>
> --------------------
> BYU Unix Users Group
> http://uug.byu.edu/
>
> The opinions expressed in this message are the responsibility of their
> author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
>  ___________________________________________________________________
> List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list




--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to