Announcement

Collapse
No announcement yet.

Fedora Workstation 33 Aiming To Have SWAP-On-ZRAM By Default

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Hello dear fedora developers,
    I'm going ultra OT because my cat-like curiosity makes me wonder how is Stratis doing.
    Thanks for all your work and the eventual heads up

    Comment


    • #32
      Originally posted by skeevy420 View Post

      I still use HDDs. More storage for less money. A reboot cycle is faster than multiple GBs to and from a spinner.
      Err.. then yeah reboot. I would reboot over hibernate since on an SSD it's only around 10 seconds(half of that is just UEFI. Only reason for hibernating for me is because the memory contents is of value and I really don't want to lose my unsaved state. Eg if I've got a browser open and have some tabs with stuff highlighted that I need to get back to later and write some notes about, or I've got something else that isn't in a position for saving it's state at the time for whatever reason.

      Some times it's state that is not easily restorable, eg I have 10 Chrome windows open on a few virtual desktops, and perhaps a code editor instance on two of those. A reboot with the ability to restore a session of those windows only goes so far, it fails to relocate the windows to their virtual desktops, and need to be moved/sorted again. Or my terminal instances, if I've got several windows/tabs open, once I reboot, all history is the same for each of them, not unique to the activity I was using it for. Hibernation or Suspend is great for that.

      Comment


      • #33
        Originally posted by Britoid View Post
        It's gone now, it got replaced because Windows is very good at hibernation and session restore.
        LMAO, now that's funny! Mac OSX is great at hibernate and restore. Linux, when properly configured, is also quite good at hibernate and restore. Windows - and I've had a work laptop with every version in the past 20 years - has been horrible abysmal utter garbage when it comes to either suspend OR hibernate. Actually, it's just the "restore" part that Microsoft seems to have never got working quite right. Even my latest Win10 laptop work issued me just a few months ago can't do it right... and over the years I've had Dell, HP, IBM, Compaq, Toshiba, doesn't matter who makes it. Ugh, I get pissed off just thinking about how awful Windows is at suspend or hibernate, and how many hours of productivity I've lost because of it.
        Last edited by torsionbar28; 26 January 2020, 11:47 PM.

        Comment


        • #34
          Originally posted by Britoid View Post

          You can usually hibernate successfully with less swap than available RAM, the kernel will attempt to compress and fit the used memory into the available swap space.
          as from the posts in the following pages, Linux doesn't compress the hibernation data
          Originally posted by Britoid View Post
          It's gone now, it got replaced because Windows is very good at hibernation and session restore.
          Windows 7 and up compress hibernation data, so it's very fast to shutdown

          Originally posted by skeevy420 View Post

          The problem with the first option is, at least the last time I tried anyways, a full reboot cycle was faster than just going into hibernation, let alone restoring it.
          Things will be different if your work involves heavy programs that load slowly. For example it'll be much faster hibernating than saving your current video editing project → reboot → reload the video editor → reopen the project

          Originally posted by polarathene View Post

          Windows hibernation exists? I thought it does hybrid sleep now, so it suspends to RAM for resume, but can write to disk for hibernation. Regular suspend to RAM(S3) also gets phased out for Suspend to Low Power Idle (S0ix), which if implemented well lets s2idle go into power efficient states but still allow for some other hardware to be a bit awake, like wifi, they call it Modern Standby?
          Hybrid sleep is a different feature, and it's turned off by default. Normally when people talk about hibernation, they mean selecting the "hibernation" option in the shutdown menu and not hybrid sleep which is still a sleep and the PC continues to run without shutting down, and hibernation is also disabled by default since Windows 8 because hybrid boot makes it much faster to start up

          Comment


          • #35
            Originally posted by skeevy420 View Post

            I still use HDDs. More storage for less money. A reboot cycle is faster than multiple GBs to and from a spinner.
            of course HDDs will continue to be cheap for the foreseeable future, but a small cheap SSD plus a big HDD is a far better investment. I had a laptop with 32GB SSD as cache, and when I tried to install Windows to that tiny SSD (with compact OS enabled), the machine became far more responsive than ever. SSD has magnitudes better access time (ns vs ms) and IOPS (~50k-500k IOPS vs ~50-150 IOPS). Those are more important during booting and program start up than mere linear read/write performance. That's why MS has ReadyBoost that uses USB flash drives for boosting performance because they have good access time, even though they have very slow read/write speeds

            Originally posted by starshipeleven View Post
            I also personally think compressed swap isn't particularly relevant in this day and age where 512GB SSDs are getting cheap
            It is still relevant nowadays. Have you ever actually tried zram? I've enabled it on various old laptops with 1 or 2GB RAM and the result is noticeably better. Or just try it in a VM running on SSD with low RAM and see. Windows 10 and macOS also have similar page file compression feature. Lubuntu, ChromeOS and many other Linux distros have already enabled zram by default for a long time
            The reason is because CPUs can compress memory even far faster than the modern SSDs can achieve. See the benchmark on the LZ4 repo. Many more modern tools have already switched to LZ4 or Zstd due to their speed advantage. Later Windows versions also compress hibernation data, which results in much faster hibernation and restoration

            Windows XP further improved support for hibernation.[8] Hibernation and resumption are much faster as memory pages are compressed using an improved algorithm; compression is overlapped with disk writes, unused memory pages are freed and DMA transfers are used during I/O

            https://en.wikipedia.org/wiki/Hibern...rosoft_Windows

            Comment


            • #36
              Typical discussion. Turning the cat's tail.

              A lot about m$ windows, even more about something that is not part of Linux - ZFS, about hibernation, about zswap but nothing about the swap in zram.

              Comment


              • #37
                Originally posted by phuclv View Post
                as from the posts in the following pages, Linux doesn't compress the hibernation data
                Apparently missed that first time I saw your post. See my comment end of page 1, linux can compress hibernation data and should do by default. Anything else written to swap though is uncompressed afaik.

                Comment

                Working...
                X