Stopping systemd services under memory pressure
11 points by cyplo
11 points by cyplo
After “and this gives you” I see an empty rectangle. Also, the first code example is missing “s” in services, and possibly some lines at the end. Could it be that the page was not tested on iOS?
Font is also invisible in Firefox on Android
oh dang, definitely not the intended result, apologies !
I did check in fennec on Android, so a bit surprising there. For iOS - you are right that is is not tested, I don't have access to iOS devices unfortunately.
In any case - this feels like problems with highlighter, I'll try to take a look and fix in a bit; ideally this should all juts be prerendered HTML but it's not :/
In the meantime - if you're interested in the code in full it is here - https://git.cyplo.dev/cyplo/dotfiles/src/branch/main/nixos/modules/memory-manager.nix .
I had an issue on desktop Firefox as well but deleted my comment because it fixed itself either after reloading or after explicitly selecting the default page style, and I thought you might have fixed something because you noticed right after posting. On case that's a data point that helps with debugging
I did also restart the server in the meantime, so maybe it was during your page load and some assets did not get loaded ? A wild guess tbh. Still worth looking at highlighter as would like to change it to be done during build time anyway :)
Something is definitely broken.
Firefox desktop on Windows - loaded it just now for the first time and all my fonts were equally glitched for these lower sections. Pressed reload and suddenly it was fine ?!. Reproducible in a private tab.
computers were a mistake. I'll have a look :)
on first load its <html data-theme="auto">, on reload it resolves to <html data-theme="dark">, and it seems the styling for the auto-case is broken, applying different parts of multiple .css files in a conflicting way, at least it looks like that in dev-tools?
I think I'd prefer to use systemd's built-in resource limiting to handle this and make sure everything that needs to run on the server will fit.
Of course having enough RAM for everything is nicer, but not the problem OP is trying to solve, no?
The site's css seems to be somehow broken? I see gray text on a dark background. My OS and browser are using light mode.
tried a bunch of the Color scheme choices in the drop down but none I tried made the code legible in my browser so I gave up and moved on
thank you everyone for the reports of broken code examples and apologies ! This is what happens when backend developer does websites.
I actually rebuilt the website on zola now :D The code samples are highlighted during build process and should not need JS, which hopefully makes it much more stable.
Thanks once again :)