摘要:
change limit ``` cat /proc/$PID/limits prlimit -p $pid --core=unlimited:unlimited prlimit --pid $pid --nproc 65535:65535 ``` 阅读全文
摘要:
对于branchless的改造有很多 最简单的: ``` if (a > b) { a += b; } ``` 这种我们其实是可以改写为 ``` a = a > b? a + b : a; ``` 编译器会自动的帮我们编译成branchless的代码: https://godbolt.org/z/h 阅读全文
摘要:
compile: ``` c++ -g tmp.cc -o starrocks_be ``` split debug info ``` objcopy --only-keep-debug starrocks_be starrocks_be.debug strip --strip-debug star 阅读全文
摘要:
https://akkadia.org/drepper/cpumemory.pdf benchmark: memmove vs memcpy https://github.com/UK-MAC/WMTools/blob/master/tests/memtest.c memcpy https://st 阅读全文
摘要:
### 只能 broadcast 的 join * NULL AWARE LEFT ANTI JOIN * cross join ### 只能 shuffle 的 join * right outer equal join * full outer equal join ### 只能 gather 阅读全文
摘要:
[root@linuxcool ~]# fio -filename=linuxcool -direct=1 -iodepth 1 -thread -rw=read -ioengine=psync -bs=16k -size=10G -numjobs=10 -runtime=100 -group_re 阅读全文
摘要:
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 阅读全文
摘要:
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- 阅读全文
摘要:
物化我的理解就是获取某一个结果(或是这中间结果) 比如我有一个表 table: k1,k2,v1,v2,v3 如果我执行一个简单的SQL select k1,k2 from table 如果我们的数据存储格式是按列组织的(列存),那么我们只需要物化k1,k2 (只需要扫描k1,k2所在的列),而v1 阅读全文
摘要:
https://stackoverflow.com/questions/22029834/possible-to-call-inline-functions-in-gdb-and-or-emit-them-using-gcc 阅读全文