r/admincraft • • 24d ago

Help/Question Viability of using a M1 macbook air for self hosting a server

Basically the title, I have an old M1 macbook air that I recently started using again as a secondary home server of sorts, started using it for a very rough file storage and remote access server at home and was wondering how viable it would be to self-host a minecraft server on it.

I've used aternos before and it has been fine but there are definitely cases where the server was laggy or struggled when I was playing, and given that I have the M1 lying around(I use a separate M5 air) I was wondering how much more effective it would be.

EDIT: It is an M1 macbook air with 8GB of ram and 500GB of internal storage, recently wiped so storage is fully empty.

3 Upvotes

10 comments sorted by

5

u/This-Marzipan-9239 24d ago

If you can tell us how much ram then responses are going to be more accurate and helpful. Chunk preloading helps tremendously with 2+ people, it has its limitations like storage. A 50k by 50k only in the overworld can take up to 70 gbs.

1

u/Material_Zombie_5653 23d ago

Yes sorry, it is an old 8gb RAM M1 but empty 500gb SSD storage, I assume it should be enough for preloading if 50k x 50k is about 70gb right?

1

u/kai-zaphosting 23d ago

I'd say the M1 is a solid pick for this. Minecraft cares most about single-thread speed, and the M1 is strong there, plus the whole machine is yours instead of being shared with other servers like on a free host. Just make sure you install an arm64 build of Java (Temurin or similar) so it isn't running through Rosetta.

The catch is that the Air is fanless, so under sustained load it will throttle. That's fine for a few friends, rougher with a heavy modpack or lots of loaded chunks.

Also, macOS will sleep the machine if you let it. Running caffeinate -s in Terminal keeps it awake on power while the server runs (or set it in the Energy/Battery settings).

Closing the lid still puts it to sleep with just caffeinate, unless it's in clamshell mode, which needs the Air plugged into power and an external display. Workarounds like pmset disablesleep 1 or wrapper apps exist, but reports are mixed on whether they still work on Apple Silicon since Ventura. So if you want to keep it shut on a shelf, I'd test that for a day before counting on it.

1

u/Material_Zombie_5653 23d ago

Ive gone through arm64 stops for Java and all the other constant features since I had used it briefly as a headless server(if it could be called that). Would propping it upside down on a vertical case so the main area is aired fine or would it be better to keep it lid open.

Like what This-Marzipan-9239 said I plan to at least preload a large portion of spawn so the server doesn't have to try and load multiple different people at once, but Im wondering if theres any other things I could do to try and optimise performance.

1

u/kai-zaphosting 19d ago

I'd go lid open, on a stand or propped so air can reach the underside too. The Air has no fan and relies on its aluminum chassis to shed heat, so giving it open space is the sensible default, even if I can't tell you how many degrees it saves. Closed is back to the sleep issue anyway, so open is the easier route.

For performance, the Paper suggestion someone made is the biggest win. After that, set simulation-distance to around 6 and view-distance to 8 in server.properties, since fewer loaded chunks means less tick work.

Also pregenerate the world with a plugin like Chunky while nobody's online. It'll pin the CPU for a while, and a fanless Air will throttle if players are on at the same time.

1

u/DeerOnARoof 22d ago edited 22d ago

How many people would join? 4 GB is probably fine for 4-5 people on vanilla with a world pre-generation plugin. I would recommend using paper.mc

Just make sure you use the AlwaysPretouch option in your launch script:

java -Xms4G -Xmx4G -XX:+AlwaysPreTouch -jar paper.jar

Replace the 4 with however much memory you decide to give Minecraft

1

u/Material_Zombie_5653 22d ago

I'd say 5-6 people, since it wouldn't really be used for anything other than the server when it's online would 6 gigs be fine and be enough for MacOS? I know it takes a decent amount of ram on its own

3

u/404invalid-user 24d ago

the M1 is more than capable ram will be the limiting factor if you have 16gb you will be fine

2

u/Xcissors280 23d ago

It will work fine, it probably isn’t worth running Linux over an older macOS

Ram is just like anything else

1

u/wa019c 23d ago

I am jealous, that would be a pretty good server