随笔分类 -  linuxOS

摘要:‌RISC-V架构‌:基于精简指令集计算(RISC)原理的开放指令集架构(ISA),具有模块化设计、完整工具链和大量的开源实现,适用于物联网、嵌入式系统和服务器等领域‌2。 ‌ARM架构‌:以低功耗、低成本和高性能著称,广泛应用于移动通讯和消费性电子产品,如智能手机和平板电脑等‌3。 ‌X86架构‌ 阅读全文
posted @ 2024-10-17 10:45 hugingface 阅读(122) 评论(0) 推荐(0)
摘要:DS is called data segment register. It points to the segment of the data used by the running program. You can point this to anywhere you want as long 阅读全文
posted @ 2024-10-15 09:45 hugingface 阅读(358) 评论(0) 推荐(0)
摘要:进程在运行过程中产生了如下问题:初始运行正常,一段时间后,该进程无任何相应,并且无法结束,ctrl + c, kill -9 均对此无效,系统重启卡住,无法主动关机。 经过查看/proc/下进程信息,并且经过测试,发现该进程一直处于运行态,并且能够接收到sig信号,但却没有处理。 经过分析,定位到该 阅读全文
posted @ 2024-10-10 16:20 hugingface 阅读(38) 评论(0) 推荐(0)
摘要:/* * timr.c * * Created on: May 11, 2024 * Author: */ #include <signal.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <time.h> 阅读全文
posted @ 2024-10-10 14:26 hugingface 阅读(27) 评论(0) 推荐(0)
摘要:1. 安装ethtool wget https://mirrors.edge.kernel.org/pub/software/network/ethtool/ethtool-5.2.tar.xz tar -xf ethtool-5.2.tar.xz cd ethtool-5.2 ./configur 阅读全文
posted @ 2024-09-26 19:02 hugingface 阅读(45) 评论(0) 推荐(0)
摘要:3. 查看或修改进程的调度属性 查看调度属性: $ chrt -p 30236 pid 30236's current scheduling policy: SCHED_OTHER pid 30236's current scheduling priority: 0 2. 进程负载均衡 内核中的 m 阅读全文
posted @ 2024-09-09 16:10 hugingface 阅读(18) 评论(0) 推荐(0)
摘要:top -H -p pid pstack pid 阅读全文
posted @ 2024-07-18 15:09 hugingface 阅读(20) 评论(0) 推荐(0)
摘要:Tcpreplay是一种pcap包的重放工具, 它可以将tcpdump和Ethereal/Wireshark等工具捕捉到的网络流量包进行编辑修改和重放. 重写Layer 2、3、4层数据包,并将流量重新发送至目标网络, 这样通过重放网络流量包从而实现复现问题情景以定位bug tcpreplay本身包 阅读全文
posted @ 2022-07-25 15:06 hugingface 阅读(1881) 评论(1) 推荐(0)