ZRAM | A Misunderstood Linux Tool...

Поделиться
HTML-код
  • Опубликовано: 17 сен 2024

Комментарии • 27

  • @Maple-Circuit
    @Maple-Circuit  2 месяца назад +10

    I pinned a comment saying that i was wrong about ZRAM on my 2 vids with the error in it, I want to take the opportunity to, again, Thank every one of you for your feedback!

  • @HoroTW
    @HoroTW 2 месяца назад +3

    Very nice to see that you corrected this ❤ - Leave a very nice impression of you because you are openminded to learn something new 😊 thats a channel that will only keep getting better 😉
    +1 Abo 😊

  • @bobsock8718
    @bobsock8718 Месяц назад

    I've noticed that you sometimes pause briefly in your speech, and I think it might be more engaging to listen to if you could try to maintain a smoother flow.
    I've even noticed it when watching videos at 2x speed.
    Would it be possible to edit out some of those pauses using Reaper, as it might help improve the overall listening experience?

  • @drakemallard6100
    @drakemallard6100 2 месяца назад +1

    Thank you very much for this great video! If or if not using ZRam and how to configure it depends highly on your individual use case. So I am wondering if Fedoras decision to enable ZRam by default is the best way...

    • @Maple-Circuit
      @Maple-Circuit  2 месяца назад

      Using Zram by default is a safe bet, in 99% of cases, it wont change anything as out of ram situation are getting more and more rare by the day!

  • @I-use-Archbtw
    @I-use-Archbtw Месяц назад

    i used swap before when i do compiling i have 8 cores cpu 16 threads 16gb ram and was setting j16 thinking will improve performance but it dint it just make more ram used and i was running out so i had do swap 16gb but now i doing j8 its faster compiling and never OOM my point is if you OOM look whats taking up all your ram if you cant free it just buy 1 more stick of ram btw great explaining whats zram is

  • @bepstein111
    @bepstein111 2 месяца назад +1

    Great content, I was not aware of the full functionality of ZRAM before. One note for better videos in the future, it sounds like you're running out of air or trying to think of the next thing you want to say a couple times in this video, don't be afraid to do more editing around that or re-take a portion of the script, and maybe record shorter sections (most people do like a sentence or two at a time) and then just throw them back to back in your editor. I don't see many people doing this type of video, especially since Joe Collins stopped doing RUclips, and you're definitely a welcome addition to my home page!

  • @Matt2010
    @Matt2010 2 месяца назад +2

    Is damn difficult to set up though. It does work as it suggest, compressing within RAM, Just would like it it so it be easily set up-able to increase the amount to be able too, the defaults aren't always ideal and depending which distro version, not everything is there to make it easier like zram generator.

  • @ytbone9430
    @ytbone9430 2 месяца назад

    So, ZRAM can only "swap" to compressed ram, right? What if my memory is full with things that don't compress well and I need another 16GB of memory?
    I would think you also want something that swaps out to disk in an emergency situation, no? My Windows 10 machine uses both methods, 15GB of 16GB of physical memory are in use of which (only?) 230MB is compressed memory and page file usage is at 12GB of 16GB. This probably is above regular peoples memory usage, but I guess you can't really get away with ZRAM alone in day to day use (run a few browsers, virtual machines, IDEs etc.).
    I use regular swap file on my Linux machines, seems the right choice for me until there is something even better, something which combines ZRAM and the old fashioned swap to disk method - or does something exist like that for Linux? Windows does this by default, I'm not praising Windows here, just saying, never anybody needed to touch these settings on Windows I guess? I still make sure though, that pagefiles are not located on the system disk, if the system disk is a spinning drive (yes these are still around o).

    • @Maple-Circuit
      @Maple-Circuit  2 месяца назад

      Yes and no, the people who made ZRAM are really smart and provided us a way to, if the compression failed, throw it to your disk. Now, this function isn't implemented by any of the 'easy ZRAM installers' so we can promptly forget about it(; yes, 12gb of used swap sounds insane for a standard user! I wonder how you manage to use that much. If you have an SSD, swapping on the disk probably makes sense... if you're on an HDD, you should do some quick research on how to set up ZRAM with the on-disk storage (;
      PS, don't worry about the folks that can't admit where Windows got it right, I'm thinking about making videos giving props where Microsoft deserves it to laugh at their reaction (;

    • @ytbone9430
      @ytbone9430 2 месяца назад

      ​@@Maple-Circuit To get near to 32GB memory usage is easy if you do a lot of web research (hundreds of tabs), development, photos, audio and virtual machines at the same time.
      Well, I already researched the memory swap options back then, I was kind of overwhelmed and needed to make a decision. So I settled with a basic solution and not fiddle with a ton of options any longer. I had to move on with the Linux discovery and my actual goal, which was to avoid my tasks from being shutdown by the system because of low memory situations.
      There are so many other things to get working on Linux you are used to on Windows, like audio for RDP connections to a Debian machine or mounting VHDx files from an UNC path. You can spend a huge amount of time getting single bits and pieces like this to work on Linux, if you are lucky it even works (kind of)! o)
      Yes, do them videos about where Windows shines! o) There are good and better solutions in any operating system out there, people need to get to know what else is out there and maybe cross-adopt specific things. There are even nice features in old operating systems like AmigaOS e.g., some of which I miss to this day in Windows and/or Linux.
      Thank you! o)

  • @psybertao
    @psybertao Месяц назад

    I have a cheap laptop with 4gb of DDR5 and have experimented a *lot* with zram recently. Including setting up a backing store, managed via a cron launched script to set idle page flags, etc. You get a lot of control if you specifically need it for some esoteric reason.
    If you have plenty of ram, just use zram without the backing store.
    If you need a backing store then use zswap instead. It manages itself transparently, effectively, and is simpler to setup.

  • @DavidLindes
    @DavidLindes 2 месяца назад

    Interesting stuff! Thanks for sharing. Not sure if I even knew this existed (if I did, it was in the back of my brain somewhere, where maybe I'd have thought of it with the right prompting, but maybe not) before this video, and now I feel like I have enough information to make some choices about whether and when I might want to use it, and how. Cool stuff. :)

  • @themarksmith
    @themarksmith Месяц назад

    I am gland i watched this at 1.25 speed, lol - but thanks...

  • @erwynnipegerwynnipeg8455
    @erwynnipegerwynnipeg8455 2 месяца назад +3

    I love how open-minded you are! I learned a lot from this. Do you have a Discord community? :D

    • @Maple-Circuit
      @Maple-Circuit  2 месяца назад +1

      No discord for now, maybe in the future if I the channel grows enough 😉 thanks for the feedback!

  • @udirt
    @udirt 2 месяца назад

    Zram has such an interesting history, the code had to get through so much resistance you would never believe it. Dan did it, but i think it was an unfairly prolonged process.
    The original tmem / tmem2 was one of the best things in memory management ever invented.

  • @cheako91155
    @cheako91155 2 месяца назад

    I switched to zswap and have been happy. You should tweak vm overcommit ratio if you are not going to have 2X ram as swap. I don't know what else you should change, I looked into why that should be changed and the consequences of choosing the wrong value and decided 2X ram as swap is the best configuration and the only one for me.

  • @cpypcy
    @cpypcy 2 месяца назад +3

    This video would be half lenght if you can speak fluently without pausing .... after .... almost ... every ... word.

    • @nonetrix3066
      @nonetrix3066 2 месяца назад +5

      English hard to be fair

    • @ChrisStatzer
      @ChrisStatzer 2 месяца назад +2

      pony avatar.... checks out

    • @replikvltyoutube3727
      @replikvltyoutube3727 2 месяца назад +5

      Put it on 2x and it's half the length, problem solved

    • @Maple-Circuit
      @Maple-Circuit  2 месяца назад

      True, I had a very hard time with this one, normally not that much of an issue.. (; French Canadian brain XD

    • @miglespigles2025
      @miglespigles2025 2 месяца назад +1

      Want to be a little constructive here, the pauses where really frustrating to watch, I feel that you are scared or afraid and trying to be cautious with words, but makes the video normally unwatchable, be more confident! We are all here to learn!