Perf

Perf 从2.6.31内核开始,linux内核自带了一个性能分析工具perf,能够进行函数级与指令级的热点查找。 Perf 是用来进行软件性能分析的工具。 通

ID Mapper, idmapper, fs.nfs.idmap_cache_timeout

ID Mapper, idmapper, fs.nfs.idmap_cache_timeout Id mapper is used by NFS to translate user and group ids into names, and to translate user and group names into ids. Part of this translation involves performing an upcall to userspace to request the information. fs.nfs.idmap_cache_timeout 设置idmapper缓存项的最大寿命,单位是秒 https://www.kernel.org/doc/Documentation/filesystems/nfs/idmapper.txt https://www.cnblogs.com/tolimit/p/5065761.html

epoll, kqueue

epoll, kqueue epoll 通过使用红黑树(RB-tree)搜索被监视的文件描述符(file descriptor)。 用户空间与内核空间 现在操作系统都是采用虚拟存储

Shell 逐行处理文本文件

Shell 逐行处理文本文件, shell 读文件 https://www.cnblogs.com/dwdxdy/archive/2012/07/25/2608816.html read命令 read命令接收标准输入,或其他文件描述符的输入,得到输入后,read命令将数据放入一个标准变量中

RCU

RCU RCU是read-copy-update的简称,翻译为中文有点别扭"读-复制-更新”。它是是一种同步机制,有三种角色

SysRq

SysRq https://blog.csdn.net/jasonchen_gbd/article/details/79080576 SysRq是Linux提供的一个"Magic System Request Key”, 它可以在系统出现故障的时候协助恢复和调试系统。只要你的虚拟终端或串口还可以接

rclone mount google drive, webdav, onedrive

rclone mount google drive, webdav, onedrive install rclone 1 2 3 # install rclone sudo pacman -S rclone sudo pacman -S fuse config fuse 1 2 3 sudo vim /etc/fuse.conf # uncomment user_allow_other user_allow_other google drive 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 # config rclone rclone config # n, new config # name? name-foo, a name # 11, google drive

Awk/Unix group by

Awk/Unix group by 1 2 3 $ awk -F, 'NR>1{arr[$1]++}END{for (a in arr) print a, arr[a]}' file.txt joe 1 jim 1 mike 3 bob 2 EXPLANATIONS -F, splits on , NR>1 treat lines after line 1 arr[$1]++ increment array arr (split with ,) with first column as key END{} block is executed @ the end of processing the file for (a in arr) iterating over arr with a key

sysctl

sysctl archlinux systemd-sysctl 服务在启动时会加载 /etc/sysctl.d/*.conf, 配置内核参数 /etc/sysctl.conf 不起作用 sysctl 命令被用于在内核运行时动态地修改内核的运行参数, 可用的内核参数在目录 /proc/sys 中。它包含一些 TCP/ip 堆栈

Uboot

Uboot https://www.jianshu.com/p/42106ed7cbde 我们知道,bootloader是系统上电后最初加载运行的代码。它提供了处理器上电复位后最开始需要执行的初始化代码。 在PC机上引导程序一般

tcp_syn_retries等参数

tcp_syn_retries等参数 http://www.chengweiyang.cn/2017/02/18/linux-connect-timeout/ tcp_syn_retries tcp_synack_retries 1 sysctl -a | grep tcp_synack_retries http://www.cnitblog.com/Scripts/archive/2009/05/20/57350.html tcp_syn_retries等参数详解(转帖) tcp_syn_retries : INTEGER 默认值是5 对于一个新建连接,内

arp command

arp command ARP 协议概述 IP 数据包常通过以太网发送。以太网设备并不识别32位IP地址: 它们是以48位以太网地址传输以太网数据包的。因此,IP驱动器必须把

MySQL count 性能

MySQL count 性能 https://blog.csdn.net/kjsoftware/article/details/76762208 COUNT()的作用 COUNT()是一个特殊的函数,有两种非常不同的作用: 它可以统计某个列值的数量,也可以统计行数。在统计列值时要

MySQL 聚簇索引

MySQL 聚簇索引 https://yq.aliyun.com/articles/142879 https://blog.csdn.net/bigtree_3721/article/details/51335479 因为存储引擎负责实现索引,因此不是所有的存储引擎都支持聚簇索引。 一些数据库服务器允许选择哪个索引作为聚簇索引,但直到本书写作之

svn change passwd

svn change passwd svn change password after svn password changed, delete the folder $HOME/.subversion run svn checkout -username user svn://server/repo, input new password run git svn

systemd-networkd MAC address spoofing

systemd-networkd MAC address spoofing 1 2 3 4 5 6 7 8 vim /etc/systemd/network/00-default.link [Match] MACAddress=old mac address [Link] MACAddress=new mac address NamePolicy=kernel database onboard slot path NamePolicy 应该如何设置网卡的名称, 仅在未使用 “net.ifnames=0” 内核引导选项时有意义。 接受一个空格分隔的策略列表

MySQL 在线修改表结构

MySQL 在线修改表结构 http://www.cnblogs.com/wangtao_20/p/3504395.html MySQL在线修改表结构大数据表的风险与解决办法归纳 整理这篇文章的缘由: 互联网应用会频繁加功能,修改需求。那么表结构也会经