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.
Ask HN: Running production server on M1 mini?
31–40 of 65 posts
Re: Ask HN: Running production server on M1 mini?
#32don’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…
Re: Ask HN: Running production server on M1 mini?
#33No 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.
Re: Ask HN: Running production server on M1 mini?
#34Re: Ask HN: Running production server on M1 mini?
#35No 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.
Re: Ask HN: Running production server on M1 mini?
#36Re: Ask HN: Running production server on M1 mini?
#37Re: Ask HN: Running production server on M1 mini?
#38can you describe the program? just broad strokes about language, framework, what kind of traffic it's receiving?
Re: Ask HN: Running production server on M1 mini?
#39Have you tried using taskset or similar to force the production application onto fewer cores? Perhaps something about thread/ipc/locking overhead?
Re: Ask HN: Running production server on M1 mini?
#40Mac 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.