• 1 Post
  • 238 Comments
Joined 2 years ago
cake
Cake day: March 22nd, 2024

help-circle

  • Lemmy and Piefed need a “subcommunity” structure to get that ball rolling IMO.

    EG you may have an overarching “sports” community, and in layers:

    sports -> basketball -> NBA -> team

    • So if your team sub was kinda dead, you could browse /c/NBA or /c/basketball and get a wider feed of other teams.

    • Similarly, you could mark non-spammy posts to “filter up” to the higher communities that accept it. So you make a post in your team community, and folks browsing basketball might see it, depending on their settings.

    Permissions would be granular to set this up, consensual for both the “upper” and “lower” communities.

    I’ve written this up as a more general proposal ti help niche communities, but have yet to put it on the development gits as a feature request.








  • Oh yeah… yeah, it doesn’t seem like it’s client/server or anything. It’s just a CAD program?

    Doesn’t fit this at all.

    I dunno if it fits the “vibe coded” label though, as it appears to work well. I tend to apply that to quick hacks, or to projects where the devs clearly have no idea what they’re doing (and end up with something really bloated and janky, yet hyped a ton).



  • I mean… it’s an issue. OP’s system is swapping the SSD when it clearly should not be doing it. My system had horrible usability issues in some scenarios without a lot of reconfiguration, and thrashed my SSD for no benefit.

    The default heuristic is not good for our systems, and OP’s situation is a pretty common scenario. That’s a fact. How is that not an issue?

    And support for TRIM and whatever else was added for SSD support is not really the issue, here. That’s working fine.


  • I disagree with most here.

    You need to reduce swappiness even more, and tweak some other variables (like the memory “threshold” Linux starts to swap, and disk cache aggressiveness) to stop Linux from swapping so opportunistically under such a light load.

    IMO, Linux is configured for “old” systems by default: slow HDDs, and constrained RAM pools, where disk IO really, really needs caching, and where idle background processes take a large fraction of RAM.

    You have superfluous RAM for your workload. And very fast disk IO that isn’t such a hindrance to apps anyway. And a disk you don’t want to wear. This is the opposite scenario: you don’t want Linux to swap unless it absolutely has to.

    For reference, this is part of my config. It’s rather niche and you probably shouldn’t use it, but you should consider looking up the variables:

    # Keep min reserve reasonable for 8GB usable space
    vm.min_free_kbytes = 262144        # Lower absolute minimum to 256MB
    
    vm.watermark_scale_factor = 10     # Lower to 0.1% (which is ~128MB on 128GB)
    
    # Disable watermark boosting completely
    vm.watermark_boost_factor = 0
    
    # Normal-ish metadata pressure so desktop doesn't stutter on disk reads
    vm.vfs_cache_pressure = 120
    
    # Allow reasonable swapping of inactive anonymous desktop pages, could be lower
    vm.swappiness = 10
    
    # Dirty bytes limits to limit caching
    vm.dirty_background_bytes = 67108864
    vm.dirty_bytes = 268435456
    
    # Disable compaction & proactive scans to stop freezing with large portions of RAM mlocked
    vm.compaction_proactiveness = 0
    vm.compact_unevictable_allowed = 0
    
    vm.page-cluster = 0 # 4kb pages for SSD
    

    My system still uses RAM as disk cache with this config, it just won’t go out of its way to swap just to keep that cache, especially I lower swappiness to 1-3.

    I also have a 1GB zram pool, prioritized over ssd swap. But you should make yours even larger (maybe 4GB?). This will intercept anything that does swap first.

    I also start some applications with systemd-run and specify memory caps and swap limits (often forbidding them from swapping entirely).

    It makes a night-and-day difference for some workloads on my system, that would otherwise swap pointlessly, just tank performance and even de-stabilize the system.








  • I don’t know why you’re being so thorny.

    And why would I ever got back to Twitter or Reddit? They’re cesspools. What would make you think I’d ever touch them?

    …This is exactly what I’m talking about. Its like if I don’t pass a political purity test, if I am not X level of explicit or hostile in every single post, I’m the enemy. Because apparently I’m not good enough for lemmy.