Hacker News new | ask | show | jobs
by cozzyd 2104 days ago
I imagine memory will be quite constrained here for a lot of M1 systems.
4 comments

The M1x benchmarks that recently leaked show that it supports 32 Gigs of RAM, has twice the number of big CPU cores, and twice the GPU cores.

https://www.tomsguide.com/news/macbook-pro-m1x-benchmarks-ju...

It should be adequate for a non-entry level laptop.

One of the fairly accurate Apple leakers, Jon Prosser, has said that one of his proven sources has informed him that the leak is legit.

How does the current M1's graphics performance compare to, say, a mid-range NVIDIA laptop GPU?
It is 30% to 50% slower than a 1050ti according to https://ikarios.wordpress.com/2021/01/09/comparing-a-macbook...

That dovetails with my own experiences. I installed tomb raider on my m1 air, and while it was playable i was not impressed with its graphical abilities. The m1 is great for integrated graphics, but not on par with dedicated graphics. CPU-wise it is the fastest computer I have though, noticeably faster than the i5 9600K in my desktop.

Thanks - so it sounds like a 100% speedup would put it into "decent" territory
The Apples to Apples comparison (if you will) is to other integrated GPUs.

>The first Apple-built GPU for a Mac is significantly faster than any integrated GPU we’ve been able to get our hands on, and will no doubt set a new high bar for GPU performance in a laptop. Based on Apple’s own die shots, it’s clear that they spent a sizable portion of the M1’s die on the GPU and associated hardware, and the payoff is a GPU that can rival even low-end discrete GPUs.

https://www.anandtech.com/show/16252/mac-mini-apple-m1-teste...

A bit slower than GTX 1050 mobile
> I imagine memory will be quite constrained here for a lot of M1 systems.

No worries, the storage is fast enough to stand-in for RAM via swap! You always wanted your RAM to be a wear item, right?

Definitely, especially when it is soldered to the motherboard or into the chip itself. /s
Computers increase productivity, so E-Waste is no big deal. /s
zswap helps a lot. One can get ~30% compression rates with a not-too-big performance impact.
Indeed, it is. 16GB is too constrained even for native Linux desktop environment.
What the hell, enough with this! My main dev machine until a few months ago was a Dell laptop with 8 GB of RAM on Ubuntu. I ran RubyMine on it all day, some Sublime, Spotify, Slack, MariaDB, Thunderbird, LibreOffice, and I had no problems whatsoever. The only reason it ever ran out of RAM was a memory leak in Firefox.
Things really go haywire when you are developing C++ with clangd (the de-facto code analyzer for Visual Studio Code, CLion, etc...). It sometimes takes over 8 gigs of ram for just the editor. Also it takes a ridiculous amount of memory to just compile your code, especially if you're using Eigen.
Indeed, as mentioned before, I used to "surf the web" in the 90s with 8MB of RAM. :-)

8GB is plenty for normal work, my current 16GB is plenty for development work including a 4GB Windows 10 VM running on top of Linux.

That's good for you and I'm glad you're happy but for some of us, considering the work with are doing, sometimes even 32GB is not really enough. Different people, different needs.
That's fine, but people like these are mostly outliers in the dev community, they exist on Linux, Windows and even macOS and they definitely KNOW perfectly well what their requirements are and why.

The post I was replying to said something very different and much weirder.

What do you need 32GB for? Video editing? ML training on CPU? I have to imagine this is a minority.
If someone needs 32GB then they need 32GB.

The M1 is Apple’s low-end chip, currently available only on their cheapest computers. It’s like complaining that a Corolla can’t keep up with a Ferrari on a race track. The most charitable interpretation is that the person doesn’t understand the market position of the two items.

I’m just asking what would be a use case where you would actually need this
Apple brands one of these machines as a "Pro" system and previously offered 32Gb in that model's option range.

The person isn't the one that's failing to understand the market position of the two items, Apple is the one that failed to brand it appropriately. It should have been a Macbook Air & Macbook, not a Macbook Pro.

Although realistically at this point "Pro" has lost nearly all meaning in Apple's lineup. It's like an R badge on a car. Used to mean something specific, now just means a generically higher premium option.

>> What do you need 32GB for?

Massive projects. Or a couple VM's.

The first laptop I saw running a VM was a Dell Precision M50 (?), it was 2" thick and almost 10lbs. It had something ridiculous (at the the time) like 1 or 1.5GB of RAM.

A sales guy was demoing a product to us, and it spun up a Windows 2000 VM for IIS and another for SQL server, it probably took 10 minutes to get started but he could then demo the app through the browser. Sounds silly but it worked.

"But can't you just run it on a server somewhere"

Yes. That'd be cheaper and faster. But at this high end of the market, it might make more sense for some people.

I work on a medium-to-large sized project that has a Go backend and a React/TypeScript frontend. Having our full development environment running (a handful of Go processes, Webpack, PostgreSQL, Redis, an indexing server, and probably other stuff I'm forgetting) and trying to edit code in both simultaneously (so having LSP servers running for both Go and TypeScript) is usually enough to cause my 16 GB laptop to swap heavily. It's not a pleasant experience: think multi-second UI lockups, music skipping, that kind of thing.

So, realistically, at this point I need a 32 GB machine to effectively do my job. Minority? Sure. But I think there are enough people in my boat that it's a legitimate market to have an option for.

Not the OP, but I fill 32GB pretty decently when I run my work’s customer facing web stack, database server, ancillary services, and a couple search engine instances. Prior to moving to locally hosted containers my main memory gripe was Electron. I much prefer having all of my development localized though. It’s a lot closer to the good parts of when I wrote “shrink wrapped” desktop software.
Run and compile very big C++/.net applications and big scenes in Unreal Engine and Houdini.

edit: I love how I got downvoted because my work can't fit into a toy Mac M1

Running a Filecoin full node. Mind you, not mining, just verifying.

https://docs.filecoin.io/get-started/lotus/installation/#min...

Somehow if you have that kind of memory it tends to fill up.
Too many electron apps? :P
Boy isn't that the truth. I actively avoid them but sometimes you just can't like with signal-desktop. I actually have to keep it running because I don't want to reach for my phone every 10 minutes. Something as simple as that interface doesn't need electron but oh well. Maybe a lite version with just text and contacts would be acceptable. I don't need stickers, gifs and emojis.
Is it? Up until now most devs still go with 16 or even 8 GB laptops. 32GB laptops are far between (Macs or not), and much fewer people use desktops...

And we used to run Vmware with Windows (on Linux) or Linux (on Windows) in 2005 just fine, on laptops with a couple GB at best...

Dozens of devs I know in a company I work with have 8GB Macs (and 2-3 years old at that), and run Vagrant and Docker with no issue. And those are mostly Airs with shared GPU too...

I think people with 32GB laptops hugely overestimate how many other devs also are on 32GB...

I have a 2019 MBP with 32GB of RAM. I bought it thinking that I would be running a Windows VM under Parallels, on which I would then let my company install the execrable Microsoft "mobile iron" access control. (You know, the one where they can wipe the machine remotely.) But then they changed so that even machines with this enabled cannot access the company resources on Azure. It must be one of their own machines. (So what's the freaking point?) Anyway, if it would have worked out, that's definitely a use case for more than 16.
> no issue.

Could this be because they don't understand how much faster it can be -- the slowness is an accepted cost of doing work?

I've recently run virtualbox/vagrant/docker on an air from ~3 years ago, and it's painfully slow compared to my 3-yo system with 32GB RAM. It works perfectly fine, but it's slow.

> I think people with 32GB laptops

That may be true. It may also be true that people with 8GB laptops vastly underestimate the benefit of having more memory available for development workloads.

Linux desktop environment runs fine with 4GB.
I think the people who claim that 16 GB isn't enough are insane, but it should be said: at 4 GB it does become a bit problematic to both keep browsers with a bunch of tabs open and do other things smoothly. If we keep modern website hogs out of the picture, I completely agree with you.

I tally about 500-1000 MB doing my job – if I can close the browsers that I do admittedly need to read documentation.

2GB here, Chromium under OpenBSD with cwm(1).

my ~/.config/chromium-flags.conf file:

        --ignore-gpu-blocklist
        --enable-gpu-rasterization
        #--enable-zero-copy
        --disable-sync-preferences
        --disable-reading-from-canvas
        --disable-smooth-scrolling
        --wm-window-animations-disabled
        --enable-low-end-device-mode
> I think the people who claim that 16 GB isn't enough are insane

The problem is containers. Some development workflows appear to require running a container for every piece of software needed, and that adds up (and feels incredibly wasteful).

None of my development workflow requires containers locally, so I get by just fine with 16gb.

I wonder when the pendulum will swing back and people will stop this insanity. I can already picture the buzzwords people will invent to describe "apps running on the OS itself".
On the other hand it's no insanity to run millions of lines of code in a computer, connected to the internet and hopefully sharing all the projects you need to work with and dependencies you need to make them work, with full access to your filesystem, usually requiring administrator rights to be installed or even used.

This would all be needless if there was an OS that allowed you to switch to another "env" wiping the RAM in the process (like, storing a snapshot of it for when you switch back), with guaranteed isolation at the filesystem level (perhaps able to still read-only link into common libs), able to install things without touching other "envs". If you're working in any webdev related environment, that is itself the definition of insanity.

It's like buying a hammer from the carpenter at the end of the road and giving access to all your house to him in the process, including your wife. Everything becomes a nail.

"A bare-OS application" sounds almost as cool as "bare-metal".
That would require people to clean up. Sometimes I squint at the installation requirements and then head over to hub.docker.com. I think it will get worse (i.e. more layers on top) before it gets better.
Yeah, containers or VM's up the count indeed, but still. 2 Parallels (test version for m1) VMs running server ubuntu, 1 with 2 ssh connections, for X and tunnelling, running emacs into my desktop, running a web server with repl and environment, other running Postgresql. Safari with 8 tabs open, 4 terminal windows, Xquartz, tells me the biggest memory footprint is the vm with emacs/server/repl, at 3.9GB followed by the other VM at 2.8GB, but the overall used mem says 6GB used(?).

From the tabs Gmail was pointing to +1GB - a browser email client consuming +1/3 of the memory a VM running an OS plus a database.

I sometimes have another VM, another 2 ssh conns, more tabs open including youtube and never noticed any slow/sluggish behaviour.

I also feel like running VMs is wasteful, but it seems we are not able to create OSes with proper native tools for isolation.

Why would containers do anything to memory requirements? I guess you can't share libraries, but otherwise I don't see why memory use should be any different running the same process in a container or not.
> The problem is containers.

Even this makes little sense unless your containers are really poorly sized. I used to run a mini Kubernetes cluster on my desktop with 6 nodes. Some of them running big Java projects, Postgres, Elastisearch, and Ruby. And I still had enough memory to run Rubymine or IntelliJ along with Slack and whatever other local stuff I needed.

tab discard extensions go a long way toward keeping browsers under control, just pin the tabs that you absolutely can't wait 3 seconds for them to reload or because you need notifications from them.
Linux desktop environment runs fine with 2GB
Can confirm, my VMs default to 4GB of memory and run just fine.
Yeah but throw in firefox or chrome and some electron apps and your processor will be crying and your memory starting to overflow.
Good luck compiling large sources on 4gb
Since when compiling large sources is a desktop environment?

There are projects that you cannot link if you have under 32 GB; but that is not enough to say that desktop environment you use while compiling is unusable under 32 GB.

2GB of RAM user here, done that with clang as it uses far less memory than GCC.
I mean really how many people are recompiling their entire code base every single day? Is their make/build environment so bad that they can't trust incremental compiles? I'm getting along just fine on my 8GB laptop. I know some people work with big datasets and video and such but holy cow. Most of us are probably just writing code for a browser/backend/library/test and not pushing around terabytes of data.
Maybe these people never heard of ccache.
Running Fedora/GNOME on an i5/8gb laptop, never ever felt memory constrained.
My 5-year-old laptop is an i5/8GB with Fedora/GNOME (my primary machine is a desktop) and that is usually ok, but there are certainly things I can't do (like use Google Earth while having slack or a web browser open).
You won't but I think some HN people have to push around a lot data and the fastest way to do that is to get as much of it in memory as possible. Others love their electron apps and docker suites and VMs.
For a regular user, probably not. Contemporary dev work with spurious containerization on the other hand…

Maybe some companies should give their employees two systems. Your average way too expensive bragging rights laptop, and a smaller older one which is the only one you're allowed to do your code review/productive commits on.

How about an undersized laptop for testing and coding. But a personal server for under their desk with k8s already installed.
People, for some kind of reason, really like their laptops. They also have more brand recognition, thus the "bragging right" part, when you get your new X1/Macbook every 2 years.

And if you still work on your laptop but have your personal server box as a CPU slave, that still leaves some issues. You might be able to do your build steps on the machine, but your IDE still runs on your laptop, so that needs to be beefy enough -- never mind auxiliary applications like browsers, Photoshop, CAD etc. Also, it's quite hard to get a slow laptop with decent ergonomics, unless you buy used (not that much an option for companies).

Also, once you go headless server, it's better to just put it online anyway, as you don't need 24/7 access

I mean, Android Studio eats memory too much.
I run KDE with other JetBrain's IDEs and a 2 GB VM in the backround every day and the maximum memory usage was 14 GB.
Are you joking?! That depends entirely on what you're doing! I could do my day to day work on 16 GB just fine. I could probably live fine with 8 GB if I actively closed web pages that I didn't actually need to keep open.
I suppose it's what you do with it. I use about 6GB of an 8GB system, with the rest allocated to buffer cache. Firefox, VS Code, terminals, mapping software...I can't use 16GB unless I spin up a VM.
this is just nonsense