Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liyapeng
/
log_collect
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fe08b55d
authored
Nov 13, 2023
by
liyapeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nvidia-bug-report.sh执行模式改为增加--safe-mode,避免卡死,执行失败
1 parent
c2a5d2e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
log_collect.sh
log_collect.sh
View file @
fe08b55
...
@@ -66,7 +66,7 @@ GPULogCollect() {
...
@@ -66,7 +66,7 @@ GPULogCollect() {
if
[
-f /usr/bin/nvidia-bug-report.sh
]
&&
[
$gpuInstanceState
-gt 0
]
;
then
if
[
-f /usr/bin/nvidia-bug-report.sh
]
&&
[
$gpuInstanceState
-gt 0
]
;
then
mkdir -p
${
LOG_FILE_PATH
}
/GPULogCollect
mkdir -p
${
LOG_FILE_PATH
}
/GPULogCollect
echo
"Start to collect gpu log for instance
$(
hostname
)
by nvidia-bug-report.sh"
echo
"Start to collect gpu log for instance
$(
hostname
)
by nvidia-bug-report.sh"
nvidia-bug-report.sh --output-file
${
LOG_FILE_PATH
}
/GPULogCollect/nvidia-bug-report.log.gz.gz
nvidia-bug-report.sh --
safe-mode --
output-file
${
LOG_FILE_PATH
}
/GPULogCollect/nvidia-bug-report.log.gz.gz
timeout 30 nvidia-smi >
${
LOG_FILE_PATH
}
/GPULogCollect/nvidia-smi.log
timeout 30 nvidia-smi >
${
LOG_FILE_PATH
}
/GPULogCollect/nvidia-smi.log
nvidia-smi topo -m >>
${
LOG_FILE_PATH
}
/GPULogCollect/nvidia-smi.log
nvidia-smi topo -m >>
${
LOG_FILE_PATH
}
/GPULogCollect/nvidia-smi.log
lspci -d 10de: | egrep
"VGA|3D"
>
${
LOG_FILE_PATH
}
/GPULogCollect/lspci-nvidia.log
lspci -d 10de: | egrep
"VGA|3D"
>
${
LOG_FILE_PATH
}
/GPULogCollect/lspci-nvidia.log
...
@@ -110,4 +110,4 @@ main() {
...
@@ -110,4 +110,4 @@ main() {
rm -r
${
LOG_FILE_PATH
}
rm -r
${
LOG_FILE_PATH
}
}
}
main
main
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment