Я смотрел по atop. Ну пока нагрузки нет такой сильно, поэтому надо ждать. Вполне возможно манипуляции с выключением кэша и помогли.
Третья строчка у меня.---------- Добавлено 05.05.2016 в 11:49 ----------Dimitrius_R, спасибо конечно, я загрузил эти данные. Жду когда прогреется mysql
Вот уже вырисовывается несколько таблиц :)
Просто мы же не можем знать, что у вас там за структура и т.д.
Конечно можно использовать START TRANSACTION, но если честно держать баланс в разных таблицах ИМХО как-то неверно.
За какой? Ворованные фильмы на торрентах или сосканенные книжки? 🤣---------- Добавлено 05.05.2016 в 10:54 ----------
Ну делают так... и люди просто уходят и забывают про этот сайта как про страшный сон.
При чём тут SELECT?!
Вы говорите про:
Не может он изменится. Операции UPDATE блокируют строчку на ЗАПИСЬ. И выполняются последовательно.
Также опешите проблему из-за которой у вас возник вопрос? Баланс в минус уходит или что?
Строчка в innodb уже блокируется при операции, уже АВТОМАТИЧЕСКИ идёт транзакция, вам ничего делать не нужно. Т.е. запросы к этой строчке идут последовательно.
В myisam так вообще вся таблица блокируется с такими операциями.
Таких операций практически нет. Они единичны, в основном SELECT.
Диск при этом все 8-м ядер просто загружены под 90% через htop
Сам список практически всегда пуст.
Все операции занимают доли секунды, никаких зависаний нет. Т.е. сайты летают, диск пыхтит, а CPU отрабатывает все ядра. Но ребята, зачем я тогда выделяют 27 ГБ памяти?!
Весь my.cnf
[mysqld] datadir="/mysql/mysql" slave_load_tmpdir="/dev/shm" tmpdir="/dev/shm" wait_timeout=1800 interactive_timeout=1800 symbolic-links=0 local-infile=1 innodb_file_per_table=1 skip-external-locking query_cache_limit=8M query_cache_size=256M max_user_connections=80 max_connections=500 thread_cache_size=256 key_buffer_size=384M join_buffer=2M max_connect_errors=100000 max_allowed_packet=268435456 table_open_cache=1500 sort_buffer_size=4M read_buffer_size=2M read_rnd_buffer_size=8M innodb_thread_concurrency=32 myisam_sort_buffer_size=64M net_buffer_length=8K collation-server=utf8_unicode_ci character_set_server=utf8 query_cache_type=1 tmp_table_size=256M max_heap_table_size=256M optimizer_search_depth=0 innodb_log_buffer_size=35M eq_range_index_dive_limit=200 open_files_limit=17528 innodb_flush_log_at_trx_commit=0 innodb_log_file_size=128M innodb_buffer_pool_size=27G innodb_flush_method=O_DIRECT innodb_buffer_pool_instances=27 default-storage-engine=InnoDB skip-name-resolve [mysqldump] quick max_allowed_packet=16M [mysql] no-auto-rehash local-infile=1 [isamchk] key_buffer=64M sort_buffer=64M read_buffer=16M write_buffer=16M [myisamchk] key_buffer=256M sort_buffer=256M read_buffer=4M write_buffer=4M [mysqlhotcopy] interactive-timeout
Use of implicit split to @_ is deprecated at mysqltuner.pl line 3243 (#1) (D deprecated, W syntax) It makes a lot of work for the compiler when you clobber a subroutine's argument list, so it's better if you assign the results of a split() explicitly to an array (or list). >> MySQLTuner 1.6.11 - Major Hayden <major@mhtx.net> >> Bug reports, feature requests, and downloads at http://mysqltuner.com/ >> Run with '--help' for additional options and output filtering [--] Skipped version check for MySQLTuner script [OK] Currently running supported MySQL version 5.6.30 [OK] Operating on 64-bit architecture -------- Storage Engine Statistics ----------------------------------------------------------------- [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA [--] Data in MyISAM tables: 645M (Tables: 267) [--] Data in InnoDB tables: 32G (Tables: 120) [--] Data in MEMORY tables: 0B (Tables: 2) [!!] Total fragmented tables: 45 -------- Security Recommendations ------------------------------------------------------------------ [OK] There are no anonymous accounts for any database users [OK] All database users have passwords assigned [!!] There is no basic password file list! -------- CVE Security Recommendations -------------------------------------------------------------- [--] Skipped due to --cvefile option undefined -------- Performance Metrics ----------------------------------------------------------------------- [--] Up for: 10h 30m 47s (5M q [141.620 qps], 515K conn, TX: 198G, RX: 396M) [--] Reads / Writes: 87% / 13% [--] Binary logging is disabled [--] Physical Memory : 31.3G [--] Max MySQL memory : 36.3G [--] Other process memory: 662.5M [--] Total buffers: 27.9G global + 16.2M per thread (500 max threads) [--] P_S Max memory usage: 466M [--] Galera GCache Max memory usage: 0B [!!] Maximum reached memory usage: 29.4G (93.81% of installed RAM) [!!] Maximum possible memory usage: 36.3G (115.83% of installed RAM) [!!] Overall possible memory usage with other process exceeded memory [OK] Slow queries: 0% (15/5M) [OK] Highest usage of available connections: 13% (65/500) [OK] Aborted connections: 0.00% (2/515144) [!!] Query cache may be disabled by default due to mutex contention. [OK] Sorts requiring temporary tables: 0% (16 temp sorts / 31K sorts) [!!] Joins performed without indexes: 134 [!!] Temporary tables created on disk: 52% (2K on disk / 4K total) [OK] Table cache hit rate: 90% (854 open / 948 opened) [OK] Open file limit used: 4% (781/17K) [OK] Table locks acquired immediately: 99% (1M immediate / 1M locks) -------- ThreadPool Metrics ------------------------------------------------------------------------ [--] ThreadPool stat is disabled. -------- Performance schema ------------------------------------------------------------------------ [--] Performance schema is enabled. [--] Memory used by P_S: 466.6M [--] Sys schema isn't installed. -------- MyISAM Metrics ---------------------------------------------------------------------------- [!!] Key buffer used: 19.7% (79M used / 402M cache) [OK] Key buffer size / total MyISAM indexes: 384.0M/9.0M [OK] Read Key buffer hit rate: 99.9% (2M cached / 3K reads) [!!] Write Key buffer hit rate: 4.2% (148K cached / 142K writes) -------- AriaDB Metrics ---------------------------------------------------------------------------- [--] AriaDB is disabled. -------- InnoDB Metrics ---------------------------------------------------------------------------- [--] InnoDB is enabled. [!!] InnoDB buffer pool / data size: 27.0G/32.6G [OK] InnoDB buffer pool instances: 27 [!!] InnoDB Used buffer: 64.31% (1138024 used/ 1769458 total) [OK] InnoDB Read buffer efficiency: 99.39% (178550814 hits/ 179650221 total) [!!] InnoDB Write Log efficiency: 88.33% (272078 hits/ 308034 total) [OK] InnoDB log waits: 0.00% (0 waits / 35956 writes) -------- TokuDB Metrics ---------------------------------------------------------------------------- [--] TokuDB is disabled. -------- Galera Metrics ---------------------------------------------------------------------------- [--] Galera is disabled. -------- Replication Metrics ----------------------------------------------------------------------- [--] Galera Synchronous replication: NO [--] No replication slave(s) for this server. [--] This is a standalone server. -------- Recommendations --------------------------------------------------------------------------- General recommendations: Run OPTIMIZE TABLE to defragment tables for better performance MySQL started within last 24 hours - recommendations may be inaccurate Reduce your overall MySQL memory footprint for system stability Dedicated this server to your database for highest performance. Adjust your join queries to always utilize indexes Temporary table size is already large - reduce result set size Reduce your SELECT DISTINCT queries without LIMIT clauses Variables to adjust: *** MySQL's maximum memory usage is dangerously high *** *** Add RAM before increasing MySQL buffer variables *** query_cache_type (=0) join_buffer_size (> 2.0M, or always use indexes with joins) innodb_buffer_pool_size (>= 32G) if possible.
query_cache_type=0
Пока каких-то достижений не заметил. Всё тоже самое. Но mysql пока только разогревается, посмотрим. Но не думаю, что что-то капитально изменится.
А почему бы и нет. И с чего вдруг должны быть одинаковые то?
При чём тут CSP и блокираторы рекламы? Слышим звон?
Также браузеры дописывают CSP под расширения браузера. Расширения всегда главнее правила CSP самого сайта.
Аха, на уровне ООН сразу. 🤣