摘要:[ 55.732900] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 0000000095d22a08, val ffffffffc07aa525
阅读全文
摘要:添加 if(setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(int))<0) { perror("setsockopt() reuse"); goto err1; } 添加SO_REUSEADDR之后 connect(): Can
阅读全文
摘要:sysctl -a | grep ipv6 | grep disable net.ipv6.conf.enahisic2i0.disable_ipv6 = 0net.ipv6.conf.enahisic2i0.disable_policy = 0net.ipv6.conf.enahisic2i1.d
阅读全文
摘要:interrupt cpu个数: 254 ``` lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: 43 bits physical, 48 bits
阅读全文
摘要:超时处理dev_watchdog 当watchdog发现网卡处于up状态并且发送队列处于停止时间大于5秒时将触发看门狗机制, dev_watchdog先找到停止的队列,然后调用igb_tx_timeout整个网卡队列做超时处理,igb_tx_timeout中对网卡做了DOWN、UP的操作。 stat
阅读全文
摘要:libc 内存管理原理探究 Linux 内存管理有三个层面,第一层是我们的用户管理层,比如我们自己程序的内存池,mysql 的 bufferpool,第二层是 C 的运行时库,这部分代码是对内核的一个包装,方便上层应用更方便的开发,再下一层就是我们的内核层了。 我们今天要重点介绍的就是中间那一层,这
阅读全文