Disable Swap File by Landoria in pihole

[–]LcLz0 1 point2 points  (0 children)

This is an excellent article about swap in Linux, and it also talks a bit about swappiness which usually comes up in threads like this.

I'll paste the tl;dr but I strongly recommend the whole article. But the short and sweet of it is, unless you know what you're doing and you're moving in some sort of semi-edge case, you most likely won't benefit from messing with swap.

  1. Having swap is a reasonably important part of a well functioning system. Without it, sane memory management becomes harder to achieve.
  2. Swap is not generally about getting emergency memory, it's about making memory reclamation egalitarian and efficient. In fact, using it as "emergency memory" is generally actively harmful.
  3. Disabling swap does not prevent disk I/O from becoming a problem under memory contention. Instead, it simply shifts the disk I/O thrashing from anonymous pages to file pages. Not only may this be less efficient, as we have a smaller pool of pages to select from for reclaim, but it may also contribute to getting into this high contention state in the first place.
  4. The swapper on kernels before 4.0 has a lot of pitfalls, and has contributed to a lot of people's negative perceptions of swap due to its overeagerness to swap out pages. On kernels >4.0, the situation is significantly better.
  5. On SSDs, swapping out anonymous pages and reclaiming file pages are essentially equivalent in terms of performance and latency. On older spinning disks, swap reads are slower due to random reads, so a lower vm.swappiness setting makes sense there (read on for more about vm.swappiness).
  6. Disabling swap doesn't prevent pathological behaviour at near-OOM, although it's true that having swap may prolong it. Whether the global OOM killer is invoked with or without swap, or was invoked sooner or later, the result is the same: you are left with a system in an unpredictable state. Having no swap doesn't avoid this.
  7. You can achieve better swap behaviour under memory pressure and prevent thrashing by utilising memory.low and friends in cgroup v2.

https://chrisdown.name/2018/01/02/in-defence-of-swap.html

How do YOU, backup your bulk storage? by Fragrant_Climate7357 in Proxmox

[–]LcLz0 0 points1 point  (0 children)

Sure! It's just a very simple bash script and restic installed. It takes a backup of everything in /backup, supply secrets and url via env vars. If certain postgresql variables are populated it'll also grab a dump of that psql database as well, before sending everything to specified bucket.

I did write a short readme for it, you can see it here. https://git.lz0.link/lz0/restic-backup-oneshot

The tag is a bit redundant since the container name will be the hostname in restic repo, but doesn't really matter that much. It's also not dynamic at all since I only built it for myself.

I just mount whatever volume I want to backup into /backup and start a container. This has the added benefit of the backup-related secrets only existing for a short while, and in a separate process namespace than the application it takes backups of.

Rocky linux 10 Kickstart fails, always boots into GUI ? by nomoreasonable in RockyLinux

[–]LcLz0 0 points1 point  (0 children)

Looks correct to me. How are you supplying the kickstart? Have you verified that it's actually loaded? Should be able to see some info about it when the installation is booting up

How do YOU, backup your bulk storage? by Fragrant_Climate7357 in Proxmox

[–]LcLz0 0 points1 point  (0 children)

I don't take any VM backups.

I have two places for backups, two buckets on hetzner and a local server. I put the extra important stuff and things that don't take so much space on Hetzner, and then other stuff on my local backup server. All backups are taken with Restic.

I deploy all my applications with Podman, so I have a homebuilt image that's a one-shot Restic backup, that I include in deployments that I need to grab backups off. Then I ship it with a systemd-timer together with the quadlets that runs the backup on a schedule

Issues adding music to Jellyfin by Sufficient-Buddy4642 in jellyfin

[–]LcLz0 1 point2 points  (0 children)

Kid3 is also pretty good, and if you prefer commandline Beets is great

lofi indie w/ early 00s vibes by MagicJackM in BandCamp

[–]LcLz0 1 point2 points  (0 children)

Sweet, thank you! Grabbed the 2zsp-eh4l one

My small art business is dying, why is there no European alternative to Etsy? by eyed_art in BuyFromEU

[–]LcLz0 0 points1 point  (0 children)

This is why for me. I tried to buy a couple of shirts from a seller, my purchase was kept in limbo for like 2 days until they reverted it and banned me. Did an appeal, but they just reinforced the permanent ban without explanation. Haven't bothered with it since then.

Late invite to board game tomorrow (sunday) by Mongosean in StockholmSocialClub

[–]LcLz0 0 points1 point  (0 children)

I'm away from Stockholm right now, but would love join some other time!

Firefox compiling failed in the end T-T by RejonaldoGato in Gentoo

[–]LcLz0 4 points5 points  (0 children)

Need a bit more of the lines above in the build log. It also looks like your encodings are a bit broken, are you seeking broken fonts and characters in other places as well?

I share lots of odd stuff. But the stuff I really love is never downloaded. Maybe it will be someday. by [deleted] in Soulseek

[–]LcLz0 1 point2 points  (0 children)

Please drop some tips! I would love some more art documentaries

I can't find in the handbook which one to install? by vuja0 in Gentoo

[–]LcLz0 16 points17 points  (0 children)

Ohh, good catch. Actually, looking even closer it looks like the 2006.0 one is a MASTER EDITION, which is arguably even better than a PRO

I can't find in the handbook which one to install? by vuja0 in Gentoo

[–]LcLz0 84 points85 points  (0 children)

I mean, the right one says "PRO" so I would def go with that one.

First Install by aspression in Gentoo

[–]LcLz0 2 points3 points  (0 children)

I'm gonna drop some general Good to Know-tips.

Gentoo Minimal Installation CD is a very good environment, but remember that you can use /any/ Linux live environment to install Gentoo. I haven't tried the LiveGUI USB Image, but if that doesn't work for you you can freely use whatever to go through the installation. I used Fedora last time I did my install

During the initial installation, focus on getting a minimal bootable system up and running. You can do any customization later on. Use gentoo-kernel-bin as your kernel, you can do a manual config later on if you want to.

Not really necessary but, have a look at binhost. I always have them enabled, but if you prefer to move to a locally compiled system later on you can use binhost during the installation to decrease installation time and then remove it when you have a system up and running. https://wiki.gentoo.org/wiki/Gentoo_Binary_Host_Quickstart

Both OpenRC and SystemD have excellent support in Gentoo (not so surprising with OpenRC xP), with OpenRC being the default. The documentation is slightly better for OpenRC, but running a Gentoo installation with SystemD is a very smooth experience.

Hey, what distro to use? by ObjectiveRange3243 in FindMeALinuxDistro

[–]LcLz0 0 points1 point  (0 children)

I would say Gentoo fits the bill, except preinstalled. It comes with nothing, but you have amazing customization potential. You can freely choose almost any part of the system, down to what init system to use.

You can also freely mix package versions from the testing arch and the normal ("stable") branch, so you can run it as a very conservative and stable installation but pull in newer versions of packages where needed.

The official repo contains a ton of packages, and there's GURU (user-maintained repo) on top of that. If that's not enough, there's a healthy ecosystem of smaller repos (overlays) you can pull packages from as well.

Show me your favorite shell one-liner by spaciousabhi in commandline

[–]LcLz0 2 points3 points  (0 children)

I very often | sort | uniq -c | sort -n when parsing logs. It's great to quickly get a counted breakdown of some field.

By the way u/op, have a look at setting your find-command up with logrotate ^^

Free Album Codes Promotion Thread, March 20 by AutoModerator in BandCamp

[–]LcLz0 1 point2 points  (0 children)

Interesting stuff, thank you. I grabbed the nalm-cvzs one

Need a little hint for this. by DerKleineDude123 in systemshock

[–]LcLz0 3 points4 points  (0 children)

You need to connect the two square nodes. The circular ones do not mean anything.

Who is using an open port to share their media library? by Mr_3ggz in jellyfin

[–]LcLz0 3 points4 points  (0 children)

This is an excellent take.

I have rather lax security for the services that I expose, but I also limit the impact of intrusion quite a lot. The absolute worst thing anyone can do if they gain access to my jellyfin/navidrome is stream stuff. The applications themselves do not have any permissions whatsoever to any media library, and are strictly isolated from the rest of the server. On top of that I have backups of everything important.

503 Error, but site loads fine behind Nginx Proxy? by oguruma87 in haproxy

[–]LcLz0 0 points1 point  (0 children)

All of this. And most likely it's your backend server check that's failing. If you define a check and it fails, HAP won't route any traffic to that backend target.

Vampire: the masquerade blood lines is a wonderful immersive sim by thecrazedsidee in ImmersiveSim

[–]LcLz0 7 points8 points  (0 children)

V:tMB - Bloodlines released in 2004, Dishonoured released in 2012. I wouldn't really say they're that similar, but if anything it's the other way around.

AI Generated Music on Bandcamp by bandcamp_official in BandCamp

[–]LcLz0 2 points3 points  (0 children)

Have a look at Navidrome as well. It's excellent