All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Nelson <mark.nelson@inktank.com>
To: Samuel Just <sam.just@inktank.com>,
	"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: Mon backing store
Date: Thu, 05 Jun 2014 13:18:24 -0500	[thread overview]
Message-ID: <5390B470.4010608@inktank.com> (raw)
In-Reply-To: <CA+4uBUZaFHhyn9Brx=dM08qFgPFQiAohufpVk+GH5zCR9Hzb0Q@mail.gmail.com>

On 06/05/2014 12:42 PM, Samuel Just wrote:
> I am starting to wonder whether using leveldb for the mon is actually
> introducing an excessive amount unnecessary complexity and
> non-determinism.  Given that the monitor workload is read mostly,
> except for failure conditions when it becomes write latency sensitive,
> might we do better with a strict b-tree style backing db such as
> berkely db even at the cost of some performance?  It seems like
> something like that might provide more reliable latency properties.

I'm not against trying it, but I'm not convinced it's the right 
solution.  If the 99th percentile latency is significantly better, 
that's obviously a win, but I think we are indeed going to take a big 
performance hit overall.  I'm more in favor of trying rocksdb first. 
I'm certainly not as well versed in the leveldb interface as you or Joao 
are, but it appears much of our code in LevelDBStore would be reusable. 
  I don't know that rocksdb won't have the same issues that leveldb 
does, but the rocksdb developers specifically mention leveldb's bad 99th 
percentile latencies as a driver for it's development:

"By contrast, we’ve published the RocksDB benchmark results for server 
side workloads on Flash. We also measured the performance of LevelDB on 
these server-workload benchmarks and found that RocksDB solidly 
outperforms LevelDB for these IO bound workloads. We found that 
LevelDB’s single-threaded compaction process was insufficient to drive 
server workloads. We saw frequent write-stalls with LevelDB that caused 
99-percentile latency to be tremendously large. We found that mmap-ing a 
file into the OS cache introduced performance bottlenecks for reads. We 
could not make LevelDB consume all the IOs offered by the underlying 
Flash storage."

Compaction performance and high mmap/page fault/kswapd utilization 
during reads are two big issues we've hit in leveldb, so I'm inclined to 
think that rocksdb is at least worthy of some attention.

Here's the benchmark results on their wiki:

https://github.com/facebook/rocksdb/wiki/Performance-Benchmarks

>
> Thoughts?
> -Sam
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2014-06-05 18:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-05 17:42 Mon backing store Samuel Just
2014-06-05 18:18 ` Mark Nelson [this message]
2014-06-05 18:26   ` Sage Weil
2014-06-05 18:26   ` Somnath Roy
2014-06-05 18:33     ` Mark Nelson
2014-06-05 18:40       ` Somnath Roy
2014-06-05 18:19 ` Yehuda Sadeh
2014-06-05 18:26   ` Sage Weil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5390B470.4010608@inktank.com \
    --to=mark.nelson@inktank.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=sam.just@inktank.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.