bluesky.git
13 years agoFirst attempt at supporting reading data back from cloud log segments.
Michael Vrable [Mon, 16 Aug 2010 19:04:03 +0000 (12:04 -0700)]
First attempt at supporting reading data back from cloud log segments.

There are still some bugs, hacks, race conditions, etc., but this seems to
be doing mostly the right thing and so is a good start.

13 years agoSerialized inode data should be dropped from caches, too.
Michael Vrable [Sat, 14 Aug 2010 22:47:40 +0000 (15:47 -0700)]
Serialized inode data should be dropped from caches, too.

13 years agoAttempt at limiting the rate at which memory is dirtied.
Michael Vrable [Thu, 12 Aug 2010 05:16:35 +0000 (22:16 -0700)]
Attempt at limiting the rate at which memory is dirtied.

13 years agoReference counting bugfix.
Michael Vrable [Wed, 11 Aug 2010 22:58:39 +0000 (15:58 -0700)]
Reference counting bugfix.

13 years agoNewly-created inodes should be marked as modified.
Michael Vrable [Wed, 11 Aug 2010 20:15:14 +0000 (13:15 -0700)]
Newly-created inodes should be marked as modified.

The NFS proxy code previously didn't do this, with the result that some
inodes (symlinks were first noticed, but the problem affected other areas
too) would not get entered into the appropriate LRU lists.

13 years agoMore aggressively use memory-mapped data for cloud log items.
Michael Vrable [Wed, 11 Aug 2010 19:43:19 +0000 (12:43 -0700)]
More aggressively use memory-mapped data for cloud log items.

Replace a string with a memory-mapped version as soon as possible when the
item is written out.  The intent is that memory-mapped versions rely on the
kernel's memory management, and don't need to be written to swap like a
private copy would, and so should give better overall system memory
management.

13 years agoImprove tracking of memory usage in BlueSky.
Michael Vrable [Wed, 11 Aug 2010 19:29:09 +0000 (12:29 -0700)]
Improve tracking of memory usage in BlueSky.

Most data, except for dirty data blocks not flushed out to the journal yet,
will be in the form of cloud log entries.  Create statistics counters to
track how many cloud log items are in each of several states (in memory
only, writeback, on disk, in cloud).

13 years agoMore fixes to BlueSky cache management.
Michael Vrable [Tue, 10 Aug 2010 21:19:49 +0000 (14:19 -0700)]
More fixes to BlueSky cache management.

13 years agoDrop old code for flushing data to the cloud.
Michael Vrable [Tue, 10 Aug 2010 00:36:17 +0000 (17:36 -0700)]
Drop old code for flushing data to the cloud.

13 years agoWork to unify the cloud segment writing with other cache management.
Michael Vrable [Tue, 10 Aug 2010 00:21:56 +0000 (17:21 -0700)]
Work to unify the cloud segment writing with other cache management.

13 years agoSplit cloud log segments into modestly-sized chunks.
Michael Vrable [Mon, 9 Aug 2010 23:00:57 +0000 (16:00 -0700)]
Split cloud log segments into modestly-sized chunks.

13 years agoAdd a null storage implementation.
Michael Vrable [Fri, 6 Aug 2010 21:08:59 +0000 (14:08 -0700)]
Add a null storage implementation.

This simply discards all data written to it.  Useful for testing purposes,
if all the data remains in the local log and so we never need to fetch data
from the storage implementation.

13 years agoFix some memory leaks.
Michael Vrable [Thu, 5 Aug 2010 16:48:41 +0000 (09:48 -0700)]
Fix some memory leaks.

13 years agoMake links between cloud log entries direct.
Michael Vrable [Thu, 5 Aug 2010 16:38:20 +0000 (09:38 -0700)]
Make links between cloud log entries direct.

Rather than giving the ID provide a direct pointer to the object.

13 years agoRework caching of data blocks to eliminate double-caching.
Michael Vrable [Wed, 4 Aug 2010 22:32:00 +0000 (15:32 -0700)]
Rework caching of data blocks to eliminate double-caching.

Previously data could be cached both as a cloud log item and as a string at
the inode level.  Now cache as a string for dirty data and a cloud log item
for clean data.

13 years agoFix up reference counting for cloud log items.
Michael Vrable [Wed, 4 Aug 2010 04:58:51 +0000 (21:58 -0700)]
Fix up reference counting for cloud log items.

13 years agoA few attempted bugfixes for log data lifetimes.
Michael Vrable [Wed, 4 Aug 2010 04:21:20 +0000 (21:21 -0700)]
A few attempted bugfixes for log data lifetimes.

A much better fix will depend on reworking this code a bit more.

13 years agoFix up reference counting for memory-mapped journal log segments.
Michael Vrable [Tue, 3 Aug 2010 21:22:25 +0000 (14:22 -0700)]
Fix up reference counting for memory-mapped journal log segments.

13 years agoImprove the reading back of objects committed to the journal.
Michael Vrable [Tue, 3 Aug 2010 21:10:21 +0000 (14:10 -0700)]
Improve the reading back of objects committed to the journal.

Implement a cache of memory-mapped log files so that when multiple objects
are requested we can re-use the mapping.  Make log files fixed sizes (call
ftruncate when opening the log file) so the entire thing can be memory
mapped at the start.

13 years agoMore cache behavior tweaks.
Michael Vrable [Tue, 3 Aug 2010 05:05:28 +0000 (22:05 -0700)]
More cache behavior tweaks.

13 years agoPreliminary support for dropping cached file data from memory.
Michael Vrable [Tue, 3 Aug 2010 03:48:21 +0000 (20:48 -0700)]
Preliminary support for dropping cached file data from memory.

13 years agoWork to allow mmap-ed log entries to be used for data blocks.
Michael Vrable [Mon, 2 Aug 2010 22:50:37 +0000 (15:50 -0700)]
Work to allow mmap-ed log entries to be used for data blocks.

13 years agoGradually converting code to use cloud logs for storing data.
Michael Vrable [Fri, 30 Jul 2010 23:17:30 +0000 (16:17 -0700)]
Gradually converting code to use cloud logs for storing data.

13 years agoDump cloud location of data items in debug output.
Michael Vrable [Thu, 29 Jul 2010 22:43:10 +0000 (15:43 -0700)]
Dump cloud location of data items in debug output.

13 years ago(Mostly) merge local and cloud logging together.
Michael Vrable [Thu, 29 Jul 2010 22:05:37 +0000 (15:05 -0700)]
(Mostly) merge local and cloud logging together.

13 years agoPreparatory work before implementing proper cloud writing.
Michael Vrable [Wed, 28 Jul 2010 19:05:05 +0000 (12:05 -0700)]
Preparatory work before implementing proper cloud writing.

13 years agoSome initial work on logging gathering data into cloud log segments.
Michael Vrable [Mon, 26 Jul 2010 03:19:13 +0000 (20:19 -0700)]
Some initial work on logging gathering data into cloud log segments.

This is still in progress, and needs to be better hooked in to cache
management as well as actually writing out a proper sequence of logs
instead of overwriting the same location each time.  But it should have the
basics of gathering up data for dirty inodes into a segment and writing it.

13 years agoInitial work on cloud log-structured storage.
Michael Vrable [Thu, 22 Jul 2010 21:51:37 +0000 (14:51 -0700)]
Initial work on cloud log-structured storage.

Right now this is just the first work towards tracking what objects are
stored where (a log in the cloud, in local memory, on local disk, etc.).

13 years agoCode cleanup.
Michael Vrable [Tue, 20 Jul 2010 18:54:06 +0000 (11:54 -0700)]
Code cleanup.

13 years agoAdd checksumming to filesystem journal.
Michael Vrable [Mon, 19 Jul 2010 22:31:40 +0000 (15:31 -0700)]
Add checksumming to filesystem journal.

This will be used to check for consistency during log recovery.

13 years agoAllow batched log writes when writing dirty inodes.
Michael Vrable [Mon, 19 Jul 2010 19:46:30 +0000 (12:46 -0700)]
Allow batched log writes when writing dirty inodes.

13 years agoBasic filesystem journaling.
Michael Vrable [Sun, 18 Jul 2010 04:35:54 +0000 (21:35 -0700)]
Basic filesystem journaling.

Infrastructure for writing log entries synchronously (though the log format
is not yet finished and isn't yet useful), and a partial hook into the
BlueSky filesystem.

13 years agoAdd synchronous inode logging in the NFS server.
Michael Vrable [Thu, 15 Jul 2010 22:54:52 +0000 (15:54 -0700)]
Add synchronous inode logging in the NFS server.

This is in preparation for adding inode logging for data durability.

13 years agoBarriers did not handle requests that finished too quickly.
Michael Vrable [Thu, 15 Jul 2010 22:54:05 +0000 (15:54 -0700)]
Barriers did not handle requests that finished too quickly.

13 years agoCommit a few log benchmark results.
Michael Vrable [Wed, 14 Jul 2010 23:32:08 +0000 (16:32 -0700)]
Commit a few log benchmark results.

13 years agoBugfix.
Michael Vrable [Wed, 14 Jul 2010 22:25:51 +0000 (15:25 -0700)]
Bugfix.

13 years agoUpdate commit log benchmarks.
Michael Vrable [Wed, 14 Jul 2010 22:23:17 +0000 (15:23 -0700)]
Update commit log benchmarks.

13 years agoMake the log benchmark configurable and make a parameter sweep script.
Michael Vrable [Wed, 14 Jul 2010 05:25:39 +0000 (22:25 -0700)]
Make the log benchmark configurable and make a parameter sweep script.

13 years agoA new microbenchmark tool to figure out what format to use for logs.
Michael Vrable [Wed, 14 Jul 2010 00:30:50 +0000 (17:30 -0700)]
A new microbenchmark tool to figure out what format to use for logs.

We want to log filesystem operations to disk so they are persistent across
proxy crashes, but should do so in a manner that is relatively high
performance...  Try to figure out what that should be.

13 years agoAttempt to batch together database writes for performance.
Michael Vrable [Tue, 13 Jul 2010 00:26:21 +0000 (17:26 -0700)]
Attempt to batch together database writes for performance.

Doesn't seem to help all that much though...

13 years agoSwitch to an explicit BDB operations queue instead of thread pool.
Michael Vrable [Mon, 12 Jul 2010 19:29:15 +0000 (12:29 -0700)]
Switch to an explicit BDB operations queue instead of thread pool.

Create a dedicated thread for handling BDB operations, and pass gets/puts
to it via a queue.  This is in preparation for batching operations
together in transactions to see if we can improve performance that way.

13 years agoRemove localstore.c; for now BDB work will be done in store-bdb.c.
Michael Vrable [Wed, 7 Jul 2010 19:05:04 +0000 (12:05 -0700)]
Remove localstore.c; for now BDB work will be done in store-bdb.c.

13 years agoSome test work with using Berkeley DB for a local disk cache.
Michael Vrable [Wed, 7 Jul 2010 19:03:40 +0000 (12:03 -0700)]
Some test work with using Berkeley DB for a local disk cache.

Implement this at first by simply making it a new storage backend.  Later
we will have to make it a separate layer so we can stack a Berkeley DB
cache/write log with a remote storage option.

13 years agoSome new format design notes.
Michael Vrable [Wed, 30 Jun 2010 23:59:14 +0000 (16:59 -0700)]
Some new format design notes.

13 years agoAdd another S3 benchmark tool.
Michael Vrable [Wed, 30 Jun 2010 19:25:14 +0000 (12:25 -0700)]
Add another S3 benchmark tool.

13 years agoMore S3 benchmark work.
Michael Vrable [Wed, 30 Jun 2010 19:24:50 +0000 (12:24 -0700)]
More S3 benchmark work.

13 years agoAdd an S3 test script for range requests.
Michael Vrable [Fri, 18 Jun 2010 01:11:15 +0000 (18:11 -0700)]
Add an S3 test script for range requests.

13 years agoAdd results from a simple test run of the multi:s3 backend.
Michael Vrable [Wed, 16 Jun 2010 22:26:29 +0000 (15:26 -0700)]
Add results from a simple test run of the multi:s3 backend.

13 years agoTesting S3 with more object sizes.
Michael Vrable [Wed, 16 Jun 2010 20:50:29 +0000 (13:50 -0700)]
Testing S3 with more object sizes.

13 years agoMore Amazon S3 test script updates.
Michael Vrable [Tue, 15 Jun 2010 18:29:29 +0000 (11:29 -0700)]
More Amazon S3 test script updates.

13 years agoFix a possibel deadlock from synchronizing the superblock.
Michael Vrable [Fri, 4 Jun 2010 21:33:54 +0000 (14:33 -0700)]
Fix a possibel deadlock from synchronizing the superblock.

13 years agoAdd a "multi" storage backend which doubles all GET requests.
Michael Vrable [Fri, 4 Jun 2010 17:47:25 +0000 (10:47 -0700)]
Add a "multi" storage backend which doubles all GET requests.

This can be used to test whether the performance with S3 improves when
making parallel requests to reduce latency.

13 years agoUpdates to script for testing multiple parallel fetches.
Michael Vrable [Thu, 3 Jun 2010 22:25:31 +0000 (15:25 -0700)]
Updates to script for testing multiple parallel fetches.

13 years agoTesting of multiple requests in parallel.
Michael Vrable [Fri, 28 May 2010 19:08:59 +0000 (12:08 -0700)]
Testing of multiple requests in parallel.

13 years agoAdd a few more test scripts.
Michael Vrable [Wed, 26 May 2010 21:17:41 +0000 (14:17 -0700)]
Add a few more test scripts.

14 years agoMore trace analysis scripts.
Michael Vrable [Thu, 13 May 2010 20:32:24 +0000 (13:32 -0700)]
More trace analysis scripts.

14 years agoImprove analysis of S3 packet traces.
Michael Vrable [Sat, 8 May 2010 02:12:51 +0000 (19:12 -0700)]
Improve analysis of S3 packet traces.

14 years agoKeep IP addresses with network measurements.
Michael Vrable [Thu, 6 May 2010 23:32:45 +0000 (16:32 -0700)]
Keep IP addresses with network measurements.

14 years agoMore S3 performance evaluation scripts.
Michael Vrable [Wed, 5 May 2010 20:46:44 +0000 (13:46 -0700)]
More S3 performance evaluation scripts.

14 years agoCompile fix for directory renaming; use virtual host access method for S3.
Michael Vrable [Wed, 5 May 2010 00:24:32 +0000 (17:24 -0700)]
Compile fix for directory renaming; use virtual host access method for S3.

14 years agoMore cloud storage performance-measurement scripts.
Michael Vrable [Tue, 4 May 2010 23:53:14 +0000 (16:53 -0700)]
More cloud storage performance-measurement scripts.

14 years agoDirectory reorganization.
Michael Vrable [Tue, 4 May 2010 19:22:51 +0000 (12:22 -0700)]
Directory reorganization.

14 years agoWork on more tools for automating cloud storage performance measurement.
Michael Vrable [Tue, 4 May 2010 19:19:42 +0000 (12:19 -0700)]
Work on more tools for automating cloud storage performance measurement.

14 years agoA few more Azure/analysis updates.
Michael Vrable [Tue, 4 May 2010 04:46:50 +0000 (21:46 -0700)]
A few more Azure/analysis updates.

14 years agoAnother update to the Azure test code.
Michael Vrable [Mon, 3 May 2010 04:51:22 +0000 (21:51 -0700)]
Another update to the Azure test code.

14 years agoStart work on a test program to communicate with Windows Azure.
Michael Vrable [Mon, 3 May 2010 02:10:02 +0000 (19:10 -0700)]
Start work on a test program to communicate with Windows Azure.

This could provide another backend for BlueSky, and it might be nice to at
least make a few benchmark measurements of Azure to complement the S3 ones.

14 years agoSimple tool for analyzing a dump of a single S3 connection.
Michael Vrable [Thu, 29 Apr 2010 23:07:21 +0000 (16:07 -0700)]
Simple tool for analyzing a dump of a single S3 connection.

Will try to extract information about any delays in the transfers.

14 years agoMore playing with parsing of packet traces.
Michael Vrable [Wed, 28 Apr 2010 22:06:50 +0000 (15:06 -0700)]
More playing with parsing of packet traces.

Extract window size values (and handle TCP window scaling).

14 years agoMore updates to S3 pipelining test.
Michael Vrable [Wed, 28 Apr 2010 21:30:14 +0000 (14:30 -0700)]
More updates to S3 pipelining test.

It seems there is a bug in S3 with many pipelined requests that we are
triggering in testing:
http://developer.amazonwebservices.com/connect/thread.jspa?messageID=39907

14 years agoCreate a simple Python script for sending pipelined GET requests to S3.
Michael Vrable [Wed, 28 Apr 2010 18:04:12 +0000 (11:04 -0700)]
Create a simple Python script for sending pipelined GET requests to S3.

S3 doesn't seem to respond properly to these yet.

14 years agoPrint flow identification in TCP parsing output.
Michael Vrable [Tue, 27 Apr 2010 21:13:45 +0000 (14:13 -0700)]
Print flow identification in TCP parsing output.

Also fix a division-by-zero bug in computing bandwidth if no data is
transferred.

14 years agoSome initial results of running the NFS replay code.
Michael Vrable [Mon, 26 Apr 2010 22:36:45 +0000 (15:36 -0700)]
Some initial results of running the NFS replay code.

14 years agoFix a memory leak in the NFS-over-UDP code.
Michael Vrable [Mon, 26 Apr 2010 05:38:27 +0000 (22:38 -0700)]
Fix a memory leak in the NFS-over-UDP code.

The TCP code still has a per-connection leak, but at least this should help
with the UDP per-request leak.

14 years agoEnable real-time trace replay instead of maximum-speed replay mode.
Michael Vrable [Sun, 25 Apr 2010 00:34:09 +0000 (17:34 -0700)]
Enable real-time trace replay instead of maximum-speed replay mode.

14 years agoAllow longer server names; fixes (temporarily) a buffer overflow.
Michael Vrable [Sat, 24 Apr 2010 02:46:13 +0000 (19:46 -0700)]
Allow longer server names; fixes (temporarily) a buffer overflow.

14 years agoCode fixes for TBBT.
Michael Vrable [Fri, 23 Apr 2010 20:30:25 +0000 (13:30 -0700)]
Code fixes for TBBT.

14 years agoAdd two missing files from the TBBT import.
Michael Vrable [Fri, 23 Apr 2010 19:50:15 +0000 (12:50 -0700)]
Add two missing files from the TBBT import.

14 years agoImport TBBT (NFS trace replay).
Michael Vrable [Fri, 23 Apr 2010 19:48:14 +0000 (12:48 -0700)]
Import TBBT (NFS trace replay).

Code downloaded from http://www.ecsl.cs.sunysb.edu/TBBT/.

14 years agoMerge git+ssh://root@c09-44.sysnet.ucsd.edu/scratch/bluesky
Michael Vrable [Fri, 23 Apr 2010 19:43:57 +0000 (12:43 -0700)]
Merge git+ssh://root@c09-44.sysnet.ucsd.edu/scratch/bluesky

14 years agoAdd pcap dump parser for extracting S3 performance measurements.
Michael Vrable [Wed, 21 Apr 2010 23:13:58 +0000 (16:13 -0700)]
Add pcap dump parser for extracting S3 performance measurements.

14 years agoMore measurement results of S3 latency.
Michael Vrable [Wed, 21 Apr 2010 23:13:39 +0000 (16:13 -0700)]
More measurement results of S3 latency.

14 years agoAdd new results.
Michael Vrable [Tue, 20 Apr 2010 03:10:02 +0000 (20:10 -0700)]
Add new results.

14 years agoCommit some benchmark results of standard Samba.
Michael Vrable [Tue, 13 Apr 2010 18:10:49 +0000 (11:10 -0700)]
Commit some benchmark results of standard Samba.

14 years agoUpdate needed dependencies for building Samba.
Michael Vrable [Fri, 9 Apr 2010 18:40:50 +0000 (11:40 -0700)]
Update needed dependencies for building Samba.

14 years agoCleanups while workign on Samba code.
Michael Vrable [Wed, 7 Apr 2010 22:36:58 +0000 (15:36 -0700)]
Cleanups while workign on Samba code.

14 years agoAdd some measurements of speed reading data from S3.
Michael Vrable [Tue, 6 Apr 2010 23:41:22 +0000 (16:41 -0700)]
Add some measurements of speed reading data from S3.

14 years agoInitial work to use Berkeley DB for locally logging FS changes.
Michael Vrable [Tue, 6 Apr 2010 03:59:41 +0000 (20:59 -0700)]
Initial work to use Berkeley DB for locally logging FS changes.

Not yet hooked up to anything else, but commit this now so the file doesn't
get lost.

14 years agoPull in updated tool for measuring S3 read performance.
Michael Vrable [Tue, 6 Apr 2010 00:08:53 +0000 (17:08 -0700)]
Pull in updated tool for measuring S3 read performance.

14 years agoImprove statistics gathered.
Michael Vrable [Fri, 2 Apr 2010 20:59:41 +0000 (13:59 -0700)]
Improve statistics gathered.

14 years agoAdd general statistics-gathering infrastructure.
Michael Vrable [Fri, 2 Apr 2010 19:20:21 +0000 (12:20 -0700)]
Add general statistics-gathering infrastructure.

14 years agoBenchmark results to S3.
Michael Vrable [Fri, 2 Apr 2010 05:00:45 +0000 (22:00 -0700)]
Benchmark results to S3.

14 years agoAdd some more results.
Michael Vrable [Thu, 1 Apr 2010 18:56:36 +0000 (11:56 -0700)]
Add some more results.

14 years agoFix filesystem locking when creating a new inode.
Michael Vrable [Thu, 1 Apr 2010 01:24:49 +0000 (18:24 -0700)]
Fix filesystem locking when creating a new inode.

14 years agoAdd warnings for failed storage operations.
Michael Vrable [Thu, 1 Apr 2010 00:30:17 +0000 (17:30 -0700)]
Add warnings for failed storage operations.

14 years agoDisable most debugging print messages; should help with performance.
Michael Vrable [Wed, 31 Mar 2010 21:53:54 +0000 (14:53 -0700)]
Disable most debugging print messages; should help with performance.

14 years agoTry to clean up the locking for LRU lists.
Michael Vrable [Wed, 31 Mar 2010 21:01:59 +0000 (14:01 -0700)]
Try to clean up the locking for LRU lists.

14 years agoA few minor fixes.
Michael Vrable [Wed, 31 Mar 2010 17:48:22 +0000 (10:48 -0700)]
A few minor fixes.

14 years agoCopy in a few more benchmark results.
Michael Vrable [Tue, 30 Mar 2010 23:09:24 +0000 (16:09 -0700)]
Copy in a few more benchmark results.

14 years agoStore benchmark results for native Linux NFS server.
Michael Vrable [Tue, 30 Mar 2010 18:14:34 +0000 (11:14 -0700)]
Store benchmark results for native Linux NFS server.

14 years agoTrack number of unanswered RPC requests, for debugging.
Michael Vrable [Tue, 30 Mar 2010 03:56:00 +0000 (20:56 -0700)]
Track number of unanswered RPC requests, for debugging.