Skip to content

Commit

Permalink
readme clarifications
Browse files Browse the repository at this point in the history
  • Loading branch information
the8472 committed Jan 27, 2017
1 parent 288b301 commit f32166f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ffcnt

Fast file counting for spinning rust in rust.
Fast file counting for spinning rust, in rust.

ffcnt's sole purpose is to provide a faster alternative to `find /some/path/ -type f | wc -l`.
It achieves that by looking up the extent map *of directories* and reordering recursion into the directory tree by the physical offset of the first extent of each directory.
Expand All @@ -12,7 +12,7 @@ This greatly reduces disk seeks.
* Linux
* A filesystem that supports the `fiemap` ioctl on directories. Otherwise no speedup over `find` will be achieved, but counting will still work. Tested with Ext4, others may work too (Feedback welcome!)

You can test support the `filefrag` utility.
You can test support the `filefrag` tool.

```
## supported
Expand Down Expand Up @@ -48,7 +48,7 @@ user 0m0.557s
sys 0m3.860s
```

Busy system with mixed read/write workload:
Busy system with mixed read/write workload. Differences in file counts arose due to writes happening in the meantime:

```
# echo 3 > /proc/sys/vm/drop_caches ; time ffcnt .
Expand All @@ -66,7 +66,7 @@ user 0m3.212s
sys 0m12.044s
```

Both tests were performed on HDDs
Both tests were performed on HDDs and the files were spread over 65536 directories with a nesting depth of 2, i.e. a branching factor of 256.


## Ideas
Expand Down

0 comments on commit f32166f

Please sign in to comment.