[ARVADOS] updated: 0c01dc225cf57ec886b952440abd0764a85c7a67
git at public.curoverse.com
git at public.curoverse.com
Thu May 7 16:07:49 EDT 2015
Summary of changes:
services/fuse/arvados_fuse/fusedir.py | 2 --
services/fuse/bin/arv-mount | 13 +++++++++----
2 files changed, 9 insertions(+), 6 deletions(-)
via 0c01dc225cf57ec886b952440abd0764a85c7a67 (commit)
from fa4c5476b4189798b2123c6948d18db43449329e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 0c01dc225cf57ec886b952440abd0764a85c7a67
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Thu May 7 16:07:45 2015 -0400
3198: Add --file-cache and --directory-cache to arv-mount to specify desired
cache limits.
diff --git a/services/fuse/arvados_fuse/fusedir.py b/services/fuse/arvados_fuse/fusedir.py
index 08a5168..77e8dde 100644
--- a/services/fuse/arvados_fuse/fusedir.py
+++ b/services/fuse/arvados_fuse/fusedir.py
@@ -511,8 +511,6 @@ class ProjectDirectory(Directory):
def persisted(self):
return False
- def objsize(self):
- return len(self.project_object) * 1024 if self.project_object else 0
class SharedDirectory(Directory):
"""A special directory that represents users or groups who have shared projects with me."""
diff --git a/services/fuse/bin/arv-mount b/services/fuse/bin/arv-mount
index a5f9756..5a3e021 100755
--- a/services/fuse/bin/arv-mount
+++ b/services/fuse/bin/arv-mount
@@ -12,6 +12,7 @@ import time
import arvados.commands._util as arv_cmd
from arvados_fuse import *
from arvados.safeapi import ThreadSafeApiCache
+import arvados.keep
logger = logging.getLogger('arvados.arv-mount')
@@ -46,7 +47,8 @@ with "--".
parser.add_argument('--foreground', action='store_true', help="""Run in foreground (default is to daemonize unless --exec specified)""", default=False)
parser.add_argument('--encoding', type=str, help="Character encoding to use for filesystem, default is utf-8 (see Python codec registry for list of available encodings)", default="utf-8")
- parser.add_argument('--inode-cache', type=int, help="Inode cache size (default 128MiB)", default=128*1024*1024)
+ parser.add_argument('--file-cache', type=int, help="File data cache size, in bytes (default 256MiB)", default=256*1024*1024)
+ parser.add_argument('--directory-cache', type=int, help="Directory data cache size, in bytes (default 128MiB)", default=128*1024*1024)
parser.add_argument('--exec', type=str, nargs=argparse.REMAINDER,
dest="exec_args", metavar=('command', 'args', '...', '--'),
@@ -84,9 +86,12 @@ with "--".
try:
# Create the request handler
- operations = Operations(os.getuid(), os.getgid(), args.encoding,
- arvados_fuse.InodeCache(args.inode_cache))
- api = ThreadSafeApiCache(arvados.config.settings())
+ operations = Operations(os.getuid(),
+ os.getgid(),
+ encoding=args.encoding,
+ inode_cache=InodeCache(cap=args.directory_cache))
+ api = ThreadSafeApiCache(apiconfig=arvados.config.settings(),
+ keep_params={"block_cache": arvados.keep.KeepBlockCache(args.file_cache)})
usr = api.users().current().execute(num_retries=args.retries)
now = time.time()
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list