ref: 24f55a271a56c68f664e07a6450317715ac7901b
parent: dc698553d988444777c43ef0197acd7352ca2ea2
author: 9ferno <gophone2015@gmail.com>
date: Thu Nov 10 14:42:59 EST 2022
added metrics
--- a/TODO
+++ b/TODO
@@ -13,7 +13,4 @@
make docs/mafs.ms more interesting?
test -A announce
Clean up the Iobuf locking description?
-man/mafs.4 man/mafs.8
- Add EXAMPLES
- Add mafs.pdf as a resource
Open device file in EXCL mode?
--- a/docs/mafs.ms
+++ b/docs/mafs.ms
@@ -1213,12 +1213,11 @@
Ream and start single process M[a]fs on a disk and also mount it for use.
.sp
.nf
- mount -c <{disk/mafs -s -r mafs_myservice -h 10 mydisk <[0=1]} /n/mafs_myservice
+ mount -c <{disk/mafs -s -r mafs_myservice mydisk <[0=1]} /n/mafs_myservice
.in 3n
.br
-s: use stdin and stdout for communication
-r mafs_myservice: ream the disk using mafs_myservice as the service name
- -h 10: use 10 hash buckets
mydisk: running mafs on the disk, mydisk
.in 0
.fi
@@ -1499,6 +1498,48 @@
.br
.nf
for(t in tests/test.2/blocks/^`{seq 0 39}*){ echo $t; echo '---------'; cat $t; echo }
+.fi
+.sp
+.sp
+.ft B
+Performance metrics
+.ft R
+.sp
+.nf
+ ramfs -m /n/ramfs
+ touch /n/ramfs/file
+ cat /dev/zero | tput -p > /n/ramfs/file
+ 172.49 MB/s
+ 174.56 MB/s
+ 163.50 MB/s
+ 125.00 MB/s
+ 102.99 MB/s
+ 87.81 MB/s
+ 77.78 MB/s
+ 69.50 MB/s
+ 63.71 MB/s
+ 58.65 MB/s
+ 54.72 MB/s
+ dd -if /dev/zero -of /n/ramfs/file -count 700 -bs 1m
+
+ disk/mfs -r mfs_ramfs_file /n/ramfs/file
+ mount -c /srv/mfs_ramfs_file /n/mfs_ramfs_file
+ cat /dev/zero | tput -p > /n/mfs_ramfs_file/zeros.file
+ 6.26 MB/s
+ 5.99 MB/s
+ 5.90 MB/s
+ echo halt >> /n/mfs_ramfs_file/adm/ctl; lc /srv
+ unmount /n/mfs_ramfs
+
+ disk/mafs -r mafs_ramafs_file /n/ramfs/file
+ mount -c /srv/mafs_ramafs_file /n/mafs_ramafs_file
+ cat /dev/zero | tput -p > /n/mafs_ramafs_file/zeros.file # throttles down to mfs speed
+ 45.49 MB/s
+ 31.52 MB/s
+ 23.16 MB/s
+ 24.54 MB/s
+ echo halt >> /n/mafs_ramafs_file/adm/ctl; lc /srv
+ unmount /n/ramfs
.fi
.sp
.sp