上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 123 下一页
摘要: stap -v -e 'probe process("/usr/local/mysql56/bin/mysqld").function("*@/usr/src/mysql-5.6.28/sql*").call{ if( tid()==15267) printf("%s:%s %d \n",execn 阅读全文
posted @ 2016-07-04 22:45 zengkefu 阅读(1222) 评论(0) 推荐(0)
摘要: /* uuid_short handling. The short uuid is defined as a longlong that contains the following bytes: Bytes Comment 1 Server_id & 255 4 Startup time of server in seconds 3 Incrementor This means that... 阅读全文
posted @ 2016-07-04 22:17 zengkefu 阅读(1173) 评论(0) 推荐(0)
摘要: 会话1: 会话2: [root@localhost ~]# stap -v -e 'probe process("/usr/local/mysql56/bin/mysqld").function("*Item_*").call{ if( tid()==7625) printf("%s:%s %d \ 阅读全文
posted @ 2016-07-04 20:46 zengkefu 阅读(538) 评论(0) 推荐(0)
摘要: Callgrind uses runtime instrumentation via the Valgrind framework for its cache simulation and call-graph generation. This way, even shared libraries 阅读全文
posted @ 2016-07-04 20:23 zengkefu 阅读(485) 评论(0) 推荐(0)
摘要: http://tsecer.blog.163.com/blog/static/150181720160117355684/ http://tsecer.blog.163.com/blog/static/150181720160117355684/ http://tsecer.blog.163.com 阅读全文
posted @ 2016-07-04 17:24 zengkefu 阅读(902) 评论(0) 推荐(0)
摘要: http://dev.mysql.com/doc/internals/en/ 阅读全文
posted @ 2016-07-04 17:17 zengkefu 阅读(354) 评论(0) 推荐(0)
摘要: 大牛那海蓝蓝 大牛那海蓝蓝 大牛那海蓝蓝 MySQL提供了较为丰富的SQL语句,用以支持MySQL提供的主要功能。在数据库内部,MySQL又是怎么知道自己能够处理哪些对象、处理哪些事情的? 如果我们输入一条SQL语句,MySQL可能报告语法错误或对象不存在等错误提示,这些提示,大致可以分为2类,一类 阅读全文
posted @ 2016-07-04 17:05 zengkefu 阅读(1149) 评论(0) 推荐(0)
摘要: http://blog.itpub.net/15480802/viewspace-1465080/ 阅读全文
posted @ 2016-07-04 16:13 zengkefu 阅读(135) 评论(0) 推荐(0)
摘要: (gdb) thread apply all bt Thread 9 (Thread 0x7f5430627940 (LWP 5126)): #0 0x00007f5497db1019 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x0000000000baaa63 in os_cond_wait ... 阅读全文
posted @ 2016-07-04 13:31 zengkefu 阅读(379) 评论(0) 推荐(0)
摘要: echo "this is test" >xxdebugfs: ls -d /root/test1 2985554 (12) . 2949121 (12) .. 2985555 (4072) xx (4052) test.c debugfs: q [root@localhost test1]# rm -rf xx [root@localh... 阅读全文
posted @ 2016-07-04 11:24 zengkefu 阅读(1196) 评论(0) 推荐(0)
摘要: DebugFS,顾名思义,是一种用于内核调试的虚拟文件系统,内核开发者通过debugfs和用户空间交换数据。类似的虚拟文件系统还有procfs和sysfs等,这几种虚拟文件系统都并不实际存储在硬盘上,而是Linux内核运行起来后才建立起来。 通常情况下,最常用的内核调试手段是printk。但prin 阅读全文
posted @ 2016-07-04 10:03 zengkefu 阅读(291) 评论(0) 推荐(0)
摘要: Linux缺省情况下使用的文件系统为Ext2,ext2文件系统的确高效稳定。但是,随着Linux系统在关键业务中的应用,Linux文件系统的弱点也渐渐显露出来了:其中系统缺省使用的ext2文件系统是非日志文件系统。这在关键行业的应用是一个致命的弱点。本文向各位介绍Linux下使用ext3日志文件系统 阅读全文
posted @ 2016-07-04 09:59 zengkefu 阅读(2527) 评论(0) 推荐(0)
摘要: 1。查看CPU运行时间 [guest@localhost tmp]$ strace -c ./b.out % time seconds usecs/call calls errors syscall 42.72 0.000692 87 8 open 38.40 0.000622 622 1 set_ 阅读全文
posted @ 2016-07-04 00:18 zengkefu 阅读(467) 评论(0) 推荐(0)
摘要: 前几天微博上有同学问我磁盘util达到了100%时程序性能下降的问题,由于信息实在有限,我也没有办法帮太大的忙,这篇blog只是想给他列一下在磁盘util很高的时候如何通过blktrace+debugfs找到发生IO的文件,然后再结合自己的应用程序,分析出这些IO到底是谁产生的,最终目的当然是尽量减 阅读全文
posted @ 2016-07-03 23:56 zengkefu 阅读(1808) 评论(0) 推荐(0)
摘要: 一、使用方法: 二、基本原理: 三、总结 很多情况下开发者调测程序需要在Linux下获取具体的IO的状况,目前常用的IO观察工具用vmstat和iostat,具体功能上说当然是iostat更胜一筹,在IO统计上时间点上更具体精细。但二者都是在全局上看到IO,宏观上的数据对于判断IO到哪个文件上毫无帮 阅读全文
posted @ 2016-07-03 23:35 zengkefu 阅读(2128) 评论(0) 推荐(0)
摘要: 近期要在公司内部做个Linux IO方面的培训, 整理下手头的资料给大家分享下 各种IO监视工具在Linux IO 体系结构中的位置 源自 Linux Performance and Tuning Guidelines.pdf 1 系统级IO监控 iostat iostat -xdm 1 # 个人习 阅读全文
posted @ 2016-07-03 23:10 zengkefu 阅读(7674) 评论(0) 推荐(0)
摘要: 发现有一个工具mysqlsla,分析查询日志比 mysqldumpslow分析的会更清晰明了!安装mysqlsla:下载mysqlsla-2.03.tar.gz[root@yoon export]# tar -xvf mysqlsla-2.03.tar.gz[root@yoon export]# y 阅读全文
posted @ 2016-07-03 21:38 zengkefu 阅读(400) 评论(0) 推荐(0)
摘要: 加入账号: 打印所有已经写入的账号 登陆: 账号写入位置:该文件已经加密, 不能被偷看 阅读全文
posted @ 2016-07-03 21:14 zengkefu 阅读(228) 评论(0) 推荐(0)
摘要: 作者:吴炳锡 来源:http://www.mysqlsupport.cn/ 联系方式: wubingxi#163.com 转载请注明作/译者和出处,并且不能用于商业用途,违者必究. Antelope是innodb-base的文件格式, Barracude是innodb-plugin后引入的文件格式, 阅读全文
posted @ 2016-07-03 20:58 zengkefu 阅读(509) 评论(0) 推荐(0)
摘要: 先安装orzdba,链接:http://blog.itpub.net/28939273/viewspace-1875895/安装依赖的包:[root@hank-yoon servers]# yum install perl-TermReadKey.x86_64否则报错如下:[root@hank-yo 阅读全文
posted @ 2016-07-03 20:44 zengkefu 阅读(1651) 评论(0) 推荐(0)
摘要: 源代码地址:http://code.taobao.org/p/orzdba/src/trunk/ [root@hank-yoon servers]# chmod +x orzdba在代码的160行左右,配置自己的MySQL验证信息:username、password、socket、host、port 阅读全文
posted @ 2016-07-03 20:42 zengkefu 阅读(2985) 评论(0) 推荐(0)
摘要: Tsar介绍 Tsar是淘宝的一个用来收集服务器系统和应用信息的采集报告工具,如收集服务器的系统信息(cpu,mem等),以及应用数据(nginx、swift等),收集到的数据存储在服务器磁盘上,可以随时查询历史信息,也可以将数据发送到nagios报警。 Tsar能够比较方便的增加模块,只需要按照t 阅读全文
posted @ 2016-07-03 20:38 zengkefu 阅读(2004) 评论(0) 推荐(0)
摘要: http://mysqltuner.com/ MySQLTuner-perl MySQLTuner is a script written in Perl that will assist you with your MySQL configuration and make recommendati 阅读全文
posted @ 2016-07-03 20:14 zengkefu 阅读(468) 评论(0) 推荐(0)
摘要: 1、登录配置界面 2、show processlist 查看当前使用的进程 3、警告建议你应该优化哪些参数。 4、介绍一下慢查询的配置,其它的可以自己配置,都是简单的英文。 该工具,用着还不错。其余的可以自己安装个试试。 官方网站:http://www.webyog.com/product/mony 阅读全文
posted @ 2016-07-03 19:51 zengkefu 阅读(566) 评论(0) 推荐(0)
摘要: [root@server-mysql mytop-1.6]# wget http://www.day32.com/MySQL/tuning-primer.sh --2016-07-03 19:42:33-- http://www.day32.com/MySQL/tuning-primer.sh Resolving www.day32.com... 192.237.221.190 Co... 阅读全文
posted @ 2016-07-03 19:47 zengkefu 阅读(579) 评论(0) 推荐(0)
上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 123 下一页