Michael Vrable [Sun, 14 Feb 2010 22:56:22 +0000 (14:56 -0800)]
Add John MucCullough's simple key/value storage server.
Michael Vrable [Fri, 5 Feb 2010 21:40:33 +0000 (13:40 -0800)]
Do not drop data from cache immediately after a write.
Michael Vrable [Fri, 5 Feb 2010 21:23:06 +0000 (13:23 -0800)]
Add very rudimentary eviction data blocks from the cache.
Michael Vrable [Fri, 5 Feb 2010 01:14:12 +0000 (17:14 -0800)]
Hook synthetic NFS client into test script.
Michael Vrable [Fri, 5 Feb 2010 00:34:50 +0000 (16:34 -0800)]
Fix for file storage backend.
Michael Vrable [Fri, 5 Feb 2010 00:03:25 +0000 (16:03 -0800)]
Make storage backend selectable via environment variable.
Michael Vrable [Thu, 4 Feb 2010 22:19:10 +0000 (14:19 -0800)]
Allow NFS lookup requests to better proceed in parallel.
After doing a directory lookup, drop the directory lock before fetching the
file inode.
Michael Vrable [Thu, 4 Feb 2010 19:36:13 +0000 (11:36 -0800)]
Update synthetic RPC client to record timing.
For now, both it and readbench and effectively testing the time to look up
an inode, which should be a single fetch from S3.
Michael Vrable [Wed, 3 Feb 2010 23:17:34 +0000 (15:17 -0800)]
.gitignore fix.
Michael Vrable [Wed, 3 Feb 2010 22:01:19 +0000 (14:01 -0800)]
Work on a client for generating a synthetic stream of NFS operations.
This should provide another means of testing performance in addition to the
kernel NFS client.
Michael Vrable [Wed, 3 Feb 2010 00:01:43 +0000 (16:01 -0800)]
.gitignore updates.
Michael Vrable [Tue, 2 Feb 2010 22:23:18 +0000 (14:23 -0800)]
Add microbenchmarks to build system.
Michael Vrable [Tue, 2 Feb 2010 21:04:52 +0000 (13:04 -0800)]
Add scripts for automatically testing reads at different settings.
Michael Vrable [Tue, 2 Feb 2010 20:29:20 +0000 (12:29 -0800)]
Create a runtime option for sync/async frontend request handling.
Michael Vrable [Mon, 1 Feb 2010 17:38:25 +0000 (09:38 -0800)]
SIGUSR1 causes nfsd to dump filesystem state now for debugging.
Michael Vrable [Fri, 29 Jan 2010 22:20:41 +0000 (14:20 -0800)]
Work on a parallel read benchmark.
Michael Vrable [Fri, 29 Jan 2010 22:18:44 +0000 (14:18 -0800)]
Leak cleanup.
Michael Vrable [Thu, 28 Jan 2010 23:15:14 +0000 (15:15 -0800)]
Fix a deadlock and a few memory leaks.
Michael Vrable [Thu, 28 Jan 2010 20:53:16 +0000 (12:53 -0800)]
Add inode prefetching support in NFS readdirplus.
Michael Vrable [Thu, 28 Jan 2010 19:50:07 +0000 (11:50 -0800)]
Finish up asynchronous inode loading.
Michael Vrable [Thu, 28 Jan 2010 18:56:11 +0000 (10:56 -0800)]
Let storage tuning options be set via environment variables.
This should make benchmarking runs easier.
Michael Vrable [Thu, 28 Jan 2010 01:06:04 +0000 (17:06 -0800)]
Switch to CTR instead of CBC mode for encryption.
This should handle arbitrarily messages better. Later we ought to switch
to something like EAX, so consider this change temporary.
Michael Vrable [Wed, 27 Jan 2010 22:13:43 +0000 (14:13 -0800)]
Support for sync operations on an inode.
Michael Vrable [Wed, 27 Jan 2010 19:49:59 +0000 (11:49 -0800)]
Flush file blocks to storage before the inode.
Otherwise, some blocks might not have been assigned a name and so
seriaizing the inode will lose data.
Michael Vrable [Tue, 26 Jan 2010 22:58:06 +0000 (14:58 -0800)]
Ensure a reference to an async is held while it is locked.
Fixes a crash (assertion failure) with barriers where the barrier was
deallocated while it was still locked.
Michael Vrable [Tue, 26 Jan 2010 22:57:52 +0000 (14:57 -0800)]
Clean up logging in storage layer.
Michael Vrable [Tue, 26 Jan 2010 19:16:11 +0000 (11:16 -0800)]
Some changes to support asynchronous fetching of inodes.
Not 100% done yet, but almost there.
Michael Vrable [Tue, 26 Jan 2010 02:31:07 +0000 (18:31 -0800)]
Implement multi-threaded request processing and locking for NFS.
Michael Vrable [Mon, 25 Jan 2010 18:18:17 +0000 (10:18 -0800)]
Inodes are clean immediately after being read from storage.
Michael Vrable [Mon, 25 Jan 2010 03:37:45 +0000 (19:37 -0800)]
NFS cache writeback is now invoked periodically by a timer.
Previously we didn't have timers set up and simply called the writeback
code after each operation (which could mean writeback wasn't invoked for
long stretches of time).
Michael Vrable [Mon, 25 Jan 2010 03:22:38 +0000 (19:22 -0800)]
Bluesky core initializes a fresh filesystem, so no need to do so in nfsd.
Michael Vrable [Mon, 25 Jan 2010 01:35:14 +0000 (17:35 -0800)]
Properly decrement inode refcounts when finishing a request.
Track each refcount increase made, and when the request is finally replied
to, drop those references. In a few cases we manually drop references, but
this should be less error-prone if there are multiple possible return
paths.
Michael Vrable [Fri, 22 Jan 2010 05:19:31 +0000 (21:19 -0800)]
Add a warning to catch possible refcounting bugs.
Not actually needed (was added to track down the corruption fixed in the
last changeset, which was unrelated), but probably worth keeping around.
Michael Vrable [Fri, 22 Jan 2010 05:18:05 +0000 (21:18 -0800)]
Fix a nasty bug in the decryption code.
This was a typo but it led to various types of memory corruption; after
decrypting the returned string was marked as being larger than it should
have been--also meaning that the last bytes in the buffer were off in
unallocated space.
Michael Vrable [Thu, 21 Jan 2010 00:11:34 +0000 (16:11 -0800)]
Track time to process each NFS RPC received.
Michael Vrable [Wed, 20 Jan 2010 23:59:10 +0000 (15:59 -0800)]
Add support for dumping filesystem state for debugging purposes.
Michael Vrable [Thu, 14 Jan 2010 22:02:36 +0000 (14:02 -0800)]
Remove some debugging messages.
Michael Vrable [Thu, 14 Jan 2010 00:12:30 +0000 (16:12 -0800)]
Eliminate last static buffer in async_rpc_send_reply.
Michael Vrable [Wed, 13 Jan 2010 19:53:01 +0000 (11:53 -0800)]
Remove most static variables in the NFS server functions.
Michael Vrable [Wed, 13 Jan 2010 19:35:23 +0000 (11:35 -0800)]
Continuing rework for async RPC.
Now NFS server functions are responsible for sending a reply to the client
instead of returning a result to the RPC dispatch routine. This will
allows the server functions to handle memory cleanup (instead of requiring
static data) and allows returns to be decoupled in time from when the
request arrives.
There is still some static data to clean up, but this moves us much closer
to allowing multiple requests in progress at once.
Michael Vrable [Wed, 13 Jan 2010 19:24:31 +0000 (11:24 -0800)]
More async RPC work.
Michael Vrable [Wed, 13 Jan 2010 19:05:39 +0000 (11:05 -0800)]
More cleanups to move RPC layer towards being asynchronous.
Michael Vrable [Wed, 13 Jan 2010 19:04:27 +0000 (11:04 -0800)]
Fix for a segfault when resizing files.
If we only have a reference to a file block but have not read it in, we
don't actually know the size. We maybe ought to have a better fix for this
later.
Michael Vrable [Wed, 13 Jan 2010 04:23:54 +0000 (20:23 -0800)]
RPC header file cleanup.
Preparation for further reworking of the RPC system.
Michael Vrable [Tue, 12 Jan 2010 21:44:02 +0000 (13:44 -0800)]
Rewrite NFS RPC dispatching.
The rpcgen-provided dispatching is inflexible, only allowing for a single
request to be handled at a time. Rewrite it (add our own reading of RPC
packets off a TCP socket, calls to XDR decoding/encoding, etc.) so that we
can eventually support multi-threaded and asynchronous handling of
messages.
Michael Vrable [Mon, 11 Jan 2010 22:50:10 +0000 (14:50 -0800)]
Quick tool for benchmarking write latency.
Michael Vrable [Mon, 11 Jan 2010 22:29:00 +0000 (14:29 -0800)]
Add a new option to make caching writethrough instead of writeback.
Michael Vrable [Thu, 7 Jan 2010 00:29:16 +0000 (16:29 -0800)]
Implement fsstat.
We don't return values that are very useful since there is no real size of
the filesystem to report, but do implement the procedure.
Michael Vrable [Thu, 7 Jan 2010 00:05:25 +0000 (16:05 -0800)]
Improve NFS readdirplus to estimate response sizes.
It should now give a response closer to, but not larger than, the requested
size.
Michael Vrable [Wed, 6 Jan 2010 19:03:15 +0000 (11:03 -0800)]
Work on NFS rmdir operation.
Michael Vrable [Wed, 6 Jan 2010 18:50:57 +0000 (10:50 -0800)]
Mostly-working NFS rename support.
Michael Vrable [Wed, 6 Jan 2010 18:20:38 +0000 (10:20 -0800)]
Silence some compiler warnings.
Michael Vrable [Tue, 29 Dec 2009 05:53:11 +0000 (21:53 -0800)]
Preliminary NFS readdirplus support (not yet entirely to spec).
Michael Vrable [Tue, 29 Dec 2009 05:35:58 +0000 (21:35 -0800)]
Include post-opeation file attributes for the NFS write operation.
Michael Vrable [Tue, 29 Dec 2009 04:56:17 +0000 (20:56 -0800)]
Calculate size of symlinks.
Michael Vrable [Mon, 28 Dec 2009 06:32:07 +0000 (22:32 -0800)]
Fix up logic for handling short data blocks.
This fixes a crash when there are writes that are not a multiple of the
block size.
Michael Vrable [Mon, 28 Dec 2009 04:49:53 +0000 (20:49 -0800)]
Preliminary symlink/readlink support.
Attributes on symlinks are not yet properly set.
Michael Vrable [Mon, 28 Dec 2009 01:13:45 +0000 (17:13 -0800)]
NFS link operation.
Michael Vrable [Mon, 28 Dec 2009 00:23:33 +0000 (16:23 -0800)]
Minor cleanups.
Michael Vrable [Sat, 12 Dec 2009 23:41:08 +0000 (15:41 -0800)]
Re-enable file and memory storage backends.
Michael Vrable [Wed, 9 Dec 2009 19:34:11 +0000 (11:34 -0800)]
Track when cached file data is written out.
Michael Vrable [Mon, 7 Dec 2009 23:24:21 +0000 (15:24 -0800)]
More work on writeback caching.
Michael Vrable [Sun, 6 Dec 2009 18:02:13 +0000 (10:02 -0800)]
Initial work on proper writeback caching.
Michael Vrable [Thu, 3 Dec 2009 21:41:15 +0000 (13:41 -0800)]
Drop some debugging messages.
Michael Vrable [Wed, 2 Dec 2009 23:21:10 +0000 (15:21 -0800)]
A few bugfixes to the storage barrier support.
Michael Vrable [Tue, 1 Dec 2009 21:39:42 +0000 (13:39 -0800)]
Work on a storage barrier operation.
The barrier completes when all of a set of operations has completed.
Michael Vrable [Sun, 29 Nov 2009 19:47:51 +0000 (11:47 -0800)]
Some initial work to support delayed flushing of data.
Michael Vrable [Tue, 24 Nov 2009 21:18:50 +0000 (13:18 -0800)]
More work on synchronous/asynchronous operations.
Allow operations to be made synchronous for benchmarking, and add in a
storage-wide sync() call.
Michael Vrable [Mon, 23 Nov 2009 03:42:47 +0000 (19:42 -0800)]
Minor cleanup.
Michael Vrable [Sun, 22 Nov 2009 21:09:54 +0000 (13:09 -0800)]
Add reference counting to asynchronous storage operations.
Michael Vrable [Fri, 20 Nov 2009 04:33:55 +0000 (20:33 -0800)]
Rework the storage interface so that operations are asynchronous.
Michael Vrable [Wed, 18 Nov 2009 19:53:01 +0000 (11:53 -0800)]
S3Store cleanup.
Just moving code around; no functional changes.
Michael Vrable [Wed, 18 Nov 2009 06:33:55 +0000 (22:33 -0800)]
Better checks for non-existent inodes.
Michael Vrable [Wed, 18 Nov 2009 03:19:13 +0000 (19:19 -0800)]
Clean up code using bluesky_string_from_gstring.
Michael Vrable [Wed, 18 Nov 2009 01:16:26 +0000 (17:16 -0800)]
Fix the S3Store get operation to handle arbitrarily-sized objects.
Michael Vrable [Wed, 18 Nov 2009 00:28:20 +0000 (16:28 -0800)]
Allow storse to S3 to execute in the background, in parallel.
Michael Vrable [Fri, 13 Nov 2009 23:12:45 +0000 (15:12 -0800)]
New BlueSky interface for implementing readdir.
Michael Vrable [Thu, 12 Nov 2009 22:43:21 +0000 (14:43 -0800)]
Extra logging, begin defining BlueSky-specific error codes.
Michael Vrable [Thu, 12 Nov 2009 02:33:48 +0000 (18:33 -0800)]
Do not pad the final block of a file with zeroes.
To accomplish this, a resize operation was added for reference-counted
strings.
Michael Vrable [Tue, 3 Nov 2009 00:11:34 +0000 (16:11 -0800)]
Move encryption into S3 backend.
Michael Vrable [Sun, 1 Nov 2009 18:39:26 +0000 (10:39 -0800)]
Include file reorganization.
Michael Vrable [Sat, 31 Oct 2009 17:56:08 +0000 (10:56 -0700)]
Split BlueSky include files into public and private parts.
Actually sorting out what goes where still needs to be done.
Michael Vrable [Fri, 30 Oct 2009 22:48:14 +0000 (15:48 -0700)]
Start work on a rename operation. Not yet complete.
Michael Vrable [Fri, 30 Oct 2009 04:09:03 +0000 (21:09 -0700)]
Remove some debugging log messages.
Michael Vrable [Thu, 29 Oct 2009 22:41:14 +0000 (15:41 -0700)]
Add filesystem superblock serialization.
Also fix deserialization of case-folded directory entries. Together, these
chagnes should allow a filesystem state to be reloaded properly.
Michael Vrable [Tue, 27 Oct 2009 19:29:28 +0000 (12:29 -0700)]
Add high-resolution timekeeping functions (primarily for benchmarking).
Michael Vrable [Thu, 8 Oct 2009 22:04:28 +0000 (15:04 -0700)]
Add case-insensitive lookup support to BlueSky core.
Michael Vrable [Wed, 23 Sep 2009 01:38:30 +0000 (18:38 -0700)]
Make printf format specifiers 32/64-bit clean.
Michael Vrable [Wed, 23 Sep 2009 00:29:32 +0000 (17:29 -0700)]
Cache coherence thoughts.
Michael Vrable [Wed, 23 Sep 2009 00:29:09 +0000 (17:29 -0700)]
Miscellaneous fixes.
Michael Vrable [Wed, 16 Sep 2009 20:38:49 +0000 (13:38 -0700)]
Minor CMake fix (delete redundant line).
Michael Vrable [Wed, 16 Sep 2009 18:52:07 +0000 (11:52 -0700)]
Use and link to included libs3.
Michael Vrable [Wed, 16 Sep 2009 18:30:44 +0000 (11:30 -0700)]
Include libs3 sources in the BlueSky tree.
This way we won't need to install it separately. Not yet hooked into the
build system.
Michael Vrable [Wed, 16 Sep 2009 18:28:56 +0000 (11:28 -0700)]
Add a little support for data writeback (not yet hooked up).
Michael Vrable [Mon, 14 Sep 2009 18:19:41 +0000 (11:19 -0700)]
Commit unlinks to stable storage.
Michael Vrable [Mon, 14 Sep 2009 17:44:10 +0000 (10:44 -0700)]
NFS file unlink operation.
Michael Vrable [Mon, 14 Sep 2009 17:23:25 +0000 (10:23 -0700)]
Update filesystem locking rules (in progress).
Michael Vrable [Fri, 11 Sep 2009 21:36:50 +0000 (14:36 -0700)]
NFSv3 mkdir.
Michael Vrable [Fri, 11 Sep 2009 21:02:53 +0000 (14:02 -0700)]
Ensure file size is properly serialized/deserialized.
Michael Vrable [Wed, 9 Sep 2009 23:58:28 +0000 (16:58 -0700)]
Directory deserialization and loading of inodes from stable store.