Live data from Hacker News

Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

twitter.com

101–110 of 342 posts

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#101
post #52

Earlier quoted context omitted.

It would be very bad if OS memory usage did not return to flat no?

It sometimes feel like it is a bonus today, if apps bother to clean up their memory at runtime, so maybe that's why parent poster thought it is a good and special thing, that the OS free's the memory of an ended processes. Btw. many people don't seem to know, that also in languages with a garbage collector like Javascript, you can create awesome memory leaks. And I would bet, most websites actually do: it only works,…

I reckon we're probably a lot better off today than in 1995. (Windows 95)

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#102
post #88

Earlier quoted context omitted.

No. There is no way this has anything to do with that. That's an issue with the OS swapper algorithm, and it should be fixed in macOS 11.4 according to reports.

Selling M1s with a decent amount of RAM would surely help too

Because 16GB is suddenly low?

Until now most laptops sold everywhere, including high end models, where 16GB and below. 32/64 is a tiny niche (and special built to order option in most cases), even for video and music editing people.

Sure, 32GB would be nice, but let's pretend this is some huge issue for but a small minority that runs several VMs simultaneously or such.

Not to mention the M1 machines released thus far (Air, Mini, 13" Pro, and 24" iMac) are the lower end of the line - the kind of machines that people wouldn't tend to update to 32 even when it was an option under Intel (which itself, is not that long ago).

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#103
post #98
post #91

Earlier quoted context omitted.

The iPad Pro has 4GB with almost the same CPU and is absolutely snappy editing 4K videos, instantly switching in and out of apps etc. It’s a matter of software architecture and not raw space available.

Editing 4K videos doesn't strike me as particularly RAM intensive if you optimize the common behaviors (seeking, etc) properly in software and have a fast SSD.

Between filters, caching, CPU assets, and of course, on M1, GPU memory sharing, and so on, you'd be surprised.

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#104

Earlier quoted context omitted.

Just purchased my first Mac after using Linux for most of my adult life. How big of a concern is this? I am seeing mixed reports when looking around - should I be questioning my purchase if I was expecting my M1 Air to last a few years?

A YouTuber investigated (but no shell commands AFAIK, observing through Activity Monitor), but seems like Rosetta 2 apps might also contribute to the high disk usage. https://www.youtube.com/watch?v=FyMCoQmsv-I

Activity Monitor is not a reliable way to inspect memory usage, it's optimized for speed of calculation. Use 'footprint' and 'zprint' or Xcode/Instruments instead.

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#105
post #8

Even 360MB seemed a bit high to me so I had to open it up in a few apps to get some perspective. Ristretto: 48.8MB. EOG: 51.3MB. ImageMagick: 169MB. Firefox: 305.1MB. Vivaldi: 185.2MB. Edge: 196.5MB. GIMP: 244.8MB. OS memory usage remained relatively flat once app exited. xUbuntu 20.04.

EoG here (Dell XPS 15 9500, 32GB) only uses 14.6mb. Chrome spawns a renderer process that takes a good 200mb though.

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#107
post #88

Earlier quoted context omitted.

Selling M1s with a decent amount of RAM would surely help too

Because 16GB is suddenly low? Until now most laptops sold everywhere, including high end models, where 16GB and below. 32/64 is a tiny niche (and special built to order option in most cases), even for video and music editing people. Sure, 32GB would be nice, but let's pretend this is some huge issue for but a small minority that runs several VMs simultaneously or such. Not to mention the M1 machines released thus far…

Justify it how you like but I consider 16GB too low for my use.

32GB is minimum in 2021, with all my hardware having 64GB

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#108
post #55

Earlier quoted context omitted.

730 frames of a 400x240 pixel image at 8 bits per pixel (which is all GIF allows) is 70MB (plus 768 bytes for the palette). We should be able to load each frame of the GIF many, many times before we reach even 1GB of RAM, let alone 35GB. The x86 version of the same editor can open this GIF in the same way with reasonable memory consumption. This is clearly an issue with either the image editor, or as seems to be the…

I don't like the title, it's as simple as that. No one said there isn't a bug, but not about the gif, it's about editing the gif. This title is like saying a guy killed 10 people with a pen, and it turns out he signed an order for their execution. It's a bug, but nowhere near what the title implies. - Edit: No it's not about the gif, just like it's not about the pen even if it was involved. The editor completely chan…

Uh-oh, this is sooo important, some title on the Internet is wrong!

If I read it correctly, the same app, compiled from the same code, for the same OS, but different CPU architectures, exhibits wildly different memory consumption for the same task. That's what's interesting here, at least to me, but you chose to nitpick on the title instead, just because - from what you write - it offended you somehow by not including the word "editing" at the beginning.

I mean, sure, go on, have fun, but at least don't expect your posts not be downvoted.

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#109

Who else is excited that we are might revive the 80s Cambrian explosion of different system system and architectures? Back then there were so many options.

I would love to see a CPU Renaissance like this. Back then we had tons of variety, 680x0, x86, Rx000, various lisp machines, Vector computers, VLIW and Multiflow, Sparc, VAX, early ARM, message passing machines, 1-bit multiprocessors, Hypercubes, WD CPUs, and later an explosion of interesting RISC architectures... It was really interesting and enjoyable era.

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#110
post #96

Earlier quoted context omitted.

If you close the app the OS should clean up the memory no matter what the app was doing

But closing tab != closing app.

Firefox user here, plenty of tabs, Win10 as OS. 3.7 GB before opening the GIF in new tab, 3.8 after opening, 3.7 after closing. Reopening and closing it several times in a row yields the same results, consistently. At least for my setup (Win10 heavily crippled to my own liking) closing tab == closing app in terms of memory gained back.
Post reply on HN