Slashdot Mirror


Windows Memory Manager To Introduce Compression

jones_supa writes: Even though the RTM version of Windows 10 is already out of the door, Microsoft will keep releasing beta builds of the operating system to Windows Insiders. The first one will be build 10525, which introduces some color personalization options, but also interesting improvements to memory management. A new concept is called a compression store, which is an in-memory collection of compressed pages. When memory pressure gets high enough, stale pages will be compressed instead of swapping them out. The compression store will live in the System process's working set. As usual, Microsoft will be receiving comments on the new features via the Feedback app.

13 of 231 comments (clear)

  1. Congratulations, Microsoft! by drinkypoo · · Score: 4, Informative
    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    1. Re:Congratulations, Microsoft! by SoftwareArtist · · Score: 4, Insightful

      You mean Welcome to 1990. Everything old is new again.

      --
      "I'm too busy to research this and form an educated opinion, but I do have time to tell everyone my uninformed opinion."
    2. Re:Congratulations, Microsoft! by Cafe+Alpha · · Score: 4, Interesting

      I vaguely remembered that that (or a similar product) was analyzed and it actually did nothing.

      There was code in it, but all that code was bypassed. One imagines that the programmer couldn't get it working but had to ship something - and his bosses couldn't actually tell if the driver DID anything.

  2. Re:Great by viperidaenz · · Score: 5, Insightful

    Except swapping to disk

  3. OSX in 2013. by Henriok · · Score: 5, Informative

    Welcome to 2013! as it was then compressed memory was introduced in Mac OS X.

    --

    - Henrik

    - when the Shadows descend -
    1. Re:OSX in 2013. by Lothsahn · · Score: 4, Insightful

      Awesome! I didn't even know this was in Linux. This would be really useful on my desktop downstairs!

      ...proceeds to Google "zswap linux ubuntu"
      http://askubuntu.com/questions/361320/how-can-i-enable-zswap

      Oh, so it's not enabled by default in my distro?

      According to the kernel documentation, zswap can be enabled by setting zswap.enabled=1 at boot time. Zswap is is still an experimental technology

      Oh, great, it's experimental.

      It has been enabled and disabled at various times throughout release cycles. – Ken Sharp

      Wonderful! If I turn it on, it may suddenly turn itself off when I get a kernel update for 14.04.

      You know, I often hear "Linux already has that", but it doesn't work right, isn't enabled by default on basically all distros, or isn't configured such that 99% of Linux users aren't using it. Saying you have something when it's experimental, not enabled by default, enables and disables with updates, and not easily available to the vast majority of your users is silly.

      --
      -=Lothsahn=-
    2. Re:OSX in 2013. by MSG · · Score: 5, Informative

      http://askubuntu.com/questions...

      That document is several years old now.

      Oh, so it's not enabled by default in my distro?

      It appears to be enabled currently in both Ubuntu, Fedora, and RHEL and CentOS.

      Oh, great, it's experimental.

      It was marked experimental in 2013. In the context of a discussion about a feature that hasn't even been introduced in Windows, it's fair to note that Linux developers have been working on such a feature, and made it generally available several years earlier.

      Wonderful! If I turn it on, it may suddenly turn itself off when I get a kernel update for 14.04.

      It was disabled in Ubuntu while they tried to diagnose instability in a PPC kernel. The feature was not related to the instability.

      If you don't like Ubuntu's method of kernel maintenance, by all means, use a different distribution. However, the practices of one company should not be considered a defect in *Linux*.

      Saying you have something when it's experimental, not enabled by default, enables and disables with updates, and not easily available to the vast majority of your users is silly.

      It would be, perhaps, but you have all of your facts wrong.

  4. Deja Vu all over again... by sillivalley · · Score: 4, Interesting

    Gee, an Apple product did this in the 90's, compressing memory segments assigned to processes not currently executing.
    (see, for example, https://www.usenix.org/legacy/...)

    The same product was Apple's first to use pre-emptive multitasking,

    The product? Newton.

  5. Yay! Color options by 140Mandak262Jamuna · · Score: 4, Funny

    , which introduces some color personalization options, ...

    You no longer have to put up with the blue screen of death. Now you have the option to have speckled, sparkled, opalescent, translucent, scintillating, coruscant, flourescent, effervescent blue screens of death.

    --
    sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
  6. SoftRAM *shudders* by Anonymous Coward · · Score: 4, Informative

    This seems eerily similar to what SoftRAM was trying to do in the mid-90s. Anyone remember this? "Double Your Memory!" was it's claim and in fact the tagline on the box cover. This was back when RAM cost a fortune and everyone needed more than they had in order to run Windows 95. The company made a killing... at first.

    https://en.wikipedia.org/wiki/SoftRAM

    I actually worked for them, and I saw the whole thing happen from start to finish. It was quite a wild ride. Mark Russinovich and Andrew Schulman took a particular offense to the software and set about publicly dissecting it and working feverishly to prove that it didn't work. They thought the whole thing was a scam. I personally witnessed tests that indicated it was doing exactly what it said it did - however it was difficult to prove any worthwhile effect under realistic working conditions. It seemed that the primary problem was that the program needed to reserve a chunk of memory to do it's thing, then it had to make intelligent decisions about what to put in there. If it was wrong (i.e., it compressed something that the user was going to close anyway, and the user opened a new program instead of retrieving the compressed one), the memory was wasted and overall performance (of opening the new application) was diminished. The reduction in overall memory at the outset may have been putting a strain on the system which the codec was unable to outperform. To aggravate things, the software also performed a few well-documented registry tricks to optimize the pagefile settings which led critics to claim that is indeed all that it was doing.

    The proof I saw, for example, if you made a spreadsheet with millions of 1s in each cell, then made a cell calculating the total of all the cells, with SoftRAM, the calculation would take a quarter of a second. Without SoftRAM, a ton of the data got swapped to disk and the calculation took like 30 seconds. However, as soon as you put realistic data into the spreadsheet, the improvement basically disappeared because it wasn't compressible enough with the algorithms they were using. They actually hired a very famous compression expert at the time, who liked to talk a lot and bill them at something like $350/hour or something crazy and it didn't seem to help at all.

    Eventually the company lost a class action suit and had to refund millions back to customers. They were never able to recover, despite using their wealth to acquire and improve various products. A few of the products they put out were good, like the Mac RAM management tool (though it pre-existed, and really, the company ruined the design and marketing for it), others (like BigDisk which faked your system into believing multiple disks were one volume) had problems and could be extremely dangerous if used incorrectly.

    Ahh, good times.

    1. Re:SoftRAM *shudders* by GerbilSoft · · Score: 4, Informative

      SoftRAM's problem was that it didn't actually do what it claimed to. It adjusted some parameters that improved swapping performance on Windows 3.1, but on Windows 95 it was effectively a nop, and could actually cause problems due to non-reentrant code.

  7. Windows Memory Manager by PopeRatzo · · Score: 4, Funny

    Does this mean I have to put HIMEM.SYS and EMM386.EXE back into my config.sys file? I think I still remember some of the MS-DOS edit commands.

    --
    You are welcome on my lawn.
  8. Compressed swap isn't all it's cracked up to be by Theovon · · Score: 5, Informative

    I have a Mac and have therefore had compressed swap for some time now. Theoretically, it's much faster than swap, even if you have an SSD. But there's a tradeoff. When swapping, the disk is busy, but the CPU is free to do other work, although things bog down a lot when thrashing happens. When doing compressed swap, the memory management hogs the CPU, which means it's not free to run other programs, and the system slows down. And thrashing still happens. It's just that your laptop heats up more when it's happening, and things don't get any less sluggish.

    Of course, the biggest problem is Safari. I'll get Safari Web Content processes taking up 10GB or more. There's obviously some kind of run-away memory leak going on. Always when my system bogs down, it's Safari that's taking up too much RAM. Quit Safari, and the system becomes responsive again.