News for hackers. Stuff that matters.
Re:DRAM Prices in ‘Freefall’ by popotamonga on Thursday March 07, 2019 @02:22PM (#19331236)
I keep adding RAM and i keep running into 95%+ usage. Main consumer: Chrome, just with a few dozen tabs open.

Followed by Android Studio (3GB for a medium project), IntelliJ idea (another 3GB for a smallish project + 15% cpu constantly)

If prices keep going down i'll just put 128GB and call it a day.

Slack takes more than half a Gig with only 5 teams. It's a chat app, what the F?

Re:DRAM Prices in ‘Freefall’ by Dunedan on Thursday March 07, 2019 @02:44PM (#19331496)
The past couple of days I took a deeper look into the RAM usage of Android Studio as I had my fair share of problems with it. I'm not sure what the 3GB you mentioned include, but I made the following observations:

- Android Studio itself: default heap size of 1280MB[1] plus ~400MB of metaspace

- Gradle: That's the part which surprised me the most:

- Most projects probably have a custom heap size set for Gradle. Turns out: If you're using Kotlin the same amount of heap size is also used for the Kotlin compile daemon. So if you configure -Xmx2G you'll end up with 2GB for the Gradle daemon and 2GB for the Kotlin compile daemon. The heap size for the Kotlin compile daemon can be separately configured by setting `-Dkotlin.daemon.jvm.options=-Xmx<xxx>`[2].

- Gradle 5.0 is way more memory efficient than the versions before and they even drastically lowered the default heap sizes[3].

- If you still have a custom heap size in your `dexOptions` set: that's not recommended anymore[4].

[1]: https://developer.android.com/studio/intro/studio-config

[2]: https://discuss.kotlinlang.org/t/solved-disable-kotlin-compi...

[3]: https://github.com/gradle/gradle/issues/6216

[4]: https://stackoverflow.com/a/37230589/4779904

Re:DRAM Prices in ‘Freefall’ by ktpsns on Thursday March 07, 2019 @02:40PM (#19331439)
A concept a High Performance Computing professor told me once: A program which is memory intensive must be slower then one which needs little memory -- just because load/write operations from the CPU take time.

That's one of the reasons why some bloated contemporary desktop software (i.e. Slack) feels as fast as its historic counterpart did in 1995 (i.e. our MSN/ICQ clients back in these days).

Re:DRAM Prices in ‘Freefall’ by fwip on Thursday March 07, 2019 @02:45PM (#19331510)
That's a nice sound bite, but isn't really true. There are many cases where we increase memory usage for faster software.

Side note, lessons from HPC aren't really that applicable for chat programs.

Re:DRAM Prices in ‘Freefall’ by NullPrefix on Thursday March 07, 2019 @03:11PM (#19331820)
>we increase memory usage for faster software.

We increase memory usage for faster software development.

Re:DRAM Prices in ‘Freefall’ by larrik on Thursday March 07, 2019 @04:44PM (#19332802)
No, lots of algorithms and data structures use more space to provide more speed. It's not simple laziness.
Re:DRAM Prices in ‘Freefall’ by tonyarkles on Friday March 08, 2019 @01:41AM (#19335621)
I don’t think that’s what Slack is doing here though :)

I’m totally with you for things that are actually doing serious numeric/algorithmic work. Matrix inversion runs a helluva lot faster when the whole matrix fits in RAM. And there are undoubtedly lots of places where you can use different algorithms for the same problem that can trade off memory usage and computational complexity.

Re:DRAM Prices in ‘Freefall’ by fuzz4lyfe on Friday March 08, 2019 @11:17AM (#19338888)
It does happen obviously: https://en.wikipedia.org/wiki/Space%E2%80%93time_tradeoff

But yes, running another browser + javascript interpreter on a machine that already has a browser + javascript interpreter running isn't what that article is talking about.

Re:DRAM Prices in ‘Freefall’ by FullyFunctional on Friday March 08, 2019 @12:10AM (#19335268)
Constraint solvers comes to mind. It's pretty much the most memory hungry application I can think of, though some of the VLSA EDA tools need triple digit GBs of memory to do anything.
Re:DRAM Prices in ‘Freefall’ by jsharf on Thursday March 07, 2019 @05:57PM (#19333478)
You can also increase memory usage for faster software, as is the case with memoization and lookup tables.
Re:DRAM Prices in ‘Freefall’ by vvanders on Thursday March 07, 2019 @03:07PM (#19331771)
Conversely cache misses are painful and largely haven't gotten faster over the years.
Re:DRAM Prices in ‘Freefall’ by mbreese on Thursday March 07, 2019 @03:19PM (#19331899)
Exactly. And the reason why programs that use a lot of memory might feel slower than one with a little is that cache miss rate.

Adding memory often makes an entire system faster (again, because you can cache things in the faster RAM rather than paging out to disk). But for two comparable programs, I could see the argument that the lower-memory footprint program would be faster. (For comparable programs).

Re:DRAM Prices in ‘Freefall’ by fwip on Thursday March 07, 2019 @04:08PM (#19332456)
If the algorithms are otherwise identical, sure.

Often the memory being used is doing things like pre-loading information from disk or the network before it's needed, or caching results for reuse.

Or it's storing the information in a faster but less dense data structure - kind of like denormalizing a database for performance reasons.

Re:DRAM Prices in ‘Freefall’ by vvanders on Thursday March 07, 2019 @03:39PM (#19332112)
Yup, as DDR clock speed increased so have CAS timings.
Re:DRAM Prices in ‘Freefall’ by segfaultbuserr on Thursday March 07, 2019 @04:13PM (#19332508)
It's a serious problem in compiler optimization. In the ideal world, a program with loop unrolling and vectorization should always be faster, but in practice, the bigger binary size induces cache misses and may produce a slower problem. Time goes by, and compilers keep adding increasingly complex techniques based on space/time tradeoffs, making the problem trickier.

Historically, under some circumstances, a problem compiled with -Os, may paradoxically be faster than -O2, and -O2 may be faster than -O3. I think the situation is getting better now, and the optimizing level mostly works as advertised. But there's still some problems in automatic loop vectorization.

Re:DRAM Prices in ‘Freefall’ by 0815test on Thursday March 07, 2019 @08:10PM (#19334275)
> In the ideal world, a program with loop unrolling and vectorization should always be faster, but in practice, the bigger binary size induces cache misses and may produce a slower problem.

The solution is to use abstract, arbitrary vectors in the ISA instead of packed SIMD and unrolled loops. RISC-V gets this right with their V extension.

Re:DRAM Prices in ‘Freefall’ by greglindahl on Thursday March 07, 2019 @08:23PM (#19334339)
There are many different kinds of loop unrolling, and RISC-V's V extension is not the only one. Itanium had the same issue: the loop unrolling assist in the instruction set was not viewed by many compiler people as being sufficient.
Re:DRAM Prices in ‘Freefall’ by colejohnson66 on Friday March 08, 2019 @03:15PM (#19341746)
ForwardCom has abitrary length vector support. http://www.forwardcom.info/ https://news.ycombinator.com/item?id=19340267
Re:DRAM Prices in ‘Freefall’ by greglindahl on Thursday March 07, 2019 @08:07PM (#19334262)
What's the paradox? The compiler simply can't tell.
Re:DRAM Prices in ‘Freefall’ by cbhl on Thursday March 07, 2019 @04:37PM (#19332732)
Reading from RAM is certainly faster than disk, but reading less is faster than reading either from RAM or from disk.

Chrome is a big application that tries to be everything for all people. If Desktop performance mattered to companies, folks would strip out the browser and use native components. (This is literally React Native on mobile, even if programmers are still mostly writing in JavaScript instead of C++ or Objective C or Swift.)

Re:DRAM Prices in ‘Freefall’ by larrik on Thursday March 07, 2019 @04:44PM (#19332791)
> Reading from RAM is certainly faster than disk, but reading less is faster than reading either from RAM or from disk.

This is just not true in a lot of ways.

For example, you can use memory to store the same data in multiple ways, and then you get blistering fast access, whereas if you only store it in a single way, you may get a range of read performance between "as good" to "really really bad".

I understand why what you said sounds true, but it's not that simple at all.

Re:DRAM Prices in ‘Freefall’ by cbhl on Friday March 08, 2019 @12:34AM (#19335378)
Yes, you're right. In hindsight, I wish I could delete that first sentence -- there are obvious counter-examples (ray tracing / movie rendering, search engines, memoization, dynamic programming).
Re:DRAM Prices in ‘Freefall’ by inetknght on Thursday March 07, 2019 @03:03PM (#19331729)
Faster, or perhaps more features.
Re:DRAM Prices in ‘Freefall’ by SimonPStevens on Thursday March 07, 2019 @03:12PM (#19331831)
I just don't think this is true.

A very common tradeoff we make is to cache the results of time consuming calculations in memory, or even cache raw data in memory to avoid database calls. Both of these techniques increase memory usage, but improve performance.

Re:DRAM Prices in ‘Freefall’ by Narishma on Friday March 08, 2019 @03:33AM (#19336014)
That depends on how expensive those calculations are relative to memory access. CPUs are very fast at doing a ton of math but very slow at reading or writing to random memory.
Re:DRAM Prices in ‘Freefall’ by SimonPStevens on Saturday March 09, 2019 @03:47PM (#19348381)
Yes, of course, but my point wasn't that if you cache all results your software will be faster. My point is just that it is possible to write code that consumes more memory, and runs faster under some circumstances, which refutes the ops claim that all software that uses more memory is slower.
Re:DRAM Prices in ‘Freefall’ by dagw on Friday March 08, 2019 @07:22AM (#19336912)
A program which is memory intensive must be slower then one which needs little memory -- just because load/write operations from the CPU take time.

Not if the alternative to reading/writing from RAM is reading writing from disk. One piece of data processing software I used to use had its roots in the early 80s and was very memory efficient. It achieved this by rewriting the input data to disk in a clever way and the reading and writing just the parts it need. I could process gigs of data using only a couple of hundred MBs of RAM. A different, more modern, program I also used would slurp in as much data as it could fit in RAM and then just go from there. It would happily use 30 of the 32 GB or RAM I had every time it ran, but it was also 1-2 orders of magnitude faster.

Re:DRAM Prices in ‘Freefall’ by CyberDildonics on Thursday March 07, 2019 @08:02PM (#19334246)
ICQ was much faster on a 150mhz pentium than slack is on a modern computer today.
Re:DRAM Prices in ‘Freefall’ by AlisdairO on Thursday March 07, 2019 @05:54PM (#19333463)
If they're algorithmically the same, that's true, otherwise not. Caching computations takes space, but can drastically speed up runtime performance.
Re:DRAM Prices in ‘Freefall’ by outworlder on Thursday March 07, 2019 @03:44PM (#19332172)
> A concept a High Performance Computing professor told me once: A program which is memory intensive must be slower then one which needs little memory -- just because load/write operations from the CPU take time.

Hi, there's this guy named 'cache' that wants to speak with you.

Re:DRAM Prices in ‘Freefall’ by gumby on Thursday March 07, 2019 @04:53PM (#19332889)
> Main [RAM] consumer: Chrome, just with a few dozen tabs open....Slack takes more than half a Gig with only 5 teams. It's a chat app, what the F?

Because it's an Electron app, i.e. another copy of Chrome.

Actually for all the money they've raised I can't understand why the Slack apps are so terrible. I use Mac and iOS versions, and they still can't show useful activity badges; video doesn't work on ios...what are the spending their billions on?

Re:DRAM Prices in ‘Freefall’ by therealx on Thursday March 07, 2019 @10:36PM (#19334884)
We've opened a lot of tickets about the " useful activity badges" but they seem to think it's a feature, not a bug. (I assume to keep remote devs happy so managers can't drill down to the minute of time.) I know for sure that their underlying tool fo determine away time is very accurate.
Re:DRAM Prices in ‘Freefall’ by smacktoward on Thursday March 07, 2019 @02:26PM (#19331284)
If you have the RAM, wouldn't you rather the software use it? Is there some benefit to having memory sitting around empty and idle?

As long as the software doesn't require all that memory, but can work OK with less and then scale up to use more if you've got it, I guess I don't see what the problem is.

Re:DRAM Prices in ‘Freefall’ by marcosdumay on Thursday March 07, 2019 @03:16PM (#19331867)
How often do your computer exclusively runs Chrome? How easily can the OS take the memory back from Chrome to run something else (that one is easy, it can not, except on the last case scenario where it kills process).
Re:DRAM Prices in ‘Freefall’ by 781 on Thursday March 07, 2019 @04:15PM (#19332541)
> How easily can the OS take the memory back from Chrome to run something else (that one is easy, it can not, except on the last case scenario where it kills process).

It actually can. It's called swapping. An amazing technology from the 90s.

Re:DRAM Prices in ‘Freefall’ by Jach on Thursday March 07, 2019 @04:31PM (#19332685)
That's not what GP meant, the analogous situation is loading GBs of data into a database, resulting in a GBs sized file on disk. If you truncate the data, it's gone, but the database won't actually shrink the file on disk unless you vacuum too. Chrome might not be using all the memory it has claimed, but it's not necessarily releasing all that it can back to the system either.
Re:DRAM Prices in ‘Freefall’ by 781 on Thursday March 07, 2019 @04:55PM (#19332917)
> but it's not necessarily releasing all that it can back to the system either.

That's exactly the point of swapping. Memory which was not used in a (relatively) long time is taken away forcefully from the process if there is memory pressure on the system.

So it doesn't matter if Chrome releases it or not, it will be taken away if it just sits there.

Re:DRAM Prices in ‘Freefall’ by pritambaral on Friday March 08, 2019 @06:09AM (#19336589)
> is taken away forcefully

To disk. Waiting for the memory a badly behaved app overzealously ate up without using to finish flushing to disk before being able to use it is worse than simply having the memory readily available. This is why I always disable swap, opting to let bad processes die, sometimes even pulling the trigger myself.

Re:DRAM Prices in ‘Freefall’ by bradknowles on Thursday March 07, 2019 @04:40PM (#19332756)
If you ever hit actual swapping, then your system performance is already way past the point of no return.

In modern systems, paging is okay. But not swapping.

Re:DRAM Prices in ‘Freefall’ by 781 on Thursday March 07, 2019 @04:51PM (#19332870)
In even more modern systems, with NVMe NAND storage, even swapping is ok.
Re:DRAM Prices in ‘Freefall’ by jsymolon on Friday March 08, 2019 @11:20AM (#19338928)
> from the 90s.

From the 60s. Atlas computer had virtual memory. I originally thought it was the System360.

https://www.computerhistory.org/timeline/1962/

Re:DRAM Prices in ‘Freefall’ by rhinoceraptor on Thursday March 07, 2019 @04:36PM (#19332724)
That's what the virtual memory system does, provided you're not running with swap disabled. A page fault isn't hard for the kernel to handle, it's just a severe performance hit.
Re:DRAM Prices in ‘Freefall’ by ip26 on Thursday March 07, 2019 @02:30PM (#19331327)
Does it gracefully & rapidly clean house if another app needs some? Does the extra usage benefit you in any way at all, to make up for the disk cache it gets used as otherwise?
Re:DRAM Prices in ‘Freefall’ by est31 on Thursday March 07, 2019 @03:02PM (#19331703)
> Is there some benefit to having memory sitting around empty and idle?

Yes, modern operating systems use free RAM as cache for the HDD. If you have an I/O intensive process, having a large amount of RAM is really helpful.

Re:DRAM Prices in ‘Freefall’ by the8472 on Thursday March 07, 2019 @04:51PM (#19332867)
If you have any kind of workload with IO patterns that are not embarassingly parallel you want your files to be in the page caches, i.e. RAM, to minimize the access latencies and thus the walltime of your workload.

For that to work applications shouldn't be gobbling up all the ram, instead they should leave it to the OS to cache data.

Sure, NVMe drives help, but loading things from RAM is snappier still.

Also, those huge memory footprints themselves can also cause issues. E.g. they can increase GC pauses in GCed languages or decrease cache hit rates when allocations are scattered all over the place.

Re:DRAM Prices in ‘Freefall’ by imtringued on Friday March 08, 2019 @06:56AM (#19336793)
I played minecraft last year again and it did exactly what you said. I was constantly running out of my paltry 8GB of RAM on a linux system that wasn't running anything except minecraft. If I got unlucky it went up from 98.5% RAM utilization to 100% and then the whole system locked up. It probably was the worst gaming experience in my whole life.
Re:DRAM Prices in ‘Freefall’ by 72deluxe on Thursday March 07, 2019 @03:46PM (#19332189)
So should I write software that just leaks and not worry about it?
Re:DRAM Prices in ‘Freefall’ by ionised on Friday March 08, 2019 @06:12AM (#19336596)
That's the Electron way isn't it?

Cut corners and offload the trade-offs onto your end users.

Re:DRAM Prices in ‘Freefall’ by 72deluxe on Thursday March 07, 2019 @03:45PM (#19332176)
Slack is running a chrome instance - look at it in detail using Sysinternal's Process Explorer. Skype now does the same.

It's so grossly dumb - giant native applications running a hidden web browser to show a webpage that does it utmost to pretend to be a native application (but it doesn't work - Alt-F to launch the File menu in slack but cursor left/right doesn't take you to the next menu like REAL native apps do)....

It's a future I do not wish to be involved with!

Re:DRAM Prices in ‘Freefall’ by Dirlewanger on Thursday March 07, 2019 @05:19PM (#19333117)
It's the like saying about how giving developers 2 weeks worth of work to do in a month's timeframe, and watch it take a month: give web developers unlimited memory and they will find a way to make their desktop applications eat all of it.
Re:DRAM Prices in ‘Freefall’ by ken on Thursday March 07, 2019 @04:39PM (#19332751)
I'm occasionally tempted to add RAM, but every year my OS and applications get more memory-efficient so I have less of an excuse to spend any money on that. I've got 16GB and it's getting more sufficient all the time! The latest compiler upgrades make it twice as fast as last year, on the same hardware. Life is pretty good.

(Avoiding hardware upgrades isn't all peaches and cream. My graphics cards are getting less acceptable all the time, and I'll probably need to upgrade this year.)

I don't use Chrome or Slack or any of those others. The easiest way to use less memory is to not run programs which require a bunch of it. People who drive Ferraris don't complain about their fuel economy.

Re:DRAM Prices in ‘Freefall’ by spullara on Thursday March 07, 2019 @02:39PM (#19331436)
You can change the startup parameters of IntelliJ to reduce the maximum memory usage. If you don't it will optimize for least GC time rather than least memory usage and maximum usage will be 75% of total memory.
Re:DRAM Prices in ‘Freefall’ by the8472 on Thursday March 07, 2019 @05:04PM (#19333000)
With java 12 you'll be able to tweak G1 to minimize footprint without setting an arbitrary maximum.

https://openjdk.java.net/jeps/346

Re:DRAM Prices in ‘Freefall’ by spullara on Friday March 08, 2019 @11:22PM (#19344438)
I bet ZGC would also be pretty great for this use case as it is super conservative.
Re:DRAM Prices in ‘Freefall’ by sydney6 on Thursday March 07, 2019 @02:27PM (#19331291)
Unused memory is wasted memory, they say.
Re:DRAM Prices in ‘Freefall’ by rat9988 on Thursday March 07, 2019 @02:37PM (#19331406)
Yeah, software takes more ram, so when your ram is full your computer is slowed (because it probably doesn't need only 100% if your ram), therefore you buy more ram. Now guess what? your ram is not at 100% anymore, your unused memory is wasted anyway, so why not use it?

Repeat the cycle.

Re:DRAM Prices in ‘Freefall’ by 12298765 on Thursday March 07, 2019 @06:01PM (#19333509)
Not exactly -- more like no matter how much RAM you have, it makes sense for your software to use it all rather than disk.

It means that however much you have, your system should use as much of it as possible. Otherwise it's just sitting there doing nothing. Contrary to popular belief, the more RAM you're using, the faster your system will be (assuming it's using the RAM efficiently)

Re:DRAM Prices in ‘Freefall’ by imtringued on Friday March 08, 2019 @07:13AM (#19336862)
>Contrary to popular belief, the more RAM you're using, the faster your system will be (assuming it's using the RAM efficiently)

Is this a joke? If I have 16GB of RAM but my programs use 18GB then my system will suddenly become faster?

Re:DRAM Prices in ‘Freefall’ by ungzd on Thursday March 07, 2019 @03:20PM (#19331914)
Free memory is always used by disk cache.
Re:DRAM Prices in ‘Freefall’ by effie on Thursday March 07, 2019 @04:31PM (#19332684)
On Linux, not all of it, in my experience. If you have a lot of memory, some of it may be completely free.
Re:DRAM Prices in ‘Freefall’ by deathanatos on Thursday March 07, 2019 @04:45PM (#19332813)
It should gradually trend towards using the vast majority of the free space. The disk cache won't consume memory unless you're reading new, not-already-cached pages from disk; so if you're not reading enough data from disk, then it might not consume everything. (E.g., if you've rebooted recently, and just haven't read enough from disk to consume everything.)

If you work w/ removable media, IME the cache will free the pages associated w/ that media when it's removed (as the cache must be assumed invalid when/if the media is plugged back in). Playing a DVD, and then ejecting it, would often result in a large drop in disk cache. (Back before Netflix…)

Re:DRAM Prices in ‘Freefall’ by bradknowles on Thursday March 07, 2019 @04:41PM (#19332771)
Only a very small percentage is kept "free". Everything else should be made available to buffer cache or the application, etc....
Re:DRAM Prices in ‘Freefall’ by agumonkey on Thursday March 07, 2019 @02:46PM (#19331518)
Re:DRAM Prices in ‘Freefall’ by dekhn on Thursday March 07, 2019 @02:24PM (#19331255)
are you complaining about cache data that makes the system run faster? I would expect any system that manages cache data to fill most of your RAM.
Re:DRAM Prices in ‘Freefall’ by gruez on Thursday March 07, 2019 @03:06PM (#19331757)
Most task/activity monitors don't consider OS cache memory as "used".
Re:DRAM Prices in ‘Freefall’ by dekhn on Thursday March 07, 2019 @03:27PM (#19331998)
I'm not sure exactly what you are saying, but what I am saying is that Chrome and other applications use either their own, or OS mechanisms, to cache read pages. This is visible on all systems I work with (mac, win, linux), either attributed to the process, or to OS read cache.
Re:DRAM Prices in ‘Freefall’ by gruez on Thursday March 07, 2019 @05:29PM (#19333217)
>I would expect any system that manages cache data to fill most of your RAM.

>I'm not sure exactly what you are saying

> This is visible on all systems I work with (mac, win, linux), either attributed to the process, or to OS read cache.

My response was directed at your part of the comment:

>I would expect any system that manages cache data to fill most of your RAM.

All systems do that, but they don't look "used" (eg. on the windows memory graph, the dark region excludes os cached memory). Unless using free[1], no reasonable person would think 99% of their ram's being used.

[1] https://www.linuxatemyram.com/

Re:DRAM Prices in ‘Freefall’ by dekhn on Thursday March 07, 2019 @05:52PM (#19333441)
I use free. Pretty much everybody I know who uses unix knows this. However, more importantly, you can't really show per-process cached ram and sum it up properly (since multiple processes can cache the same disk reads). Not really an issue in Chrome, which manages its own RAM cache (and is the system I was referring to here).
Re:DRAM Prices in ‘Freefall’ by e12e on Thursday March 07, 2019 @05:24PM (#19333177)
I mostly get by with wee-slack in a terminal. No in-line image support... But that can also be a feature.

https://github.com/wee-slack/wee-slack

Re:DRAM Prices in ‘Freefall’ by mdorazio on Thursday March 07, 2019 @06:01PM (#19333502)
I feel like I'm going crazy here. Wee-slack looks exactly like IRC did 20 years ago, except IRC was free. This is madness.
Re:DRAM Prices in ‘Freefall’ by ants_a on Friday March 08, 2019 @04:38AM (#19336250)
Maybe if IRC people would have been able to evolve the system to add persistent history we wouldn't be where we are now. And no, sshing to a server to run irssi in screen is not, and never was, an acceptable answer.
Re:DRAM Prices in ‘Freefall’ by syn0byte on Friday March 08, 2019 @09:22AM (#19337663)
Not until you wrap it in electron anyway.

hacking up and rebranding an IRCd is a tried and true startup method. Napster, Slack, Discord...

Re:DRAM Prices in ‘Freefall’ by swiley on Thursday March 07, 2019 @04:43PM (#19332790)
I feel like there’s some cultural problem that google has which prevents them from writing decent end user software.
Re:DRAM Prices in ‘Freefall’ by dmead on Thursday March 07, 2019 @05:49PM (#19333417)
do you have a real reason you need to run chrome?
Re:DRAM Prices in ‘Freefall’ by 1996 on Thursday March 07, 2019 @02:38PM (#19331423)
You named your own problem: you are using google technologies (chrome, android, java)

Use more sensible tools and you will not waste as much ram (firefox, visual studio code, .net)

Edit: Numberwang, apparently your account is dead so I can't reply anywhere but here.

Edge is great. I can't complain about its memory usage. Unfortunately with Microsoft moving to chrome engine, I am taking the precautionary measure of moving to Firefox until they have shown they can make Chrome suck less. Firefox is not as good as Edge for my needs, but quite close.

Re:DRAM Prices in ‘Freefall’ by ben_w on Thursday March 07, 2019 @03:12PM (#19331825)
Java is not inherently a memory hog. I used to work for a game developer which will remain unnamed, all their stuff was Java based, and they used 64-128 MB. That included a full 3D engine and textures.
Re:DRAM Prices in ‘Freefall’ by erik_seaberg on Thursday March 07, 2019 @04:10PM (#19332484)
Java's boxing (you can't put an int in a HashMap without first copying it to the heap) and lack of value types (basically the same problem for structs) does impose some extra object references and headers other languages wouldn't require.
Re:DRAM Prices in ‘Freefall’ by Jach on Thursday March 07, 2019 @04:39PM (#19332750)
It's not that much overhead and Java has successfully been used in the embedded space for a long time. (The JVM is separate from the Java language.) From today's wiki page on embedded java, "Embedded Java minimal requirements start at 30KB of (internal) flash and less than 2KB of (internal) RAM." Sure sometimes you can't even meet that, but that's hardly Java's fault.
Re:DRAM Prices in ‘Freefall’ by deathanatos on Thursday March 07, 2019 @04:49PM (#19332857)
IME, it's not so much the amount of memory¹, as the pressure it places on the GC to keep up w/ these (often small, but numerous) allocations. Other languages can allocate and deallocate these types of structures with just a stack pointer move in both cases, since nothing ever leaves the stack. (I think Java's allocator is typically approximately or exactly as cheap as a pointer-move on allocation, but deallocation is another story.)

¹but I don't want to downplay this concern entirely; in the parent's case of an int needing boxing, that effectively doubles the cost: the int, and now the pointer to that int. (Plus any hidden requirements of the allocator, but even if we assume that's free, the story might still be plenty grim.)

Re:DRAM Prices in ‘Freefall’ by imtringued on Friday March 08, 2019 @07:15AM (#19336872)
>that effectively doubles the cost: the int, and now the pointer to that int.

Empty objects aren't free either, so you pay triple.

Re:DRAM Prices in ‘Freefall’ by Numberwang on Thursday March 07, 2019 @02:40PM (#19331455)
FireFox is not an option. It is an order of magniturd slower than Chrome.

Does anyone know anything about the memory usage of Edge?

Re:DRAM Prices in ‘Freefall’ by shittyadmin on Thursday March 07, 2019 @03:06PM (#19331764)
You might want to try updating Firefox if you think it's an order of magnitude slower.
Re:DRAM Prices in ‘Freefall’ by viraptor on Thursday March 07, 2019 @03:25PM (#19331977)
At least in JS scenarios, the difference is nowhere near that. It's actually trading the first place with chrome between tests: https://arewefastyet.com/
Re:DRAM Prices in ‘Freefall’ by copperx on Thursday March 07, 2019 @03:17PM (#19331878)
It's 2019 now. Try Firefox again. For me it feels faster than Chrome. And it has a reader view. That's on Linux and on Windows. On Mac, I admit, Chrome feels faster. But you have Safari.
Re:DRAM Prices in ‘Freefall’ by pmoriarty on Thursday March 07, 2019 @03:44PM (#19332161)
Firefox's speed depends a lot on which extensions you use.

I use a bunch, like uBlock Origin, uMatrix, Tridactyl, Tree Style Tab, and Stylus, and Firefox slows down to a crawl for me when I have more than about 8 tabs open.

Now, some might advise not to use extensions, but using extensions is half the reason that I use Firefox at all in the first place, as Firefox without extensions really sucks.

Re:DRAM Prices in ‘Freefall’ by magicalhippo on Friday March 08, 2019 @08:22AM (#19337237)
I use uBlock Origin, uMatrix and Greasemonkey, and FireFox is nice and fast with several dozen tabs open for weeks at a time.

Slack leaks memory like there's no tomorrow, but that's on Slack. I just close the Slack tab and force a full GC/CC cycle and I get my memory back.

I'd do a binary search of sorts, disable half of the extensions and see if performance is still bad or not etc, to narrow it down to the offending extension(s).

Re:DRAM Prices in ‘Freefall’ by Narishma on Friday March 08, 2019 @03:46AM (#19336055)
> Firefox without extensions really sucks

The only extension I use is uBlock Origin. I've never felt the need for anything else whether it's on Firefox or Chrome.

Re:DRAM Prices in ‘Freefall’ by snapdangle on Friday March 08, 2019 @02:33AM (#19335828)
Even at it's slowest, Firefox was never even close to an order of magnitude slower.

Geek culture has zero loyalty, otherwise people would run the product that has moral integrity even if it costs them a few milliseconds in load times.

Re:DRAM Prices in ‘Freefall’ by andrepd on Thursday March 07, 2019 @03:56PM (#19332312)
>FireFox is not an option. It is an order of magniturd slower than Chrome.

This is objectively false.

Re:DRAM Prices in ‘Freefall’ by ionised on Friday March 08, 2019 @06:16AM (#19336609)
> FireFox is not an option. It is an order of magniturd slower than Chrome.

False.

It's faster and lighter than Chrome on my machine.