-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andy Fingerhut <[email protected]>
- Loading branch information
1 parent
bb17008
commit b588508
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#! /bin/bash | ||
|
||
# Copyright (C) 2025 Andy Fingerhut | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Basic system info | ||
uname -a | ||
nproc | ||
cat /proc/meminfo | ||
|
||
echo "------------------------------------------------------------" | ||
echo "Occurrences of 'killed process' in dmesg logs are a likely sign" | ||
echo "that a process was killed by the kernel due to the system running" | ||
echo "our of memory, leading to unpredictable build failures." | ||
echo "------------------------------------------------------------" | ||
sudo dmesg -T | egrep -i 'killed process' | ||
|
||
echo "------------------------------------------------------------" | ||
echo "Full output of command: dmesg -T" | ||
echo "------------------------------------------------------------" | ||
sudo dmesg -T | ||
|
||
for f in p4studio/logs/* | ||
do | ||
echo "------------------------------------------------------------" | ||
echo "Contents of log file: $f" | ||
echo "------------------------------------------------------------" | ||
cat $f | ||
done |