Results 1 to 7 of 7

Thread: The Linux 3.8 Kernel Can Save A Lot Of RAM

  1. #1
    Join Date
    Jan 2007
    Posts
    14,367

    Default The Linux 3.8 Kernel Can Save A Lot Of RAM

    Phoronix: The Linux 3.8 Kernel Can Save A Lot Of RAM

    For certain workloads with the Linux 3.8 kernel the physical memory usage is lowered by a significant amount thanks to improvements within this kernel that's presently under development...

    http://www.phoronix.com/vr.php?view=MTI1MTQ

  2. #2
    Join Date
    Oct 2012
    Posts
    148

    Default

    During testing I noticed big (up to 2.5 times) memory consumption overhead on some workloads (e.g. ft.A from NPB) if THP is enabled. The main reason for that big difference is lacking zero page in THP case. We have to allocate a real page on read page fault...With thp-never RSS is about 400k, but with thp-always it's 200M. After the patcheset thp-always RSS is 400k too.
    If I understand this correctly, it won't make my Firefox/Opera/Chrome take less memory...

    Still a nearly thousand-fold memory footprint reduction is quite large

  3. #3
    Join Date
    Feb 2012
    Posts
    70

    Default

    I could do with a little more RAM usage if performance is improved.

  4. #4
    Join Date
    Mar 2011
    Posts
    374

    Default

    Quote Originally Posted by mayankleoboy1 View Post
    I could do with a little more RAM usage if performance is improved.
    400k vs 200m is not a little more but 512x more. Also this shouldn't infect performance as before it simply reserved more RAM than needed. That's at least what I understand, correct me if I'm wrong.

  5. #5
    Join Date
    Jan 2012
    Location
    Moscow
    Posts
    59

    Default

    This is good news but I couldn't understand neither how exactly it achieved, nor to which configuration it applies. So I asked Google Search, and surely enough, it has spit out an explanation of how and why it works: http://lwn.net/Articles/517465/

    Still not sure to which setups it's applicable, though.

  6. #6
    Join Date
    Jan 2012
    Location
    Moscow
    Posts
    59

    Default

    Oh, and here's how to check if it's applicable to you:

    cat /proc/meminfo | grep HugePages

    If there's any memory allocated as huge pages, that patch will save memory for you. If not, this won't change anything.

    Source: http://www.kernel.org/doc/Documentat...ugetlbpage.txt

  7. #7
    Join Date
    Dec 2011
    Posts
    102

    Default

    Perhaps 3.8 can save RAM in specific situations, but I don't like the massive power cost for Intel video introduced in xf86-video-intel 2.20.12 -- i.e. keeping the GPU out of power-saving mode, supposedly to fix tearing in SandyBridge (something I and other SB users have never experienced anyway.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •