Live data from Hacker News

Ask HN: Running production server on M1 mini?

news.ycombinator.com

31–40 of 65 posts

Re: Ask HN: Running production server on M1 mini?

#31
post #3

don’t ask me how _You_ should be asking you how - there are lots of reasons why this could be happening and knowing which one is important if you're changing stuff. Based on a "highly parallelizable" application performing better on 8 cores than 32, I'd guess you're running out of something else: memory or disk bandwidth.

It does not consume much memory but do lots of allocations/deallocations. No disc operations whatsoever.

It sounds like you might be running into some sort of contention.

Re: Ask HN: Running production server on M1 mini?

#32
post #24
post #3

don’t ask me how _You_ should be asking you how - there are lots of reasons why this could be happening and knowing which one is important if you're changing stuff. Based on a "highly parallelizable" application performing better on 8 cores than 32, I'd guess you're running out of something else: memory or disk bandwidth.

Probably the hardest thing to clean up is a codebase where very complicated "optimizations" were built because someone didn't understand some very basic bottlenecks. I recently inherited an app that makes heavy use of Redis caching because someone didn't first try to optimizing SQL. The complexity that Redis caching adds is insane to maintain compared to spending a few minutes optimizing SQL. The original poster real…

The old... anything but reviewing the execution plan approach... throw more vCPU's at it! Thank god for query store.

Re: Ask HN: Running production server on M1 mini?

#33

No currently offered M1 Mini has redundant fail-over power or storage. Also, without knowing how your cloud provider has cooling setup it is unclear how well it will operate under heavy load for extended periods of time (blade servers are designed for that specific workload and have cooling solutions to match). My point is: If your workload is time critical, and you cannot afford downtime/outages then it may not be f…

> No currently offered M1 Mini has redundant fail-over power or storage. It's kind of funny, but an M1 MacBook does. In fact it comes with a solid >12 hour UPS built-in.

I assume you are just talking about the battery, which I suppose is sorta a built-in UPS though I've never heard it referred to as such!

Re: Ask HN: Running production server on M1 mini?

#34
Have you considered looking at Amazon for their ARM offering (Graviton)? I'd be hesistant to use M1 minis for a production workflow as they are not really production grade (lacking ECC memory, not sure how long they are rated to run at high CPU, lack of user replaceable disks, no RAID, etc...).

Re: Ask HN: Running production server on M1 mini?

#35

No currently offered M1 Mini has redundant fail-over power or storage. Also, without knowing how your cloud provider has cooling setup it is unclear how well it will operate under heavy load for extended periods of time (blade servers are designed for that specific workload and have cooling solutions to match). My point is: If your workload is time critical, and you cannot afford downtime/outages then it may not be f…

> No currently offered M1 Mini has redundant fail-over power or storage. It's kind of funny, but an M1 MacBook does. In fact it comes with a solid >12 hour UPS built-in.

So does a data center. Neither one has a redundant PSU.

Re: Ask HN: Running production server on M1 mini?

#39
post #30

Have you tried using taskset or similar to force the production application onto fewer cores? Perhaps something about thread/ipc/locking overhead?

This is a good thing to check. However, do be aware that a lot of apps check the number of physical processors in the system rather than the CPU affinity mask for the process, even though the latter is almost always what they ought to be using.

Re: Ask HN: Running production server on M1 mini?

#40
Terrible idea. I supported a dozen Xserves back in the day. They were crap because they weren't designed for production use. They used nonswappable, commodity retail IDE drives not meant for 100% duty cycle operation. Fixed power supplies. Real enterprise servers were cheaper.

Mac minis don't have redundant power or ECC. You might as well run a bunch of RPis or PICs. Get yourself some real enterprise servers or rent some via a VPS.

Disclaimer: I use a Mac mini as my living room HTPC. I wouldn't run anything real on it. That's what I have a 96 thread EPYC virtualized box for.

Post reply on HN