libgocryptfs/internal/fusefrontend
gmd20 c20c7992a0 main: add "-kernel_cache" flag
This option is similar to fuse(8) kernel_cache

Verified using vmtouch.

Without -kernel_cache:

$ dd if=/dev/zero of=foo bs=1M count=10 ; vmtouch -t foo ; vmtouch foo
10+0 records in
10+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0,0242321 s, 433 MB/s
           Files: 1
     Directories: 0
   Touched Pages: 2560 (10M)
         Elapsed: 0.011159 seconds
           Files: 1
     Directories: 0
  Resident Pages: 0/2560  0/10M  0%
         Elapsed: 0.000993 seconds

With -kernel_cache:

$ dd if=/dev/zero of=foo bs=1M count=10 ; vmtouch -t foo ; vmtouch foo
10+0 records in
10+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0,0244015 s, 430 MB/s
           Files: 1
     Directories: 0
   Touched Pages: 2560 (10M)
         Elapsed: 0.011564 seconds
           Files: 1
     Directories: 0
  Resident Pages: 2560/2560  10M/10M  100%
         Elapsed: 0.000369 seconds
2020-12-20 09:55:04 +01:00
..
args.go main: add "-kernel_cache" flag 2020-12-20 09:55:04 +01:00
ctlsock_interface.go v2api: implement ctlsocksrv.Interface 2020-07-17 22:14:40 +02:00
dircache.go dircache: increase cache size & lifetime 2020-05-17 21:37:36 +02:00
file_allocate_truncate.go v2api: rename "File2" to just "File" 2020-08-16 12:50:33 +02:00
file_api_check.go v2api: clean up api TODOs 2020-08-16 13:52:27 +02:00
file_holes.go v2api/reverse: implement Lseek 2020-08-16 19:58:47 +02:00
file_setattr.go v2api: rename "File2" to just "File" 2020-08-16 12:50:33 +02:00
file.go syscallcompat: don't retry Close() 2020-10-14 13:40:12 +02:00
node_api_check.go v2api: implement Getxattr, Setxattr, Removexattr, Listxattr 2020-07-14 19:55:20 +02:00
node_dir_ops.go syscallcompat: retry ops on EINTR 2020-10-14 00:35:16 +02:00
node_helpers.go v2api: move helpers from node.go to node_helpers.go 2020-08-01 19:26:42 +02:00
node_xattr_darwin.go v2api: add Darwin xattr support 2020-09-09 11:17:19 +02:00
node_xattr_linux.go v2api: implement Getxattr, Setxattr, Removexattr, Listxattr 2020-07-14 19:55:20 +02:00
node_xattr.go fusefronted: reject GETXATTR "security.capability" 2020-10-18 21:07:30 +02:00
node.go main: add "-kernel_cache" flag 2020-12-20 09:55:04 +01:00
openbackingdir_test.go v2api: implement Getxattr, Setxattr, Removexattr, Listxattr 2020-07-14 19:55:20 +02:00
root_node.go syscallcompat: retry ops on EINTR 2020-10-14 00:35:16 +02:00
xattr_unit_test.go v2api: implement Getxattr, Setxattr, Removexattr, Listxattr 2020-07-14 19:55:20 +02:00