Revert "Collect tool times out due to long running lsof"

This reverts commit bdd8c02d84.

Reason for revert:
<
The following  command:

"grep awk '($3 !~ /^[0-9]+$/ && /\/mnt\/huge/) || NR==1 {print $0;}'"

after the command "lsof -lwX"

doesn't adds value  for debugging and testing purposes.
>

Story: 2008452
Task: 41483

Change-Id: I2f81ff6ca4daa6956ad6d0dd210262df2f9e00e8
Signed-off-by: Pablo Bovina <pablo.bovina@windriver.com>
This commit is contained in:
Pablo Bovina 2020-12-18 17:55:14 +00:00 committed by pablo bovina
parent bdd8c02d84
commit 312c87a86f
1 changed files with 2 additions and 2 deletions

View File

@ -257,8 +257,8 @@ function collect_extra()
ps -e -o ppid,pid,nlwp,rss:10,vsz:10,cmd --sort=-rss >> ${LOGFILE} 2>>${COLLECT_ERROR_LOG}
# mounted hugepages
delimiter ${LOGFILE} "lsof -lwX | awk '($3 !~ /^[0-9]+$/ && /\/mnt\/huge/) || NR==1 {print $0;}'"
lsof -lwX | awk '($3 !~ /^[0-9]+$/ && /\/mnt\/huge/) || NR==1 {print $0;}' >> ${LOGFILE} 2>>${COLLECT_ERROR_LOG}
delimiter ${LOGFILE} "lsof | grep /mnt/huge"
lsof | awk '($3 !~ /^[0-9]+$/ && /\/mnt\/huge/) || NR==1 {print $0;}' >> ${LOGFILE} 2>>${COLLECT_ERROR_LOG}
# hugepages numa mapping
delimiter ${LOGFILE} "grep huge /proc/*/numa_maps"