My Life in WordsAll about information and technology
|
Vimdiff is unreadable on one of my system. This can be solved by adding the following to your ~/.vimrc:
highlight! link DiffText Todo Credit: https://stackoverflow.com/a/13370967/200234
0 Comments
EnvironmentUbuntu 16.04 462.libquantum Error /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libpthread.a(lowlevellock.o): In function `__lll_lock_wait_private': /builddir/build/eglibc-2.19/nptl/../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:78: multiple definition of `__lll_lock_wait_private' /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libc.a(libc-lowlevellock.o):(.text+0x0): first defined here /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libpthread.a(lowlevellock.o): In function `__lll_unlock_wake_private': /builddir/build/eglibc-2.19/nptl/../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:328: multiple definition of `__lll_unlock_wake_private' /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libc.a(libc-lowlevellock.o):(.text+0x30): first defined here collect2: error: ld returned 1 exit status specmake: *** [libquantum] Error 1 Solution: Remove -static from the 462 compilation options. 410.bwaves Error410.bwaves: copy 0 non-zero return code (exit code=11, signal=0) Solution: ulimit -s unlimited 416.gamess Error 416.gamess: copy 0 non-zero return code (exit code=11, signal=0) Solution: Remove -fstack-arrays from 416 complication options. 436.cactusADM: copy 0 non-zero return code (exit code=4, signal=0)Solution: a. ulimit -c unlimited; b. remove -avx2 compilation option. 435 Errorerror while loading shared libraries: libgfortran.so.3: cannot open > shared object file: No such file or directory Solution: export LD_LIBRARY_PATH=.../lib64 SarThe following is the output when run $sar -r 2 2 on my Linux PC. The %memused is more than 95%. It looks like the bottleneck of this system is memory. FreeThe free command is the most simple and easy to use command to check memory usage on linux. To get the memory utilization, it should be 6582304/20448492=32.19%. It is much less than 95%. The Real Memory UtilizationmLinux treats unused memory as a wasted resource and would use as much as RAM as it can to cache process/kernel information. kbbuffers is the amount of buffer space used by the kernel in kilobytes. kbcached is the amount of cached space used by the kernel in kilobytes. The buff/cache is equals kbbuffers + kbcached. To get the actual memory utilization from the output of sar, the formula would be (kbmemused - kbbuffers - kbcached)/ sum (kbmemused + kbmemfree). That is (19623112 - 598648 - 11330764 )/ (19623112 + 825380) = 37.62%. This is one is very similar with one get by the free command.
|
AuthorThis is a blog that is about my works on Benchmarking Performance, Compiling Optimization, Optimize Compile, Parallel Programming, Virtualization, Container, Docker, Moby, Linuxkit, Open Source and any others. Archives
August 2018
Categories |