1 2 3 4 5 ··· 19 下一页
摘要: 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)
摘要: 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)
摘要: 把某些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)
摘要: 更换系统后发现 addr2line 性能回退特别严重。原来16s就能出现在需要min级别 本来想修复下的,发现官方已经修复了。 https://sourceware.org/bugzilla/show_bug.cgi?id=28588 阅读全文
posted @ 2024-12-02 17:20 stdpain 阅读(24) 评论(0) 推荐(0)
摘要: 报错如下: 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)
摘要: based on tag: 0.287 presto的 scheduler 是 SqlQueryScheduler 这个类控制的, 这个class主要是负责调度物理执行计划。调度具体的每个SqlStageExecution. 这个Stage可以当成Fragment的一个概念 他会先把所有的stage 阅读全文
posted @ 2024-06-11 11:25 stdpain 阅读(64) 评论(0) 推荐(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)
摘要: 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++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)
摘要: 随机丢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 下一页