Changeset 143512 in webkit


Ignore:
Timestamp:
Feb 20, 2013 3:00:43 PM (11 years ago)
Author:
dgrogan@chromium.org
Message:

IndexedDB: Limit LevelDB's max open files
https://bugs.webkit.org/show_bug.cgi?id=109993

Reviewed by Tony Chang.

LevelDB keeps up to 1000 (by default) data files open at a time to
avoid having to open() them. This has caused chromium to hit the
process-wide open file limit. This patch changes max_open_files to 20,
as that's the minimum permitted by LevelDB and we have no reason to
think that performance will suffer because of the extra open calls.

No new tests - a chromium browser test that tracks the open LevelDB
files is plausible but is blocked on http://crbug.com/177249/.

  • platform/leveldb/LevelDBDatabase.cpp:

(WebCore::openDB):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r143506 r143512  
     12013-02-20  David Grogan  <dgrogan@chromium.org>
     2
     3        IndexedDB: Limit LevelDB's max open files
     4        https://bugs.webkit.org/show_bug.cgi?id=109993
     5
     6        Reviewed by Tony Chang.
     7
     8        LevelDB keeps up to 1000 (by default) data files open at a time to
     9        avoid having to open() them. This has caused chromium to hit the
     10        process-wide open file limit. This patch changes max_open_files to 20,
     11        as that's the minimum permitted by LevelDB and we have no reason to
     12        think that performance will suffer because of the extra open calls.
     13
     14        No new tests - a chromium browser test that tracks the open LevelDB
     15        files is plausible but is blocked on http://crbug.com/177249/.
     16
     17        * platform/leveldb/LevelDBDatabase.cpp:
     18        (WebCore::openDB):
     19
    1202013-02-20  David Hyatt  <hyatt@apple.com>
    221
  • trunk/Source/WebCore/platform/leveldb/LevelDBDatabase.cpp

    r140099 r143512  
    134134    options.create_if_missing = true;
    135135    options.paranoid_checks = true;
     136    // 20 max_open_files is the minimum LevelDB allows.
     137    options.max_open_files = 20;
    136138    options.env = env;
    137139
Note: See TracChangeset for help on using the changeset viewer.