forked from motioneye-project/motioneyeos
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added gpu_stat script to monitor GPU stats
- Loading branch information
Showing
3 changed files
with
81 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,27 @@ | ||
#!/bin/sh | ||
|
||
while true | ||
do | ||
TT=`vcgencmd get_throttled` | ||
MM=`vcgencmd get_mem malloc` | ||
MR=`vcgencmd get_mem reloc` | ||
echo $TT, $MM, $MR | ||
sleep 1 | ||
done | ||
|
||
# vcgencmd get_mem <type> | ||
# Where type is: | ||
# arm: total memory assigned to arm | ||
# gpu: total memory assigned to gpu | ||
# malloc_total: total memory assigned to gpu malloc heap | ||
# malloc: free gpu memory in malloc heap | ||
# reloc_total: total memory assigned to gpu relocatable heap | ||
# reloc: free gpu memory in relocatable heap | ||
|
||
# vcgencmd get_throttled | ||
# 0: under-voltage | ||
# 1: arm frequency capped | ||
# 2: currently throttled | ||
# 16: under-voltage has occurred | ||
# 17: arm frequency capped has occurred | ||
# 18: throttling has occurred |
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,27 @@ | ||
#!/bin/sh | ||
|
||
while true | ||
do | ||
TT=`vcgencmd get_throttled` | ||
MM=`vcgencmd get_mem malloc` | ||
MR=`vcgencmd get_mem reloc` | ||
echo $TT, $MM, $MR | ||
sleep 1 | ||
done | ||
|
||
# vcgencmd get_mem <type> | ||
# Where type is: | ||
# arm: total memory assigned to arm | ||
# gpu: total memory assigned to gpu | ||
# malloc_total: total memory assigned to gpu malloc heap | ||
# malloc: free gpu memory in malloc heap | ||
# reloc_total: total memory assigned to gpu relocatable heap | ||
# reloc: free gpu memory in relocatable heap | ||
|
||
# vcgencmd get_throttled | ||
# 0: under-voltage | ||
# 1: arm frequency capped | ||
# 2: currently throttled | ||
# 16: under-voltage has occurred | ||
# 17: arm frequency capped has occurred | ||
# 18: throttling has occurred |
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,27 @@ | ||
#!/bin/sh | ||
|
||
while true | ||
do | ||
TT=`vcgencmd get_throttled` | ||
MM=`vcgencmd get_mem malloc` | ||
MR=`vcgencmd get_mem reloc` | ||
echo $TT, $MM, $MR | ||
sleep 1 | ||
done | ||
|
||
# vcgencmd get_mem <type> | ||
# Where type is: | ||
# arm: total memory assigned to arm | ||
# gpu: total memory assigned to gpu | ||
# malloc_total: total memory assigned to gpu malloc heap | ||
# malloc: free gpu memory in malloc heap | ||
# reloc_total: total memory assigned to gpu relocatable heap | ||
# reloc: free gpu memory in relocatable heap | ||
|
||
# vcgencmd get_throttled | ||
# 0: under-voltage | ||
# 1: arm frequency capped | ||
# 2: currently throttled | ||
# 16: under-voltage has occurred | ||
# 17: arm frequency capped has occurred | ||
# 18: throttling has occurred |