John Sully
65c581d318
Merge branch 'unstable' of https://github.com/antirez/redis into unstable
...
Former-commit-id: be3cb1ad3386f382ed7506dbfd1adb810e327007
2019-03-14 14:22:27 -04:00
antirez
052e03495f
Fix objectSetLRUOrLFU() when LFU underflows.
2019-03-14 17:06:59 +01:00
antirez
d292a51618
Improve comments after merging #5834 .
2019-03-14 12:47:36 +01:00
John Sully
02b030bc8c
Module threading fixes
...
Former-commit-id: 2785a8b4d40b09caea5e209ab49fc5f1484981a8
2019-03-07 19:13:01 -05:00
John Sully
5b557d3989
Crash in Memory Doctor when all clients are slaves
...
Former-commit-id: f6814aa82564ad1b095edefeda9541859cbbb804
2019-03-03 13:56:47 -05:00
John Sully
3871725979
All tests pass single thread
2019-02-23 00:09:34 -05:00
John Sully
1761aabab4
Lock use after free
2019-02-22 21:00:14 -05:00
John Sully
934375cfea
fix corruption in object size optimization
2019-02-22 17:45:50 -05:00
John Sully
f4b060e0bd
Prevent mixed up client replies, and deadlocks
2019-02-22 01:24:16 -05:00
John Sully
29c1105132
Multithreading works!
2019-02-20 01:20:26 -05:00
Guy Benoish
bdd9a8002a
Trim SDS free space of retained module strings
...
In some cases processMultibulkBuffer uses sdsMakeRoomFor to
expand the querybuf, but later in some cases it uses that query
buffer as is for an argv element (see "Optimization"), which means
that the sds in argv may have a lot of wasted space, and then in case
modules keep that argv RedisString inside their data structure, this
space waste will remain for long (until restarted from rdb).
2019-02-12 14:21:21 +01:00
John Sully
2f9d958e96
Reduce memory usage for in place strings by 8 bytes
2019-02-09 13:04:18 -05:00
John Sully
41a24e689e
Make main headers C++ safe, and change rdb to use file descriptor instead of FILE pointer
2019-02-05 23:36:40 -05:00
John Sully
2f753a3539
complete malloc memory class work, and pass tests
2019-02-04 16:56:13 -05:00
John Sully
a476fdfd8c
Support configurable file backed scratch
2019-02-01 13:54:59 -05:00
John Sully
0ffcf355fe
Custom flash heap
2019-01-29 18:10:46 -05:00
antirez
7872d57d27
RESP3: most null replies converted.
2019-01-09 17:00:29 +01:00
antirez
317f8b9d38
RESP3: most null replies converted.
2019-01-09 17:00:29 +01:00
antirez
9ed8763002
RESP3: Use new deferred len API in object.c.
2019-01-09 17:00:29 +01:00
antirez
fe67418ba4
RESP3: Use new deferred len API in object.c.
2019-01-09 17:00:29 +01:00
zhaozhao.zz
cfb421fe3a
MEMORY command: make USAGE more accurate
...
In MEMORY USAGE command, we count the key argv[2] into usage,
but the argument in command may contains free spaces because of
sdsMakeRoomFor. But the key in db never contains free spaces
because we use sdsdup when dbAdd, so using the real key to
count the usage is more accurate.
2018-11-29 01:01:51 +08:00
zhaozhao.zz
d56c631343
MEMORY command: make USAGE more accurate
...
In MEMORY USAGE command, we count the key argv[2] into usage,
but the argument in command may contains free spaces because of
sdsMakeRoomFor. But the key in db never contains free spaces
because we use sdsdup when dbAdd, so using the real key to
count the usage is more accurate.
2018-11-29 01:01:51 +08:00
antirez
465d1b7934
MEMORY command: make strcasecmp() conditional like the following.
2018-11-06 18:15:51 +01:00
antirez
560cdf359f
MEMORY command: make strcasecmp() conditional like the following.
2018-11-06 18:15:51 +01:00
Salvatore Sanfilippo
360eb38691
Merge pull request #4526 from itamarhaber/memory_help
...
Standardizes `MEMORY HELP` subcommand
2018-11-06 18:13:17 +01:00
Salvatore Sanfilippo
249cd9381d
Merge pull request #4526 from itamarhaber/memory_help
...
Standardizes `MEMORY HELP` subcommand
2018-11-06 18:13:17 +01:00
Salvatore Sanfilippo
f2d2041d60
Merge pull request #5453 from damz/pr/aof-buffer-evict
...
Overhead is the allocated size of the AOF buffer, not its length
2018-10-24 12:28:28 +02:00
Salvatore Sanfilippo
a2131f907a
Merge pull request #5453 from damz/pr/aof-buffer-evict
...
Overhead is the allocated size of the AOF buffer, not its length
2018-10-24 12:28:28 +02:00
Damien Tournoud
e2d397dde3
Overhead is the allocated size of the AOF buffer, not its length
2018-10-16 11:47:42 -07:00
Damien Tournoud
29e488cbb0
Overhead is the allocated size of the AOF buffer, not its length
2018-10-16 11:47:42 -07:00
hujiecs
f119b1ef18
several typos fixed, optimize MSETNX to avoid unnecessary loop
2018-10-16 15:48:03 +08:00
hujiecs
297950e8b8
several typos fixed, optimize MSETNX to avoid unnecessary loop
2018-10-16 15:48:03 +08:00
Salvatore Sanfilippo
96b51145a3
Merge pull request #5242 from oranagra/script_mem
...
script cache memory in INFO and MEMORY includes both script code and overheads
2018-10-02 16:03:05 +02:00
Salvatore Sanfilippo
e19a06d2dd
Merge pull request #5242 from oranagra/script_mem
...
script cache memory in INFO and MEMORY includes both script code and overheads
2018-10-02 16:03:05 +02:00
antirez
334ce65cd8
Slave removal: remove slave from object.c.
2018-09-11 15:32:28 +02:00
antirez
0c1d28e2d0
Slave removal: remove slave from object.c.
2018-09-11 15:32:28 +02:00
Oran Agra
20718948b7
script cache memory in INFO and MEMORY includes both script code and overheads
2018-08-13 17:36:54 +03:00
Oran Agra
f4b27ae222
script cache memory in INFO and MEMORY includes both script code and overheads
2018-08-13 17:36:54 +03:00
antirez
1ecfe03852
Change 42 to 1000 as warning level for cached scripts.
...
Related to #4883 .
2018-07-23 18:44:58 +02:00
antirez
9a375e5408
Change 42 to 1000 as warning level for cached scripts.
...
Related to #4883 .
2018-07-23 18:44:58 +02:00
Salvatore Sanfilippo
a5f07a06f4
Merge pull request #4883 from itamarhaber/lua_scripts-in-info-memory
...
Adds memory information about the scripts' cache to INFO
2018-07-23 18:43:05 +02:00
Salvatore Sanfilippo
445a2a2b1b
Merge pull request #4883 from itamarhaber/lua_scripts-in-info-memory
...
Adds memory information about the scripts' cache to INFO
2018-07-23 18:43:05 +02:00
Itamar Haber
527786c0f3
Adds Lua overheads to MEMORY STATS, smartens the MEMORY DOCTOR
2018-07-22 21:16:00 +03:00
Itamar Haber
993716c351
Adds Lua overheads to MEMORY STATS, smartens the MEMORY DOCTOR
2018-07-22 21:16:00 +03:00
antirez
9f30306d44
addReplySubSyntaxError() renamed to addReplySubcommandSyntaxError().
2018-07-02 18:49:34 +02:00
antirez
2edcafb35d
addReplySubSyntaxError() renamed to addReplySubcommandSyntaxError().
2018-07-02 18:49:34 +02:00
Salvatore Sanfilippo
e7b480369b
Merge pull request #4998 from itamarhaber/module_command_help
...
Module command help
2018-07-02 18:46:56 +02:00
Salvatore Sanfilippo
bc6a004588
Merge pull request #4998 from itamarhaber/module_command_help
...
Module command help
2018-07-02 18:46:56 +02:00
Salvatore Sanfilippo
c5f3e70cc3
Merge pull request #5051 from oranagra/streams_mem_estimate
...
fix streams memory estimation, missing raxSeek
2018-06-21 17:36:28 +02:00
Salvatore Sanfilippo
a16aa03a67
Merge pull request #5051 from oranagra/streams_mem_estimate
...
fix streams memory estimation, missing raxSeek
2018-06-21 17:36:28 +02:00