Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

Redis could be safer on 32bit instances

Redis Sorted Set for " Old " Data
(17 lines)
Redis 2.4.5 Windows port ready
(29 lines)
Dec 28, 2011
Salvatore Sanfilippo
Salvatore Sanfilippo
Hello list!

I think we have a problem with Redis running on 32 bit, since if the
configuration is not ok, there is some operational risk due to hard
4GB limit, resulting in out of memory (one thing that without 32bit
instances rarely happens at all, since Linux will often overcommit
instead, causing just slowdowns that are MUCH better than an exit for
out of memory).

Today I was following tweets from Thomas (@tqbf on twitter) that was
having problem with Redis 32 bit instances, to summarize:

* Put too much data inside -> over 4GB limit reached
* OOM
* Halt
* Corrupted AOF
* AOF unfixable on 32 bit machine.

This is not good, there are different solutions, from a default limit
with 32 bit instances to 3GB of max memory, to simple warnings, to
more documentation about how properly configure a 32 bit instance for
data safety.

Also I'm not sure when AOF is unfixable on 32 bit machines, maybe our
check dump utility uses data types that are 32 bit so will overflow or
alike?

Btw I don't want to summarize everything in this message, but it is
just an input in order to start a discussion to get this fixed for
Redis 2.6.

Also I'm happy to announce the 2011 Redis Moka Award winners ->
http://antirez.com/post/redis-moka-awards-2011.html
In general I want to say thank to to the Redis community, especially
to the award winners and to people helping here in this google group,
for the wonderful work done in the course of 2011.

Cheers,
Salvatore



http://invece.org
"We are what we repeatedly do. Excellence, therefore, is not an act,
but a habit." -- Aristotele





Reply
Tags: operational riskinstancesmemory
Messages in this thread
Redis could be safer on 32bit instances
reply Re: Redis could be safer on 32bit instances
(67 lines) Dec 29, 2011 04:27
reply Re: Redis could be safer on 32bit instances
(57 lines) Feb 2, 2012 03:36
Issue 630 in redis: Cannot install redis 32bit on Freebsd 8.1 amd64
August 10, 2011 04:46:38 AM
Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 630 by sali### @gmail.com: Cannot install redis 32bit on Freebsd 8.1 amd64 http://code.google.com/p/redis/issues/detail?id=630 What version of Redis you are using, in what…
Compile Redis for FreeBSD as 32bit
January 6, 2011 05:28:55 AM
Hi all, we have problem with compiling Redis on FreeBSD, log is here: http://openpaste.org/en/24360/ On same machine we also run some other 64bit applications. Info: # redis-cli info redis_version:2.0.2 redis_git_sha1:d7554ada…
Issue 551 in redis: Doc fix: make 32bit
May 18, 2011 03:36:03 PM
Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 551 by justi### @gmail.com: Doc fix: make 32bit http://code.google.com/p/redis/issues/detail?id=551 FAQ states you need to have libc6-dev-i386 installed to build the 32 bit …
Issue 493 in redis: make test fails on ubuntu 10.10 32bit
March 23, 2011 04:19:59 AM
Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 493 by liang### @gmail.com: make test fails on ubuntu 10.10 32bit http://code.google.com/p/redis/issues/detail?id=493 What version of Redis you are using, in what kind of…
Issue 624 in redis: make 32bit compiling errors on 64bit Ubuntu (natty)
August 5, 2011 01:45:07 AM
Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 624 by salim### @gmail.com: make 32bit compiling errors on 64bit Ubuntu (natty) http://code.google.com/p/redis/issues/detail?id=624 What version of Redis you are using, in…
DO NOT REPLY New: mod_jk-1.2.31-httpd-2.2.x.so 32bit binaries not available for RHEL 32bit OS
July 5, 2011 12:48:07 PM
https://issues.apache.org/bugzilla/show_bug.cgi?id=51478 Bug #: 51478 Summary: mod_jk-1.2.31-httpd-2.2.x.so 32bit binaries not available for RHEL 32bit OS Product: Tomcat Connectors …
Issue 628 in redis: How to "make 32bit" without errors in Freebsd 8.1 64 bit
August 8, 2011 03:25:43 AM
Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 628 by sali### @gmail.com: [HELP] How to "make 32bit" without errors in Freebsd 8.1 64 bit http://code.google.com/p/redis/issues/detail?id=628 What version of Redis you are…
Issue 407 in redis: Makefile target "32bit" does not work correct on 64bit system (2.2rc1)
December 16, 2010 07:11:07 AM
Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 407 by alexey.pechnikov: Makefile target "32bit" does not work correct on 64bit system (2.2rc1) http://code.google.com/p/redis/issues/detail?id=407 Redis Makefile does not…
Re: number of redis instances per core, with AOF turned off
December 2, 2010 12:26:32 PM
I've done some really simple testing with TCP Segmentation Offload on Linux, and it does seem to help a little bit. The biggest wins with TSO came when doing very large pipelines of requests. On Thu, Dec 2, 2010 at 1:35 AM, Ernest Lee…
number of redis instances per core, with AOF turned off
November 26, 2010 12:30:15 PM
Hello! I've read that the optimal redis configuration for multicore is 2 cores per redis instance. If I am not using disk storage, only RAM, is this still the case? I am guessing one needs the second core to handle the disk. Cheers, Jorge
If I call GETSET to 2 Redis-server instances, what would happen?
June 27, 2011 09:23:49 AM
Let's say we have 2 Redis-Server. I call GETSET test_key "agree" to the first redis-server. and I call GETSET test_key "disagree" to the second redis-server. Exactly, at the same time. What would happen? Is it possible that both of them will…
Issue 429 in redis: Keys command fails on slave instances.
January 5, 2011 10:26:45 AM
Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 429 by jammyz: Keys command fails on slave instances. http://code.google.com/p/redis/issues/detail?id=429 What steps will reproduce the problem? 1. Set up 2 instances in…
Created] (COMPRESS-130) ZipArchiveInputStream.skip could use safer comparison; inherited Javadoc is
May 12, 2011 09:46:54 AM
ZipArchiveInputStream.skip could use safer comparison; inherited Javadoc is incorrect
PATCH/puppet-dashboard 1/1] (#3435) Add Node model stub to make migration safer
November 11, 2010 02:10:57 PM
Signed-off-by: Jesse Wolfe <jes### @gmail.com> Local-branch: ticket/next/3435 --- db/migrate/20101109001012_add_status_to_reports.rb | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git…
Created] (POOL-193) It is safer to make org.apache.commons.pool2.impl.GenericObjectPool.evictor vola
November 29, 2011 01:34:02 PM
It is safer to make org.apache.commons.pool2.impl.GenericObjectPool.evictor volatile
PATCH/puppet 2/2] Puppet-load: better and safer error reporting
October 17, 2010 09:26:06 AM
In case of connection, dns or timeout error, puppet-load would not report the error correctly or could crash. Signed-off-by: Brice Figureau <brice-pupp### @daysofwonder.com> --- ext/puppet-load.rb | 4 +++- 1 files changed, 3…
Issue 611 in redis: redis get config dir will hang a client forever if the internal redis call to ge
July 26, 2011 11:03:54 PM
Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 611 by mlev### @gmail.com: redis get config dir will hang a client forever if the internal redis call to getcwd command fails…
Issue 605 in redis: wordsmithing http://redis.io/topics/faq Why did you started the Redis project?
July 15, 2011 11:57:06 AM
Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 605 by dono### @homerun.com: wordsmithing http://redis.io/topics/faq Why did you started the Redis project? http://code.google.com/p/redis/issues/detail?id=605 Why did you…
Re: Issue 132 in redis: Comment at the top of utils/redis-copy.rb applies to redis-sha1.rb
August 24, 2010 03:15:56 AM
Updates: Status: Done Comment #1 on issue 132 by antirez: Comment at the top of utils/redis-copy.rb applies to redis-sha1.rb http://code.google.com/p/redis/issues/detail?id=132 done, thanks
Issue 409 in redis: Minor issues with redis-benchmark and redis 2-2 RC1 (patch attached)
December 18, 2010 04:25:20 AM
Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 409 by didier.06: Minor issues with redis-benchmark and redis 2-2 RC1 (patch attached) http://code.google.com/p/redis/issues/detail?id=409 This short patch fixed several…
Which encryption does redis use when replicating to slave instances?
April 6, 2011
Which encryption does redis use when replicating to slave instances?
How to make this SQL code safer? _POST and GET.
May 12, 2011
Hey guys, I'm wondering how I can make this code safer, I'm using it as login.php: if(isset($_POST["username"]) and isset($_POST["password"])) {…
I'm considering Redis backed web application, but I'm not sure about the hardware requirements for Redis, or really precisely how Redis "works"?
March 4, 2011
I'm new to Redis, as in... I'm really not sure how it works. But I'm considering it for a web app with a relatively uncomplicated data structure…
Load Balancer to Apache instances. Should I use Persistence connections to minimize timed out apache instances??
April 7, 2011
I was trying to figure out if using persistence on my load balancer would allow for better utilization of apache spawned processes if paired with…
Deploying Memcached as 32bit or 64bit?
January 12, 2011
I'm curious about how people deploy memcached on 64 bit machines. Do you compile a 64bit (standard) memcached binary and run that, or do people…
Not able to find a php_memcache.dll which works with 32bit php on Zend
April 1, 2011
I am using Zend studio 7.2.0 (which has 32-bit php) and wanted to debug memcache-related php unittest-cases on Zend. But I am not able to do so…
Troubles with Xdebug 2.1.0, XAMPP 1.7.3, Win7 32bit
January 7, 2011
Looking for some help with getting xdebug to behave with my setup. My goal is to be able to debug Joomla code. First let me preface saying that…
32bit and 64bit ODBC Drivers playing nice with PHP
February 22, 2011
Hello all, I am running PHP on a 64bit windows 2008 server. I have both ODBC 32bit and 64bit installed and I attempt to do this: $dbh = new…
Apache Tomcat not working in every web browser installed in Windows7 32Bit
February 25, 2011
Hello everyone, I'm working on a web application in JSP and my web container is Apache Tomcat 7.0.2 (Its portable cross-platform version). As I've…
How to configure phpmyadmin with amazon ec2 ami beta (32bit) to work with multiple virtual hosts in apache2?
April 15, 2011
I launched a micro instance of ec2 ami beta and got two separate website domains to work on it. I've also installed phpmyadmin in /var/www/html.…
Is there any way to get resque-web to work with Redis To Go hosted redis instance?
January 22, 2011
Is there any way to get resque-web to work with a Redis To Go hosted redis instance?
Why does adding redis to Gemfile fix error with: require 'redis'
March 3, 2011
I have had a problem trying use the redis (2.1.1) gem with rails. I've fixed the problem but I don't know why the fix works and would like to…
After comping redis 2.2.5 redis-stat is not created
April 30, 2011
Hi guy, I wget the latest version of redis 2.2.5, then make, and cd redis-2.2.5/src, but there is no redis-stat found. Why? Could someone tell me…
Does using the 64bit tomcat give you a performance boost over 32bit tomcat?
January 12, 2011
Hi all, Suppose someone is using a 64-bit OS and a 64-bit JVM. Does using the 64-bit Tomcat increase performance? This may seem a little stange,…
Help with Redis-Sharp or ServiceStack.Redis ..
November 24, 2010
Hello, I tried to run Redis-Sharp test program. It sets the string length when I set some key,value (both strings). And while reading the data it…
Which one to choose mysql 32bit or mysql 64 bit ?
May 27, 2011
Hi, I wanted to install mysql for trying hibernate. Which one should I install, mysql 32 bit or mysql 64bit? Please let me know if there is any…
Redis and Memcache or just Redis?
November 15, 2010
I'm using memcached for some caching in my Rails 3 app through the simple Rails.cache interface and now I'd like to do some background job…
SSL configuration in single OHS for two WLS instances
March 16, 2011
I have two OracleASs running in 10000 and 15000 ports respectively, by logging into server1(10000) we can goto server2(15000). I hv installed OHS…
Introduce latency between ec2 instances
June 8, 2011
I have a 2nodes Cassandra ring on ec2 (10.96.31.143, 10.254.94.177) in the same zone (east-1). How can I introduce a 3 seconds delay for all…
Multiple instances of application
May 27, 2011
Is it possible to create multiple instances of your application and run them on the same server and same tomcat container. How ?