随笔分类 -  Running

mysql的for update问题记录和解决方案(悲观锁一般使用方式)
摘要:本文测试时间时2020.12.06 测试的mysql版本是community版本8.0.22 首先指出一个select ...for update的一个大家很容易产生的错误理解:"for update可以锁存在的和不存在的记录,同一个索引字段的同样的值一定会block住。" 这句话对也不对。对是指它 阅读全文

posted @ 2020-12-06 18:33 三叁 阅读(2507) 评论(3) 推荐(0)

ftrace: tracing linux function calls
摘要:First confirm that you have root privilege. Second check the config of kernel that you have the configs on: Last you confirm you have your debugfs/tra 阅读全文

posted @ 2018-10-28 16:26 三叁 阅读(197) 评论(0) 推荐(0)

lock: mutex/spinlock/shared lock
摘要:mutex( x lock): when a mutex lock is obtained, others cannot obtain the same mutex while the lock is not freed. shared lock( s lock): when a shared lo 阅读全文

posted @ 2018-10-25 00:26 三叁 阅读(178) 评论(0) 推荐(0)

Systemtap: learning notes
摘要:Before using stap, the kernel-debuginfo-$(uname -r), kernel-debuginfo-common-$(uname -m)-$(uname -r) and kernel-devel-$(uname -r) should be installed. 阅读全文

posted @ 2018-07-15 18:48 三叁 阅读(283) 评论(0) 推荐(0)

Crossbuild: with crosstool-ng
摘要:Before preceding, several things need to be checked: There are too many tutorials on how to build with ct-ng, I only list several useful steps for fut 阅读全文

posted @ 2018-07-04 06:35 三叁 阅读(308) 评论(0) 推荐(0)

IOCTL: usage example
摘要:ioctl is used in communication with modules of Linux. Module: User space In case of Makefile is needed: 阅读全文

posted @ 2018-05-03 17:56 三叁 阅读(530) 评论(0) 推荐(0)

GNU Autoconf: Intro
摘要:some frequently used AC macros: AC_INIT :must AC_OUTPUT :must AC_PREREQ :determine ac version so that needed features are included AC_CONFIG_SRCDIR :d 阅读全文

posted @ 2018-03-06 11:58 三叁 阅读(263) 评论(0) 推荐(0)

TSC: Intro & Comments
摘要:From wiki quote: The Time Stamp Counter (TSC) is a 64-bit register present on all x86 processors since the Pentium. It counts the number of cycles sin 阅读全文

posted @ 2018-01-20 12:12 三叁 阅读(222) 评论(0) 推荐(0)

C: release & debug differences (might apply to all programming languages)
摘要:Sometimes we build a program as release and when debugging, some variables cannot be printed out, and displayed as optimized out. That is because the 阅读全文

posted @ 2017-12-21 20:12 三叁 阅读(172) 评论(0) 推荐(0)

net-snmp: introduction
摘要:SNMP is a protocol that enables server remote-info-exchange. Which according to wikipedia: it [collecting and organizing information about managed dev 阅读全文

posted @ 2017-10-09 18:11 三叁 阅读(468) 评论(0) 推荐(0)

Maven: Usage
摘要:Maven, is actually a java project manager.. Installing maven in windows need to set system environment vars like JAVA_HOME and PATH.. And it is rather 阅读全文

posted @ 2017-03-19 21:07 三叁 阅读(300) 评论(0) 推荐(0)

Docker: Usage instruction
摘要:Install docker from official site, in windows. or install docker from repo as official site told, in linux.. after installation, we run by: (windows s 阅读全文

posted @ 2016-10-27 18:01 三叁 阅读(397) 评论(0) 推荐(0)

GDB: advanced usages
摘要:Sometimes running program in Unix will fail without any debugging info or warnings because of the laziness of programmer.. So if need to find the righ 阅读全文

posted @ 2016-09-06 18:41 三叁 阅读(755) 评论(0) 推荐(0)

Newly Setting up a CentOS-7 system
摘要:yum install -y epel-release glibc.i686 libtools vim clang git autoconf automake w3m glibc screen the most import sentence I learned in meeting compili 阅读全文

posted @ 2016-07-10 11:19 三叁 阅读(265) 评论(0) 推荐(0)

导航