Changeset 216772 in webkit


Ignore:
Timestamp:
May 12, 2017 11:48:07 AM (7 years ago)
Author:
akling@apple.com
Message:

More aggressive memory kill limits.
https://bugs.webkit.org/show_bug.cgi?id=172037
<rdar://problem/31969082>

Reviewed by Michael Saboff.

Bring down the memory kill limits to 4GB for active processes, and 2GB for inactive.
Also make MemoryUsagePolicy::Strict kick in above 1.5GB.

  • wtf/MemoryPressureHandler.cpp:

(WTF::MemoryPressureHandler::thresholdForMemoryKill):
(WTF::thresholdForPolicy):

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r216763 r216772  
     12017-05-12  Andreas Kling  <akling@apple.com>
     2
     3        More aggressive memory kill limits.
     4        https://bugs.webkit.org/show_bug.cgi?id=172037
     5        <rdar://problem/31969082>
     6
     7        Reviewed by Michael Saboff.
     8
     9        Bring down the memory kill limits to 4GB for active processes, and 2GB for inactive.
     10        Also make MemoryUsagePolicy::Strict kick in above 1.5GB.
     11
     12        * wtf/MemoryPressureHandler.cpp:
     13        (WTF::MemoryPressureHandler::thresholdForMemoryKill):
     14        (WTF::thresholdForPolicy):
     15
    1162017-05-12  Michael Saboff  <msaboff@apple.com>
    217
  • trunk/Source/WTF/wtf/MemoryPressureHandler.cpp

    r215055 r216772  
    8080#if CPU(X86_64) || CPU(ARM64)
    8181    if (m_processState == WebsamProcessState::Active)
    82         return 16 * GB;
    83     return 4 * GB;
     82        return 4 * GB;
     83    return 2 * GB;
    8484#else
    8585    return 3 * GB;
     
    9393        return 1 * GB;
    9494    case MemoryUsagePolicy::Strict:
    95         return 2 * GB;
     95        return 1.5 * GB;
    9696    case MemoryUsagePolicy::Unrestricted:
    9797    default:
Note: See TracChangeset for help on using the changeset viewer.