Check out my open source game engine! https://strayphotons.net/ https://git.sw0.com/frustra/strayphotons

I have been developing this engine on and off for over 10 years, and still have big plans.

  • 0 Posts
  • 396 Comments
Joined 3 years ago
cake
Cake day: July 9th, 2023

help-circle
  • I guess swap can still be useful for background browser tabs and apps. I haven’t run swap on my machines for years now, so I can’t really remember how and when it decides to start moving stuff there.

    The last few times I ran into OOM killer it’s been from compiling/linking some huge project that used up 90% of my ram on its own… so I’ve probably been having a different experience than most people.





  • 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