Skip to content

Commit

Permalink
Add some shell commands used for load-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
centic9 committed Oct 11, 2024
1 parent 51a1a37 commit 2c0d69d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ This allows to use a Git repository a bit like IBM/Rational ClearCase dynamic vi

Note: Access is strictly read-only, no writing of new commits on branches is possible. Branches and Tags are actually implemented as symbolic links to the respective commit. The commit-directory uses the same two-byte directory-substructure like Git uses in .git/objects.


#### Change it

Implementation should be straightforward, the class `JGitFS` implements the commandline handling, `JGitFilesystem` implements the filesystem interfaces that are needed for simple read-only access as well as some caching, `JGitHelper` encapsulates access to Git, `GitUtils` are local utils for computing commits, ...
Expand All @@ -76,6 +75,14 @@ On the Git side I had heard about [JGit] and wanted to give it a try anyway, usi

Finally after some performance tuning sessions and adding some caching at the right spots I was also satisfied with the performance, naturally there is a bit of overhead but overall I am able to work with fairly large repositories without large delays, only some more CPU is used because of all the compression/format reading in JGit and this doesn't seem to be a big concern with fairly up-to-date hardware.

#### Load testing

Some scripts that might be useful for reading lots of data from the fuse filesystems:

while true;do find /fs/ > /dev/null;done

find /fs/ -type f -exec cat "{}" > /dev/null \;

#### Todos

* Only commits reachable via refs or tags are listed currently as I could not yet get JGit to return me a list of all commits, so commits which still exist, but are unreferenced currently are not visible
Expand Down

0 comments on commit 2c0d69d

Please sign in to comment.