在Windows中用习惯了Souce Insight,切换到使用Macbook后,看代码少了利器。Source Insight没有Mac OS版本。 但我们通过在MacBook中安装Crossover或Wine,然后在Crossover或Wine中安装Source Insight。在Macbook中,我们也可以像Windows一样,使用强大的Source Insight来阅读代码。 Crossover软件官网:https://www.codeweavers.com/ 在Mac OS中,推荐一款更为强大的代码阅读软件,scitools的Understand。软件详细介绍,请参考网站。https://scitools.com/
READ MORE »Posts in category 系统使用
CentOS 7启动过程调试
在OS启动过程中,有时会遇到系统卡住或机器报告MCE/CATRERR错误,导致系统无法正常启动,但又很难查看执行那个操作时,系统卡住。 这种情况下,我们可以打开系统调试和systemd调试。
READ MORE »GCC编译器升级./configure报错“configure: error: Unable to find a usable ISL.”解决办法
现象: GCC编译器升级时,./configure报错“configure: error: Unable to find a usable ISL. See config.log for details.” 配置好isl后,再报错“configure: error: Unable to find a usable CLooG. See config.log for details.”
READ MORE »Linux常用并行/多核压缩/解压缩工具
PXZ – Parallel XZ is a compression utility that takes advantage of running LZMA compression of different parts of an input file on multiple cores and processors simultaneously. Its primary goal is to utilize all resources to speed up compression time with minimal possible influence on compression ratio. https://jnovy.fedorapeople.org/pxz/ PLZIP – Lzip is a lossless […]
READ MORE »Perf报错“Too many events are opened”解决办法
在perf命令监控下系统性能时,报错“Too many events are opened.” linux:/mnt/test # perf stat -p 31224 -d Error: Too many events are opened. Try again after reducing the number of events. 解决办法: 修改进程最大打开文件数量 linux:/mnt/test # ulimit -n 65536
READ MORE »ARM64平台编译stream、netperf出错解决办法
stream编译出错信息: [root@localhost stream]# make gcc -O2 -DSTREAM_ARRAY_SIZE=1000000000 stream.c -o stream /tmp/ccCGEF5F.o: In function `checkSTREAMresults’: stream.c:(.text+0x144): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss’ stream.c:(.text+0x148): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss’ /tmp/ccCGEF5F.o: In function `main’: stream.c:(.text.startup+0x20): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss’ stream.c:(.text.startup+0x3c): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss’ stream.c:(.text.startup+0x3ec): relocation truncated to fit: […]
READ MORE »[转]Linux性能监控及调优资料
对Linux的性能监控及调优,非常全面的材料。 Linux Performance Profiling and Monitoring Linux Performance Tools Linux Performance Analysis and Tools Linux Profiling at Netflix
READ MORE »[转]Linux Performance Analysis New Tools and Old Secrets
非常全面地介绍Linux系统性能监控,包括CPU、内存、硬盘、网络。 官方网站: http://www.brendangregg.com/linuxperf.html 本地下载: Linux Performance Analysis New Tools and Old Secrets
READ MORE »RHEL 6系统启动时盘符漂移及解决
在RHEL 6中安装新的SCSI设备后,可能出现盘符漂移情况,如原来系统盘所在的盘符为/dev/sda,加入新设备,重启系统后,盘符变为最后一个,如/dev/ssda。
READ MORE »[转]Debugging Linux Kernel Problems
In this tutorial, we’ll look at the following topics: • How and why kernels fail. • Understanding log files: dmesg and the files in /var/log, notably /var/log/messages. • Userland tools for debugging a running system. • Building a kernel with debugging support: the options. • Using a serial console. • Preparing for dumps: dumpon, savecore. […]
READ MORE »