Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Can't stop CB from swapping with lots of small objects

1 reply [Last post]
  • Login or register to post comments
Mon, 06/11/2012 - 08:40
brettnem
Offline
Joined: 06/11/2012
Groups: None

Hello,
I'm running CB dev preview. My objects are really little. In fact, my keys are exactly 10 chars and my values are exactly 10 chars.

I'm inserting using Cache::Memcache:Fast (perl) using noreply. With noreply=1, I get about 25K-50K writes/sec. With noreply=0 I get about 2-3K writes/sec. Not sure if any of that is relevant.

However, after about 10M objects, the server starts to swap hard and gets crazy slow (obviously).

Servers have 6G of real memory. Used the default on setup which was about 4G of memory. 2 Servers (identical) in cluster.

I also get errors like this:

[10:35:43] - Metadata overhead warning. Over 50% of RAM allocated to bucket "default" on node "10.38.20.203" is taken up by keys and metadata.

I'm expecting to insert a **few hundred million keys**. I'm expecting most of this to be on disk. Server uses only SSDs.

Any suggestions for me? Is it just crazy for me to try to store this much data? I feel like the "overhead" data is really way to high. The amount of memory used by the number of keys doesn't work out to the 20 characters stored per object :/

Thanks!
-Brett

Top
  • Login or register to post comments
Wed, 06/13/2012 - 13:54
mikew
Offline
Joined: 03/14/2011
Groups:

The meta data overhead is 72 bytes + keylength. This means that if your values are small then your meta data will most likely take up more space then your values. We do have customers who are using Couchbase similarly to you though so you are certainly not doing anything crazy.

Right now we require all meta data to be stored in memory permanently. Future versions of Couchbase will allow meta data to be persisted to disk and evicted from memory.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker