Hi all, What is UPS input load and how can that affect the power draw of devices plugged into it?
Context: I have an Eaton UPS. Into it I plugged TP Link smart plug to measure how much my homelab draws (1 truenas server, 1 rpi and a switch). These draw about ~29 W when under low to medium load. Almost every day (different time) for couple of hours, however, the plug measure about 6-7 Watts more (~36 W). I have checked both linux devices and they were doing basically nothing. Then I looked into TrueNAS monitoring and noticed that the start and end of each event is exactly the same time when UPS input load is increased from 0 % to ~6 %.
What is this UPS input load and how is it possible it affects measurements by a device that is plugged into it (the UPS) - NOT the other way around? Thank you
If the meter is plugged into the UPS, then the UPS has nothing to do with the power flowing into the meter. Power is “pulled” not “pushed” to devices in that a device supplying power can limit the amount of power provided, but can’t increase it beyond what the devices request.
Just like with plumbing. The water company can’t force your faucets to open and use more water. Now they could increase pressure and break pipes, similarly the UPS could provide the wrong voltage and short or burn out wires or devices causing them to draw more, but that is unlikely to be the issue here. As long as voltage is constant, amperage (the other component in wattage) is pulled, not pushed.
What you’re seeing in the input load, if it matches what is flowing out of the meter, is some device requesting more power and thus more power flowing into the UPS to be passed to those devices, not the UPS forcing something to use power which isn’t possible as explained above, or the UPS itself using power because the meter has no connection to what power is being used by the UPS, only things plugged into the meter.
So, there must be something else using the power. Likely the devices, even if they aren’t really doing anything you consider significant, are doing something. Probably maintenance, checking for updates, the monitoring proceses requesting information from the devices since the TrueNAS server is on that end, etc. You’d need to put a meter on each device to determine what is drawing the power specifically.
Also, does the power meter only display power used by devices plugged into it, or does it also display it’s own power usage? Could be that the plug itself is using WiFi or something to communicate with external services to log that data. But that would be quick bursts.
Also, without putting a meter on each device, this is probably cumulative. For example, if the NAS is requesing info for monitoring the network, that would spin up the processors on the RPi an cause the switch to draw more power as it transmits that information across the network. Again, this should only be small bursts, but it’s also possible the devices are not sleeping properly after whatever process wakes them so they continue to run their processors at higher amperage for some time. Tweaking power profiles can help with something like tuned on Linux or similar to make things sleep more agressively. With the drawback that they take some amount of time to spin back up when needed.
Sounds unrelated to the UPS if you’re measuring that load on the output. I wouldn’t worry about it, computer/server loads fluctuate constantly and that’s normal.
The UPS needs some power to keep its batteries full. Could be that it’s triggering off some threshold to do a charge cycle instead of just running a constant trickle. I’ve noticed that my laptop and phone charge that way, for example.
But the TP link that measure the power is plugged into the UPS not the other way around. The UPS is directly in the wall plug.
The UPS has no influence in that case on the power reading.
It’s weird to do this daily, but it’s possible that the UPS is doing a self test, which would drain the battery a little and the load is from charging it back up.
Same as above. The TP link that measure the power is plugged into the UPS not the other way around. The UPS is directly in the wall plug. So even if the UPS drawn 100 Watts it shouldn’t show on the TP Link.
Ahh sorry, I thought you meant you plugged it into the input side. If that’s the case then are you running anything that measures CPU usage? I run the TIG stack, it might be able to give you some hits. Also back to my original point which is already unlikely, if it’s a modified sinewave UPS, it can confuse some measuring devices while it’s on battery.
So what is the TrueNAS server doing at this time? Have you checked the logs?
I would image it might be some backup, snapshotting or optimization.
Truly nothing. I haven’t set snapshots yet, I have TrueCloud backup but thats at midnignt. I have checked htop and there is virtually zero activity (same as when the power draw is 29 W). I have only two apps on truenas and they also didn’t do any indexing or anything). As mentioned above the only difference that I spotted so far is the ups input load and the times of event start/end match perfectly in all cases (but then again UPS is powering the tp plug and on, not the other way around).
What’s in the UPS log?
Good question, how do I access the UPS logs? In TrueNAS (and in home assistant) I just see the measured values.
It varies greatly by model. Read your manual.
UPS devices normally uses wall (input) power, and switches to battery when input voltage is out of the target thresholds. So, input.load should represent the percentage of current wall power (in VA) relative to UPS’s max rated input power (VA). If your devices uses more power, input power from wall should increase as well.
If it’s peaking in certain times, it could be due some scheduled job temporarily increase CPU frequency, or automated tasks like file system snapshot might power-up/spin drives longer than regular usage.
Ahaa, so what you are saying that me seeing the input load on UPS is not the cause of the measured power consumption but just a “symptom”. That something (be it TrueNAS/rpi/switch) really draws more. How can I do a thorough analysis of what the devices do? Normally I check logs and htop and see they are just chilling. I check cpu, i/o and network and I thought that it should be pretty good indicator of if something is happening. Especially when its 6 Watts more thats like whole another rpi 😀
I don’t think its rpi or network switch, unless you’ve overclocked rpi with liquid nitrogen 😅. So, I assume its TrueNas device.
If it were a significant power difference, say 20-30 watts, you could easily find the process using htop/iotop. However, 6 watt difference is a relatively small value for a device with ~25 watts of idle power . It might be a process using just 1% system resources. That’s why I would look for systemd timers, cronjobs etc. to find scheduled tasks on specific times. Another possibility is automated S.M.A.R.T. self-tests. Those tests don’t show up in htop or iotop.