File tree Expand file tree Collapse file tree 6 files changed +27
-1
lines changed
Expand file tree Collapse file tree 6 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 1+ // 记录一些值得深入研究的开源项目
2+
131、ext3grep
24 url: https://code.google.com/archive/p/ext3grep/source/default/source
Original file line number Diff line number Diff line change 1+ // 记录docker相关知识点
2+
3+ 1、之前一直没有留意,在宿主机上使用ps 或 top 等命令是可以看到docker内进程信息的,但由于namespace隔离机制,
4+ docker内部是无法看到宿主os的进程信息
5+
6+ 2、怎么确认一个进程是由docker启动的?
7+ (tips:从上面 1 中由ps 或 top 获取进程pid,然后cat /proc/${pid}/cgroup | grep docker,如果有输出,则可以确认进程
8+ 由docker创建; 另外,也可以使用 docker inspect 来反向验证)
Original file line number Diff line number Diff line change 1+ // record awsome git tool
2+
3+ 1、当远端git仓库不支持添加ssh public key的方式进行免密访问时,可以使用 git config --global credential.helper store 命令,在随后的git 命令中再次输入账密后,
4+ git会自动记录账号 密码,之后的访问就可以免密
5+
6+ 2、git clone 下载代码hang住时,如果排除了基本的网络和权限原因外,还是不能发现问题,可以尝试
7+ GIT_TRACE=1 git clone ${git_url}
8+ 上述命令会展示git clone的细节,比 git clone --verbose 还要详细
9+
10+ 3、查看一个被删除文件的log时,可以使用 git log --all --full-history -- <path to file>
Original file line number Diff line number Diff line change 79796、客户端可以创建多少个socket?(同一个IP地址)
8080
81817、epoll poll select 区别与联系?
82+ (tips:select实现了基本的IO多路复用,但是一是支持的fdset数量固定,受一个内核宏的控制
83+ 而且不好修改,之前有人尝试改过,但效果不佳,内核会panic,二是select基于遍历操作,时间复杂度是O(N),
84+ 三是fdset需要频繁的在用户空间和内核空间进行拷贝;poll则针对待监听fd数量进行了优化;
85+ epoll则针对上述三项分别进行了优化)
8286
83878、epoll 中 LT ET 区别,使用场景?
8488 (tips:ET中,如果没有read socket到 EAGAIN,有可能导致整个处理过程阻塞,
Original file line number Diff line number Diff line change 1- this doc record some useful tools to trace problem or optimize performance
1+ // this doc record some useful tools to trace problem or optimize performance
22
33#No.1 dropwatch
44用来查看机器丢包信息,辅助定位网络问题
Original file line number Diff line number Diff line change 1+ // 记录一些 awsome 网站
2+ 1、linux-commits-search.typesense.org 内核commit搜索网站
You can’t perform that action at this time.
0 commit comments