摘要:
在CMake中,如果你有多个可执行文件目标,并且你想要它们在链接时串行构建,你可以使用CMake的add_dependencies命令来创建一个依赖链。这将确保在开始构建一个目标之前,它所依赖的目标已经构建完成。 下面是一个简化的步骤说明,展示了如何设置CMakeLists.txt来实现多个可执行文 阅读全文
摘要:
tuning https://www.yugabyte.com/blog/linux-performance-tuning-memory-disk-io/ https://blog.mi.hdm-stuttgart.de/index.php/2022/04/01/improve-your-stora 阅读全文
摘要:
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- 阅读全文