Intel NUC as a back end for development
dimamoroz.com
dimamoroz.com
It's a treasure of a site, such a rare realistic home-operator wallet-conscious view of things. Although a lot of the coverage now is more "regular" these days, there are reviews of all sorts of low & mid range products, & things like add-on drive bays that the at home systems cobbler would be interested in. Sometimes things like this Project TinyMiniMicro 1L mini-pc series come along & write up all the really smart really sharp things folks have been doing for a while time, really show/reveal the secret undercurrent that pulls so many.
I sometimes worry that Patrick is spilling the beans, that he'll turn too many people on to the great deals & they'll stop being so great. The good thing about these business mini-pc's is that they are used in countless businesses, which is why they are so radically much better value than the imo way way over priced barebones mini-pc's that I used to oggle. It's also nice to see the range expand- new Ryzen offerings are exciting (if expensive), and higher wattages (more oomph) are both new.
The only annoying part is that so many variations exist and stuff on ebay isn't always well marked.
I would guess that all three OEM's boxes are good and it's mostly about getting a box that is well spec'd for it's role.
Heck, for really simple homelab roles you can use a ~$50 thin client from Dell/Wyse or HP on eBay.
It has a good SSD, 64GiB RAM and Kubuntu.
I had to buy a heatsink for the SSD to avoid it overheating without any fans around.
> every time I try to use [Linux] on desktop … - I get a frustration since it has all the similar issues I was facing many years ago, which require some time to fix and I am way too lazy for that already
I don't understand this. He fixed the CPU scaling issue, and there don't seem to be any others.
[1] http://www.akasa.com.tw/update.php?tpl=product/product.list....
Lots of power in very small space is available now.
It really is wild how the VSCode language server architecture enables all this, btw. I'm not sure whether this was an intentional goal of the LSP when they started working on it, or if it was originally just to keep the language analysis in a separate process and this wound up being a nice benefit, but being able to run all of your editor's language features on another box and just use the editor as a dumb client for them is brilliant.
You can always mount your remote filesystem on your local machine for the few tasks that are not convenient to do in the editor or terminal.
It’s amazing how many problems just vanish with this setup. Backups are totally automated and a restore is a single click. No fussing with network tunnels for webhooks from Stripe. Downloading dependencies or uploading artefacts is super fast because I’m on a data center connection to the internet. When I’m accessing my dev environment it’s from a browser on my thin client so I never hit those weird CORS differences between localhost and a real domain.
https://www.lenovo.com/us/en/desktops-and-all-in-ones/thinkc...
I found it fairly good with decent performance.
I do think this should be the goal of all of us though. I’m slowly shifting more workloads off my Mac and to local lab boxes.
I’d actually like to build a product in this space but I’m still trying to crack the latency nut.
In my case my nuc and my “terminal” are connected via 1Gbps Ethernet. Vim in tmux was terrible; line by line scrolling was very jittery. Witching off font ligatures meant the GPU was able to handle rendering and now everything feels really smooth with multiple vim panes open.
Prior to moving back to terminal based editing I was very much in the same spot as the OP, using VSCode - I didn’t notice any form of latency with that setup.
I have an Intel NUC and I bought a Thunderbolt 3<->10gbps Ethernet adapter. Then I bought another adapter to plug into my MacBook Pro and a 10gbps desktop switch to connect them.
Though I suspect local 1Gbps would be more than fine here and that’s extremely cheap and commonplace.
The NUC8 i7 is probably a better machine, less cores but considerably more capable with its igpu. However as a headless server, the NUC10 has faster RAM and 2 more cores (which likely throttle to make the performance gap smaller).
Microtik has several small switches with 2, 4, or 8 SFP+ 10Gbps ports for slightly less than the Ubiquiti gear, but I’ve also been happy with Ubiquiti in general so I’d go that route.
You can use copper DAC cables directly for short runs (in a rack or on a desk) which are cheap on EBay or for a little more money get SFP+ twisted pair or fiber adapters (and fiber is a lot cheaper than you probably worry as well).
A switch like this ($143.15): https://www.amazon.com/gp/product/B07LFKGP1L/
two of these adapters ($129.98 total): https://www.amazon.com/gp/product/B01KFBFL16/
and then two of these adapters ($298.00 total): https://www.amazon.com/gp/product/B07K7SMF89/
Works out to $571.13 total. It might not be worth it to just connect two machines, but in my case it was worth it because I was building a 10-machine cluster.
I mostly use NUC and raspberry pi for my homelab (https://i.imgur.com/AHcuq6n.png) and it works great. very minimal power footprint.
for my development machine, i use a deskmini x300 with AMD processor. powerful stuff.
Have anyone had any luck finding NUC replacement fans?
I got it to the point where it's silent when watching a movie or something, and only noisy when under real load.
[0] https://www.anandtech.com/show/16191/akasa-turing-fanless-ca...
I used my nuc as a server 24/7 for an year before the fan started failing and now it works just as fine as before.
You want to set the cpu total power draw a bit lower, the fan onset temp lower (i know, sounds paradoxical) and the ramp rate in %fan/degree lower.
This means:
- cpu runs less hot at some performance hit. You'd have to be able to live with that. Maybe this works without reducing power draw (I'm neurotical about components getting too hot so I happily accept that)
- fan starts spinning sooner, but slowly, before things get too hot
- fan doesn't abruptly start making noise upon heat increase
I was about to ask about Ubuntu support, good to know those machines are compatible with Ubuntu.
It was the best thing I have done, but you have to be able to use your own lightweight tools; NUCs are too weak for for regular setups.
Also you need a passive case and streacom stopped making those.
That post says they went with NUC over other options - integrated SFF PCs from other vendors or build-your-own - because it "looked nice" and was available.
It cost him 1,016 USD to get an i7 gen-10 NUC, memory, and an SSD. Quite pricey IMHO.
So I'd say this doesn't make much of a case for NUCs (pun not intended) in particular; just for using SFF PCs.
I think I spent 1500 bucks on the system total, and for an equivalently priced AWS system would have been hundreds of dollars a month, so I feel like it's paying for itself.
Only downside is the local internet provider only offers 5Meg upload, so I'm not going to be serving any high traffic websites, but for everything else is great.
> Cannot replace CPU in case of a failure, since it is SoC (system on a chip)
Unlikely to happen, CPUs are very reliable in my experience.
However, motherboards do fail. Over the last 10 years, I have replaced failed desktop motherboards twice. I was lucky I was able to keep the old CPUs.
The SFF is fine, I’m currently using a PC I’ve built in Node 202 case: https://www.fractal-design.com/products/cases/node/node-202/... Too bad I’m unable to upgrade 1080Ti with 3080, due to the global GPU shortage.
I just remote into it and edit all files locally, and deal with the latency and screen painting.
You'd have to build one yourself from parts, or order one custom from a non EOM company.
Since most OEM small form factor pc's skimp on the PSU and vertical space heavily.
Added 8TB of storage for a Plex server too.
Combined with Tailscale[0] you can access anywhere in the world, too.
Maybe it is time to burn a weekend to trying out a setup like this.
So I bought a beefier NUC (Ghost Canyon) and run ProxMox on it. I setup a NFS server in an LXC container, and then a typical VM for development[1]. In all it took me a couple of weekends to really get things dialed in nicely.
ProxMox is great, I really love that I can provision and throw away instances quickly! It makes for less variance in trying to establish what made thing X work suddenly.
[1]: I need kernel modules and the guest to have access to USB for my dev
The problems I've had are: over time, the fan decouples from the processor and the machine runs super hot. Ubuntu always enables wifi power saving,w hich causes huge ssh latency problems. The SD card won't boot. The cheaper ones are slow, to get good performance you have to spend at least $500.
One interesting note: although they come with 19V power supply, they work fine on 12V.