随笔分类 -  API

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)

event based: libev libevent libuv
摘要:libev First let's talk about libev, it is a lib used in ss. The coding style of libev is ugly. To see man page of libev by: man ./ev.3 3 files need to 阅读全文

posted @ 2018-10-19 03:13 三叁 阅读(362) 评论(0) 推荐(0)

Linux Network: Receive side notes
摘要:At kernel init, each logical core has a thread called ksoftirq/%d running. These threads are brought up by the initial function net_dev_init(). While 阅读全文

posted @ 2018-08-31 05:54 三叁 阅读(244) 评论(0) 推荐(0)

TCP options: Intro
摘要:According to RedHat accessories, TCP_NODELAY: each call to write(fd, buf...) will be sent out as packet. This leads to poor overall performance when m 阅读全文

posted @ 2018-08-30 20:58 三叁 阅读(133) 评论(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)

Rule of Programming: C
摘要:My summary after reading this. Before doing large memory writes: _mm*_stream_s[i,s,d]*: non-temporal memory store: When data is produced and not (imme 阅读全文

posted @ 2018-05-24 12:04 三叁 阅读(165) 评论(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)

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)

GNU make: Learning notes
摘要:before talking about Makefiles, compilers are important pre-knowledge. first compile a executable ELF file, by: if we are going to compile one/several 阅读全文

posted @ 2017-04-12 15:22 三叁 阅读(180) 评论(0) 推荐(0)

OvS: ovs-ofctl adding parameters analysis
摘要:if using dpdk, then OvS' datapath folder is ignored. Only OvS' userspace code are in use. According to manpages of ovs-vsctl/ovs-dpctl, it says that t 阅读全文

posted @ 2017-01-04 15:45 三叁 阅读(484) 评论(0) 推荐(0)

Zookeeper: configuring on centos7
摘要:this passage is referenced, appreciated. ZooKeeper installation: to share my_data between clients.. create /zk_test my_dataget /zk_testdelete /zk_test 阅读全文

posted @ 2016-08-09 17:07 三叁 阅读(169) 评论(0) 推荐(0)

Setting DPDK+OVS+QEMU on CentOS
摘要:Environment Build Step: these packages are needed for building dpdk+ovs: First download latest dpdk & ovs :http://dpdk.org/download git clone https:// 阅读全文

posted @ 2016-07-10 13:22 三叁 阅读(1804) 评论(0) 推荐(1)

Using Python defined functions in packages ..
摘要:Using Vim.. Python programing seems easier because YCM helps presenting all the arguments required in its order.. But there's one more problem that's 阅读全文

posted @ 2016-05-27 17:15 三叁 阅读(142) 评论(0) 推荐(0)

Java Concurrent Topics
摘要:To prevent Memory Consistency Errors(MCEs), it is good practice to specify synchronized class specifier, and mark all the related methods as synchroni 阅读全文

posted @ 2016-04-15 15:23 三叁 阅读(166) 评论(0) 推荐(0)

Java Interrupt Related
摘要:In Java, the main process can have several threads at a time, but only a few of them can run concurrently, so it is needed to cancel some thread at ti 阅读全文

posted @ 2016-04-15 13:46 三叁 阅读(174) 评论(0) 推荐(0)

Java NIO Related
摘要:A file's status is 3-valued: So !Files.exists(path) != Files.notExists(path). If both exists and notExists return false, the existence of the file can 阅读全文

posted @ 2016-04-14 10:55 三叁 阅读(248) 评论(0) 推荐(0)

Java BigDecimal Class
摘要:Using BigDecimal to perform precise calculations with floats. BigDecimal is a class type. So declare/construct one BigDecimal is in the form like: Do 阅读全文

posted @ 2016-04-12 16:24 三叁 阅读(290) 评论(0) 推荐(0)

Learning Java 8 Syntax (Java in a Nutshell 6th)
摘要:Java learning scripts 阅读全文

posted @ 2016-04-05 16:32 三叁 阅读(262) 评论(0) 推荐(0)

导航