[prev in list] [next in list] [prev in thread] [next in thread] 

List:       subversion-commits
Subject:    svn commit: r1721285 - /subversion/trunk/subversion/libsvn_fs_fs/caching.c
From:       stefan2 () apache ! org
Date:       2015-12-22 0:27:50
Message-ID: 20151222002750.773983A0051 () svn01-us-west ! apache ! org
[Download RAW message or body]

Author: stefan2
Date: Tue Dec 22 00:27:50 2015
New Revision: 1721285

URL: http://svn.apache.org/viewvc?rev=1721285&view=rev
Log:
Make the directory cache in FSFS accept 4x larger objects than before.

Directory data, especially when it is large, needs to be cached at almost
any cost because of its big-O impact on various request execution times.
The membuffer cache will accept larger objects (~65% instead of ~15% of
the cache size) only when they are given above-average priority.

* subversion/libsvn_fs_fs/caching.c
  (svn_fs_fs__initialize_caches,
   svn_fs_fs__initialize_txn_caches): Directory data is high-prio.

Modified:
    subversion/trunk/subversion/libsvn_fs_fs/caching.c

Modified: subversion/trunk/subversion/libsvn_fs_fs/caching.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/caching.c?rev=1721285&r1=1721284&r2=1721285&view=diff
 ==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/caching.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/caching.c Tue Dec 22 00:27:50 2015
@@ -438,7 +438,7 @@ svn_fs_fs__initialize_caches(svn_fs_t *f
                        svn_fs_fs__deserialize_dir_entries,
                        sizeof(pair_cache_key_t),
                        apr_pstrcat(pool, prefix, "DIR", SVN_VA_NULL),
-                       SVN_CACHE__MEMBUFFER_DEFAULT_PRIORITY,
+                       SVN_CACHE__MEMBUFFER_HIGH_PRIORITY,
                        has_namespace,
                        fs,
                        no_handler,
@@ -850,7 +850,7 @@ svn_fs_fs__initialize_txn_caches(svn_fs_
                        svn_fs_fs__deserialize_dir_entries,
                        APR_HASH_KEY_STRING,
                        prefix,
-                       0,
+                       SVN_CACHE__MEMBUFFER_HIGH_PRIORITY,
                        TRUE, /* The TXN-ID is our namespace. */
                        fs,
                        TRUE,


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic