It's a weather app, 1.2 GB of RAM is crazy. The MacOS one is only good by comparing it to Windows. I have MS Word using only half of the Mac weather app.
post
Even 247MB seems too much for usually checking the weather. Once upon a time, the entire operating system was able to run without any problems on less than 512MB of RAM, including programs, and now you tell me that I need half of it to check the weather? Technology has lost itself along the way...
And yet my script to fetch from an API and display in my bar uses no more than a few megabytes with the bar included...
And even that would be considered absurd by yesterday's standards. The entire game ROM for Super Mario Bros on NES is 40KB.
Ads In a weather app, because of course
My first thought: If it isn't always running it honestly not a major concern how much memory the weather app uses.
My second thought: 1.2GB WTF? Ok, that is way over the top. The executive in charge should be fired.
My third thought: 250MB? That is still a little unnecessary, even if it probably does fall under the "doesn't matter" threshold.
My fourth thought: gnome-weather uses 180MB, not great, not bad.
I think reading how much RAM a program uses is a bit complicated. In example there are shared libraries, and RAM will be reused if multiple applications uses the same resource. If two programs using the same library uses up 1.2gb on their own, then starting up app A and measure its 1.2gb, then close and measure app B with 1.2gb would give you exactly that. But in reality if both apps would run at the same time, their total RAM usage might be just 1.4gb.
As an example, if I already run KDE on my system and another KDE app starts up, it might not use too much more RAM. But the same app on a GNOME system might require a lot of additional RAM. So the Windows 11 Weather app might not even use 1.2gb on its own. No idea how they measured it.
While shared memory is a feature in linux, it's mostly used for inter-process communication and isn't something that happens by default with shared libraries.
When a program loads a shared library, it creates a new instance of it that runs in the same memory space as the program.
In the example you're using with KDE, that's actually a system process that your program is communicating with, so it's not quite the same as just loading a shared library (.so). Since new programs can connect to the existing system service, that can end up saving RAM by having a single system program service multiple user applications.
This isn't really any different on Windows where the desktop environment (dwm.exe) is handling drawings and compositing for all user apps.
Edit: Based on the downvotes, maybe I got something wrong here. Maybe someone can comment on what? I'm happy to learn
You're not that far off, everything you've said about shared memory is true of writable shared memory, which is what is usually meant when talking about "shared memory" in user space.
When a program loads a .so a version of that file is loaded in the program's virtual memory space so technically that same .so file exists in multiple virtual spaces, but that's only a trick used by your MMU (memory management unit), the .so file is only loaded once in actual memory:
Let's imagine some program loads opencl.so and no one else on the system uses it. The kernel will check all needed libs and loads that one at physical address 0x700. After loading it up it talks to the MMU and creates a virtual address space for said program, telling the hardware to create a read-only link between virtual address 0x100 and physical address 0x700, "loading" the library in virtual memory (without actually making a copy). If some other program then needs opencl.so the kernel will recognize that lib as already loaded so skips ahead to linking virtual adress 0x200 (or whatever really, virtual address space is specific to one instance of one program, it could be 0x100 again it doesn't matter) to physical address 0x700, once again loading it in program memory without making a copy.
Ahh, okay. I think the main confusion is I was kind of ignoring the code portion of the library, which is easily deduplicated like you said.
Any allocations done by the library running (opencl.so in this example) will still be separate per process though, unless the program is passing mutable shared memory buffers around, which could be the case if there's IPC going on.
The point about memory usage being hard to measure is definitely true, especially since linux won't actually consume memory until a write is made to the block, unlike Windows which preemptively allocates the full requested size.
Hi. Ehm I didn't downvote, just for reference. I'm not sure either. Maybe the shared memory you was talking about is data exchange, not sharing resources of currently loaded modules from same applications.
My OS (Arch, MangoWM+Noctalia) uses about 1.3GB when no apps are running. It even includes a weather widget among other information widgets, like system monitor, all loaded in memory with their corresponding information, and it's all included in that 1.3GB.
I liked the idea from another article about Whatsapp webview app: if Microsoft itself doesn't invest time and resources to write native apps, who would care to? They themselves set a low standard switching app platforms and writing web wrappers, and it's naive to think this stops at bare Win11 being bloated - it means most other apps would also be created as bloatees. Resource consumptions just explodes, and so does the head of the end user whose brand new PC can't handle basic desk job and work chats.
80% of windows users, I guarantee, use the weather app daily. I place my bets there’s a bunch of crap happening as a background process.
Imagine paying for an OS and then get served ads. That shit should be illegal.
Edit: There was no need to delete your reply. I just explained it without any toxicity. Context for any reader: He was saying that as a kid they had to pay for cable tv and still got ads on the tv programs. As a justification for why Windows has ads.
Because you pay for access on your cable provider, like you would pay for your internet on your internet provider. Then you can watch free channels or pay for certain channels, like you would pay for Netflix or Disney+ or whatever is called. With the paid services there shouldn't be any ad, with the free services like YouTube, you get ads so YouTube can pay their bills.
So, you analogy was completely missing the point and is not comparable to a paid operating system. You don't even get ads with free operating systems, or with your paid competitor Apple.
and nobody stopped to ask if we needed a weather app on our desktops.
Never forget: calendar flyout
It was years ago, but that straw broke this camel’s back
I had to look it up. Yuck. A lot of users are just beta testers aren't they? At least with Linux you know that people care about fixing it. But Windows, it's a mess.
Don’t all webview2 apps share resources? The real problem is webview2 (based on chromium?) is bloated.
I read in a book somewhere that NOAA has the most accurate weather data, and that all other for-profit companies are just piggybacking off their data, but the companies fudge with the numbers a bit so people are less mad in some situations.
For example if there’s a 10% chance of rain per NOAA, a company might report there’s a 40% chance of rain, so you’re less mad and more understanding “we’ll it was 40%” vs “wtf you call this 10% chance?”
Just felt like telling that little anecdote.
all this tells me that people to date still don't understand percentages and probability.
I just remember someone trying to explain in past probably on Lemmy, how the percentage is just a part of a area, not like 40% across the whole map just 40% chance it might rain in this one spot or something like that
In the Netherlands we have the KNMI.
Recently, they made their own weather app, for free and without ads, even open-source (repo). A few of the big commercial weather providers (that just regurgitates KNMI's data) were mad that this app was better than their shitty ad-riddled version, so they sued them (and lost).
ram usage is hard to measure, but a whole ass browser for that does sound extremely shitty
I'm pretty sure there are like several solid linux desktop widgets thst do what you want but I don't even bother because I have conky setup with wttr.in lol
1 comment