DigitalDilemma

  • 2 Posts
  • 412 Comments
Joined 2 years ago
cake
Cake day: July 22nd, 2023

help-circle
  • I don’t think I can agree with that, and I’m a pretty agreeable chap.

    In the days when people actually cared about the html layout and readability, FP spammed everything hugely, and inserted a lot of terrible cruft. Inventing zillions of new <style> tags for everything, even when the user just wanted to italicise a word. Use a <i> tag? No! We’ll invent a whole new style class and embed it in the headers.

    A few years ago I rather stupidly agreed to take over hosting of a website for someone that was dying. It had been written with FP and it took me months to de-cruft it using a lot of regexp and scrifting. (Some 8,000 images and around 2000 .html files).







  • I’m guessing you’ve already turned it off and on again. If not, seriously, do that. It works more time than it doesn’t for random weirdness.

    Run ‘htop’ and sort by CPU (it’s a friendlier and better version of ‘top’. That’ll show you what processes are using the most CPU

    Whilst you’re in there, check the free memory. If that’s low, or swap usage is high, then use htop to sort by memory usage to find what’s using the most.

    If you see processes you don’t recognise, hit google and find out why. It’s very unlikely they’re malicious, but it’s far less common on linux than Windows to have random processes doing unknown stuff. If it’s using a lot of cpu or memory, there’ll be a reason. It might be a dumb reason, but you will be able to find it out.

    And then when you know what the guilty process is, if it is that, and it’s not critical - you can stop it with systemctl and narrow down what’s afoot.







  • Other have answered the runtime and load question very well already.

    I have three other points.

    1. Batteries degrade over time. Over-speccing your UPS means more likelyhood that things will hold up in three years time as the capacity given is for new ones. Plus, not running your UPS at 100% capacity reduces its stress. Again, more reliable.

    2. You can get a much better quality UPS by buying a second hand one without batteries off ebay and replacing them yourself, typically for a fraction of the cost of buying new. Plus you know you have new batteries. UPS is something where quality genuinely matters. I’ve had to carry a cheap and badly made UPS out of an office whilst it was on fire, so now I spec more carefully. (And ensure they’re metal bodied!)

    3. Consider what you NEED to power. What sort of power cuts are you expecting? Does it matter if something goes down?

    I UPS my servers and my main desktop, but not my routers, nor my wifi or IOT things. My internet provider also goes out when there’s a cut (I’m on a mesh system so rely on neighbours, who will typically also be down) and I can’t do much without power anyway, but it keeps the disks spinning. We typically get very short automated outages here of less than 10s (yesterday was a bad day, we had 9 within 2 hours)