Comparing RAM managers for Windows, Linux, and possibly macOS.
Comparing RAM managers for Windows, Linux, and possibly macOS.
Earlier I discovered that certain Linux applications consume less memory compared to Windows. I want to understand why Linux RAM management differs so much from Windows, and how developers can optimize memory usage. I’m not sure if Linux uses shared libraries or memory differently, but I see some differences in RAM consumption—like 8 GB on Windows versus 4 GB on Linux without modifications. Cities Skylines, Ark: The Legacy, and other titles show varying performance. Please share your thoughts or advice on improving memory efficiency.
The OS memory manager doesn't control an app's memory consumption. It mainly handles swapping data between swap and RAM, managing unused space and other operations. The memory usage you observe depends on the app in question. It varies based on factors like the loaded map or game stage, and differences may appear when comparing tools such as Task Manager versus System Monitor. Check the details tab in Task Manager and adjust visibility settings to see accurate comparisons.
For example, opening Firefox on a Windows laptop showed about 320 MB usage, while Linux reported around 404 MB. This discrepancy highlights the need to account for hardware differences and background processes when making direct comparisons.
Same software built for two different systems require varying memory when launching. Cities Skylines needs about 4 gigabytes on Windows, but around 8 gigabytes on Linux. It seems Linux likely has methods to manage memory better, though I’m not entirely sure if Windows uses shared libraries that increase its RAM demand.
32 bit versus 64 bit differences are usually around 30%, not a full 100%. Linux and Windows both have shared memory features, but the variations aren't that drastic. I don’t have access to Cities Skyline for testing, but such a large discrepancy likely stems from higher-level OS optimizations.
The operating system mainly supplies memory to programs, and both Linux and Windows do this well. Cities skylines likely uses Unity, though the exact details might vary—different libraries exist on each platform, and possibly some unusual Unity behavior is causing issues.