Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion redis-server taking 10 times more RAM to store data than the dump
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alexey Verkhovsky  
View profile  
 More options Jun 1 2009, 11:03 pm
From: Alexey Verkhovsky <alexey.verkhov...@gmail.com>
Date: Mon, 1 Jun 2009 21:03:05 -0600
Local: Mon, Jun 1 2009 11:03 pm
Subject: redis-server taking 10 times more RAM to store data than the dump

Hi all,

Been playing with Redis quite a bit for the last couple of weeks. One thing
that is bugging me right now looks like this:

02 Jun 02:46:20 . DB 0: 2092395 keys (0 volatile) in 2097152 slots HT.
02 Jun 02:46:20 . 4 clients connected (0 slaves), 310914 bytes in use

This is ~2 mln name-value pairs taking up 300 Mb of RAM (actually, RSS of
that process is even bigger - 440 Mb). The name-value pairs in question map
8-byte strings to integers. And it takes 150-200 bytes of RAM to store each.
The dump of the same database takes up 24 Mb unarchived - 12 bytes per
record, which is a lot more to my liking. I realize that there are indexes
and therefore hash values and pointers everywhere, but 200 bytes pf RAM to
store 16 bytes of data in a big hash table still seems somewhat excessive.

So, is this a normal behavior, and is there a way to cut down the amount of
RAM used by Redis in this scenario by a factor of 2-3?

--
Alexey Verkhovsky
http://alex-verkhovsky.blogspot.com/
CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.