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
Redis Swapping?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
BeagleGuy  
View profile  
 More options Oct 2 2010, 11:54 pm
From: BeagleGuy <jimi...@gmail.com>
Date: Sat, 2 Oct 2010 20:54:58 -0700 (PDT)
Local: Sat, Oct 2 2010 11:54 pm
Subject: Redis Swapping?
based on this screen shot: http://www.dropmocks.com/mBvx1

does redis need twice the memory I actually think it does? I believe
it spawns another process to save to disk, does that mean it actually
copies the memory and I should always assume if I have 16 gigs of ram
8 is the max for a single redis process?


 
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.
Favo Yang  
View profile  
 More options Oct 3 2010, 3:42 am
From: Favo Yang <favoy...@gmail.com>
Date: Sun, 3 Oct 2010 15:42:50 +0800
Local: Sun, Oct 3 2010 3:42 am
Subject: Re: Redis Swapping?

It use copy-on-write <http://en.wikipedia.org/wiki/Copy-on-write>, so kernel
will takes care of using minimal RSS for changed pages during fork. You may
want to tweak vm.overcommit_memory, if your dataset close to physical
memory. I don't have such Redis setup, so at least theoretically.

If you can not overcommit_memory for some reason, but still keep as large as
memory Redis setup. One choice is using RDB, disable BG_SAVE, and dump
database manually via SAVE. But it's will blocking any read / write and may
take minutes if you have 16G data. Another way is using AOF, and use
multiple redis (to use the multiple cores), then schedule log rewrite
yourself, then you can make sure only one redis are copy-on-write fork
itself at the same time.


 
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.
Sam Stokes  
View profile  
 More options Oct 4 2010, 7:07 am
From: Sam Stokes <s...@rapportive.com>
Date: Mon, 4 Oct 2010 04:07:30 -0700 (PDT)
Local: Mon, Oct 4 2010 7:07 am
Subject: Re: Redis Swapping?
As Favo says, you want to set the kernel setting vm.overcommit_memory
to 1: see http://code.google.com/p/redis/wiki/FAQ#Background_saving_is_failing_...

Even then, the forked save process consumes some additional RAM,
though not as much as 100% of the parent.  I've found with a Redis
database of about 10GB, saves can take up to 2GB extra RAM, but I only
found that by trial and error and imagine it's very dependent on the
usage profile.

On Oct 3, 8:42 am, Favo Yang <favoy...@gmail.com> wrote:


 
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.
Aníbal Rojas  
View profile  
 More options Oct 4 2010, 8:41 am
From: Aníbal Rojas <anibalro...@gmail.com>
Date: Mon, 4 Oct 2010 08:11:44 -0430
Local: Mon, Oct 4 2010 8:41 am
Subject: Re: Redis Swapping?

Couple warnings:

• if you have a lot of updates, and they span a big set of pages this will
affect memory usage.
• Also virtualized hardware like EC2 can add some noise in this process.

On Oct 3, 2010 12:01 AM, "BeagleGuy" <jimi...@gmail.com> wrote:

based on this screen shot: http://www.dropmocks.com/mBvx1

does redis need twice the memory I actually think it does? I believe
it spawns another process to save to disk, does that mean it actually
copies the memory and I should always assume if I have 16 gigs of ram
8 is the max for a single redis process?

--
You received this message because you are subscribed to the Google Groups
"Redis DB" group.
To post to this group, send email to redis-db@googlegroups.com.
To unsubscribe from this group, send email to
redis-db+unsubscribe@googlegroups.com<redis-db%2Bunsubscribe@googlegroups.c om>
.
For more options, visit this group at
http://groups.google.com/group/redis-db?hl=en.


 
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.
Pedro Melo  
View profile  
 More options Oct 3 2010, 3:43 am
From: Pedro Melo <m...@simplicidade.org>
Date: Sun, 3 Oct 2010 08:43:08 +0100
Local: Sun, Oct 3 2010 3:43 am
Subject: Re: Redis Swapping?
Hi,

On Sun, Oct 3, 2010 at 4:54 AM, BeagleGuy <jimi...@gmail.com> wrote:
> based on this screen shot: http://www.dropmocks.com/mBvx1

> does redis need twice the memory I actually think it does? I believe
> it spawns another process to save to disk, does that mean it actually
> copies the memory and I should always assume if I have 16 gigs of ram
> 8 is the max for a single redis process?

If your system supports copy-on-write (COW) virtual memory, no. It
will only duplicate pages of the save-to-disk process that are written
to by the main redis-server process.

You screenshot shows a very small SHR (memory shared with other
processes), but I don't know if that column counts COW, or only shared
libraries. I believe it is the latter. I don't of a way to see how
much of a process space is being shared via COW though.

Bye,
--
Pedro Melo
http://www.simplicidade.org/
xmpp:m...@simplicidade.org
mailto:m...@simplicidade.org


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »