-
Notifications
You must be signed in to change notification settings - Fork 2
Linux
Wenliang ZHANG edited this page Dec 16, 2020
·
9 revisions
glibc_rhel_6_excessive_virtual_memory
$ sudo pmap -x <pid>
# rpm -i /tmp/MegaCli-8.07.06-1.noarch.rpm # /opt/MegaRAID/MegaCli/MegaCli64 -LdPdInfo -aALL # smartctl -a -d megaraid,29 /dev/sda
Unbuffer and tee can show log on screen and save it into file. But the file contains control chacacters. To overcome it, use a script to remove the control chacaters. Another way is to view is with `less’. The content of `nocolor’ is “sed -e ‘s/\x1B\[[0-9A-Za-z]\{1,\}\x1B\[K//g’ -e ‘s/\x1B\[K//g’ build.log”.
$ unbuffer make -j 2>&1 | tee build.log $ nocolor build.log
Created by Wenliang Zhang.