作者: 毛狐狸

668 篇文章

TrueNas Scale libvirt-sock
/run/truenas_libvirt/libvirt-sock virsh -c "qemu+unix:///system?socket=/run/truenas_libvirt/libvirt-sock" nodedev-list 资料来源: https://www.truenas.com/community/threads/libvirt-vm.94250/
RDMA RoCE相关资料
普通RoCE需要网卡和交换机支持,交换机需要支持无损网络才可以完美运行。 IEEE 802.1Qbb 是 RoCE(RDMA over Converged Ethernet)的必备条件 不支持无损网络的交换机也可以运行,但是大流量时可能会出现问题导致性能下降,不过对于家用来说影响不大。 现在出现了弹性RoCE,弹性RoCE是通过有损网络(未启用流量控制的网络)发送RoCE流量的能力,而无需在网络上启用流量控制。只有RoCEv2版本才支持该功能,目前只有ConnectX-4/Lx之后的网卡型号支持。 相关资料: https://forum.mikrotik.com/viewtopic.php?t=130474 https://community.mellanox.com/s/article/introduction-to-resilient-…
Linux系统修改网卡名(eth0-3)
from -- https://www.cnblogs.com/yinfutao/p/9634350.html Linux系统修改网卡名(eth0-3) 一、命名规则策略 规则1: 对于板载设备命名合并固件或 BIOS 提供的索引号,如果来自固件或 BIOS 的信息可读就命名,比如eno1,这种命名是比较常见的,否则使用规则2。 规则2: 命名合并固件或 BIOS 提供的 PCI-E 热插拔口索引号,比如 ens1,如果信息可读就使用,否则使用规则3。 规则3: 命名合并硬件接口的物理位置,比如 enp2s0,可用就命名,失败直接到方案5。 规则4: 命名合并接口的 MAC 地址,比如 enx78e7d1ea46da,默认不使用,除非用户选择使用此方案。 规则5: 使用传统的方案,如果所有的方案都失败,使用类似 eth0 这样的样式。 二、…
Linux系统打开SRIOV
BIOS启用相关设置 在GRUB引导参数后添加 intel_iommu=on iommp=pt 重启后启用特定数量的VF网卡 echo 4 > /sys/class/net/enp1s0f0/device/sriov_numvfs 相关资料: https://zhuanlan.zhihu.com/p/356437308
构建android内核时DTC工具中的多个定义错误
diff --git a/scripts/dtc/dtc-lexer.lex.c_shipped b/scripts/dtc/dtc-lexer.lex.c_shipped index 2d30f41778b..d0eb405cb81 100644 --- a/scripts/dtc/dtc-lexer.lex.c_shipped +++ b/scripts/dtc/dtc-lexer.lex.c_shipped @@ -637,7 +637,7 @@ char *yytext; #include "srcpos.h" #include "dtc-parser.tab.h" -YYLTYPE yylloc; +extern YYLTYPE yylloc; /* CAUTION: this will s…
Windows 来宾系统提示“安全删除硬件”
找到相关硬件ID,找到对应的注册表,然后在原值的基础上减4 reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\VEN_8086&DEV_100E&SUBSYS_11001AF4&REV_03\3&13c0b0c5&0&90" /v Capabilities /t REG_DWORD /d 2 /f Important when in the registry editor, look under the Capabilities sextion and check it ends with 6 (ie 0x00000006) if it doesn't the the correspondin…
thumbnail
修改jar的三种方法(反编译jar)
from -- https://blog.csdn.net/qq_43645782/article/details/107608126 修改jar的三种方法(反编译jar) 工具准备 三种方式 1.使用fernflower反编译之后再编译 3.通过引入原来的jar包,修改代码(推荐) 总结 工具准备 相同大版本的jdk idea fernflower.jar javassist.jar jd-gui 三种方式 1.使用fernflower反编译之后再编译 把要反编译的.jar修改成.zip java -jar fernflower.jar classes.zip zzCode/ 即可得到全为java的jar文件,用压缩软件解压后导入idea即可 2.使用javassist动态修改class import javassist.ClassPoo…