会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Toggle navigation
stdpain
博客园
联系
Submit
订阅
管理
管理面板
随笔
stdpain
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
19
下一页
2025年8月14日
glibc TUNABLES
摘要: glibc 提供了一些开关来调优 https://www.gnu.org/software/libc/manual/html_node/Tunables.html 例如我们在AVX机器上测试不开启SIMD memcpy的性能。 export GLIBC_TUNABLES=glibc.cpu.hwca
阅读全文
posted @ 2025-08-14 20:37 stdpain
阅读(15)
评论(0)
推荐(0)
2025年6月6日
get intel cpu arch
摘要: ref:https://unix.stackexchange.com/questions/230634/how-to-find-out-the-cpu-code-name-architecture-family #!/bin/bash # cascade lake 2nd gen stuff fro
阅读全文
posted @ 2025-06-06 16:10 stdpain
阅读(36)
评论(0)
推荐(0)
bitmask 通用操作
摘要: 把某些bit设置为1 mask or 0011 把某些bit设置为0 mask and not (0011) 翻转某些bit mask xor 0011
阅读全文
posted @ 2025-06-06 10:17 stdpain
阅读(5)
评论(0)
推荐(0)
2024年12月2日
addr2line 性能回退
摘要: 更换系统后发现 addr2line 性能回退特别严重。原来16s就能出现在需要min级别 本来想修复下的,发现官方已经修复了。 https://sourceware.org/bugzilla/show_bug.cgi?id=28588
阅读全文
posted @ 2024-12-02 17:20 stdpain
阅读(24)
评论(0)
推荐(0)
2024年9月5日
glibc-2.17 编译失败
摘要: 报错如下: Error: `_obstack@GLIBC_2.2.5' can't be versioned to common symbol '_obstack_compat' 修复方法: 修改代码 diff --git a/malloc/obstack.c b/malloc/obstack.c
阅读全文
posted @ 2024-09-05 13:20 stdpain
阅读(251)
评论(0)
推荐(0)
2024年6月11日
presto 查询调度流程 (Coordinator Scheduler)
摘要: based on tag: 0.287 presto的 scheduler 是 SqlQueryScheduler 这个类控制的, 这个class主要是负责调度物理执行计划。调度具体的每个SqlStageExecution. 这个Stage可以当成Fragment的一个概念 他会先把所有的stage
阅读全文
posted @ 2024-06-11 11:25 stdpain
阅读(64)
评论(0)
推荐(0)
2024年5月31日
C++ vector 避免 fill 0
摘要: 我们在profiler的时候有的时候发现memset占用热点比较高。而且是std::vector::resize 带来的。这个明显是没必要的, 例如: std::vector<int> result; // 这里resize会 fill 0 result.resize(input_rows); fo
阅读全文
posted @ 2024-05-31 15:51 stdpain
阅读(55)
评论(0)
推荐(0)
2024年5月28日
clang-format
摘要: format diff git diff -U0 HEAD^ | clang-format-diff-16 -p1 -i git hook .git/hooks/pre-commit #!/bin/bash STYLE=$(git config --get hooks.clangformat.sty
阅读全文
posted @ 2024-05-28 19:12 stdpain
阅读(27)
评论(0)
推荐(0)
C++17 链接 C++11 lib 出现重复定义
摘要: C++11 实现 static constexpr 是按照const static 实现的,需要在 .cpp 中定义: // tmp.h class StatisTest { public: static constexpr const char literal[] = "xxx literal";
阅读全文
posted @ 2024-05-28 17:37 stdpain
阅读(24)
评论(0)
推荐(0)
2024年3月22日
模拟TCP丢包
摘要: 随机丢10% sudo tc qdisc add dev eth0 root netem loss 10% 恢复 sudo tc qdisc del dev eth0 root
阅读全文
posted @ 2024-03-22 16:28 stdpain
阅读(22)
评论(0)
推荐(0)
1
2
3
4
5
···
19
下一页
公告
Copyright © 2021 stdpain
Powered by .NET 5.0 on Kubernetes