Irdial to Selfhosted@lemmy.worldEnglish • 7 months agoretiring the pigeon homelabwww.josephbellahcen.commessage-square9fedilinkarrow-up136arrow-down11
arrow-up135arrow-down1external-linkretiring the pigeon homelabwww.josephbellahcen.comIrdial to Selfhosted@lemmy.worldEnglish • 7 months agomessage-square9fedilink
minus-squareIrdialOPlinkfedilinkEnglish1•7 months agoLove the evolution! How are you measuring the power consumption of your devices? I’d be interested in profiling my build as well.
minus-squaremodehlinkfedilinkEnglish2•7 months agoI use a device similar to this. Pretty useful and handy.
minus-squareStritlinkfedilinkEnglish2•7 months agoProbably the easiest way. It’s plugged into a smart plug with energi monitoring.
minus-square@N0x0n@lemmy.mllinkfedilinkEnglish1•edit-27 months agoThem probably uses a special plugin device in the outlet. I have this bash script you can use and have a general overview but I’m not totally sure if I fully understand it and if it’s the whole system’s wattage or only the CPU 🤷♂️ #! bash time=5 sum_1=$(cat /sys/class/powercap/*/energy_uj | awk 'BEGIN { sum = 0; } { sum += $1; } END { print sum; }' "$@"); echo "before" $sum_1 sleep $time; sum_2=$(cat /sys/class/powercap/*/energy_uj | awk 'BEGIN { sum = 0; } { sum += $1; } END { print sum; }' "$@"); echo "after" $sum_2 sum_1f=$(printf "%.0f" $sum_1) sum_2f=$(printf "%.0f" $sum_2) final_sum=$(echo "(($sum_2f - $sum_1f) / 1000000) / $time" | bc -l) #echo $final_sum | bc -l | xargs printf "%.2f\n" formated=$(echo $final_sum | bc -l | xargs printf "%.2f\n") echo $formated "w"
Love the evolution! How are you measuring the power consumption of your devices? I’d be interested in profiling my build as well.
I use a device similar to this. Pretty useful and handy.
Probably the easiest way. It’s plugged into a smart plug with energi monitoring.
Them probably uses a special plugin device in the outlet.
I have this bash script you can use and have a general overview but I’m not totally sure if I fully understand it and if it’s the whole system’s wattage or only the CPU 🤷♂️