MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
pyKun
V2EX  ›  MySQL

mysql 把一个 thread 的 cpu 跑满的问题

  •  
  •   pyKun · Oct 10, 2014 · 3804 views
    This topic created in 4271 days ago, the information mentioned may be changed or developed.
    服务器在测试 http 的服务,然后在 mysql 改用异步的后,磁盘的 io 利用率上去了,但没上去太多,我观察了下 top -p <mysql pid> 发现有一个 cpu thread 总是 80% ~ 90%,这可以认为 mysql 把一个 thread 的 cpu 跑满了么?

    其实我想问的是我的服务器 cpu 有 24 个 thread,我想 mysql 再多用几个 cpu thread 应该怎么操作?
    2 replies    2014-10-10 16:17:08 +08:00
    est
        1
    est  
       Oct 10, 2014
    据说5.7多线程性能好很多
    pyKun
        2
    pyKun  
    OP
       Oct 10, 2014
    补充下,我搞错了点,%CPU 下面那个数已经是总的 CPU thread 利用率的和了,横条上面的80% ~ 90% 是所有程序的效果,然后 mysql 在测试 workload 的情况下,只把一个 thread 跑了 6 ~ 9%,也就是说mysql自己还没到瓶颈(因为 disk util 也就在 5 ~ 8)

    @est okay,mark下,回去对比下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2597 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:17 · PVG 17:17 · LAX 02:17 · JFK 05:17
    ♥ Do have faith in what you're doing.