上一页 1 2 3 4 5 6 ··· 19 下一页
摘要: change limit ``` cat /proc/$PID/limits prlimit -p $pid --core=unlimited:unlimited prlimit --pid $pid --nproc 65535:65535 ``` 阅读全文
posted @ 2023-06-26 14:34 stdpain 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 对于branchless的改造有很多 最简单的: ``` if (a > b) { a += b; } ``` 这种我们其实是可以改写为 ``` a = a > b? a + b : a; ``` 编译器会自动的帮我们编译成branchless的代码: https://godbolt.org/z/h 阅读全文
posted @ 2023-06-01 19:27 stdpain 阅读(20) 评论(0) 推荐(0) 编辑
摘要: compile: ``` c++ -g tmp.cc -o starrocks_be ``` split debug info ``` objcopy --only-keep-debug starrocks_be starrocks_be.debug strip --strip-debug star 阅读全文
posted @ 2023-05-26 15:43 stdpain 阅读(19) 评论(0) 推荐(0) 编辑
摘要: https://akkadia.org/drepper/cpumemory.pdf benchmark: memmove vs memcpy https://github.com/UK-MAC/WMTools/blob/master/tests/memtest.c memcpy https://st 阅读全文
posted @ 2023-05-04 20:11 stdpain 阅读(48) 评论(0) 推荐(0) 编辑
摘要: ### 只能 broadcast 的 join * NULL AWARE LEFT ANTI JOIN * cross join ### 只能 shuffle 的 join * right outer equal join * full outer equal join ### 只能 gather 阅读全文
posted @ 2023-04-21 20:35 stdpain 阅读(17) 评论(0) 推荐(0) 编辑
摘要: [root@linuxcool ~]# fio -filename=linuxcool -direct=1 -iodepth 1 -thread -rw=read -ioengine=psync -bs=16k -size=10G -numjobs=10 -runtime=100 -group_re 阅读全文
posted @ 2023-02-18 12:01 stdpain 阅读(36) 评论(0) 推荐(0) 编辑
摘要: awk '{if(min==""){min=max=$5}; if($5>max) {max=$5}; if($5<min) {min=$5}; total+=$5; count+=1} END {print "avg " total/count," | max "max," | min " min 阅读全文
posted @ 2022-12-08 15:48 stdpain 阅读(21) 评论(0) 推荐(0) 编辑
摘要: export ASAN_OPTIONS=abort_on_error=1:disable_coredump=0:unmap_shadow_on_exit=1 https://stackoverflow.com/questions/42851670/how-to-generate-core-dump- 阅读全文
posted @ 2022-09-16 20:54 stdpain 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 物化我的理解就是获取某一个结果(或是这中间结果) 比如我有一个表 table: k1,k2,v1,v2,v3 如果我执行一个简单的SQL select k1,k2 from table 如果我们的数据存储格式是按列组织的(列存),那么我们只需要物化k1,k2 (只需要扫描k1,k2所在的列),而v1 阅读全文
posted @ 2022-09-16 20:47 stdpain 阅读(325) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/22029834/possible-to-call-inline-functions-in-gdb-and-or-emit-them-using-gcc 阅读全文
posted @ 2022-08-19 14:20 stdpain 阅读(23) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 19 下一页